Special Windows macros randomly resolve incorrectly

  • 3007100
  • 17-Apr-2006
  • 30-Apr-2012

Environment

Novell ZENworks 7 Desktop Management - ZfD7 Application Launcher (NAL)

Situation

%*APPDATA% and %*DESKTOP% and %*STARTMENU% can sometimes be resolved incorrectly, that is to say that they are not resolved for the currently logged in Windows account, but rather the Local Service account.  For example, the macros that should resolve to
c:\Documents and Settings\MikeGord\Application Data
c:\Documents and Settings\MikeGord\Desktop
c:\Documents and Settings\MikeGord\Start Menu
are being resolved to
c:\Documents and Settings\LocalService\Application Data
c:\Documents and Settings\LocalService\Desktop
c:\Documents and Settings\LocalService\Start Menu
This has been seen to happen with NAL application objects that distribute either a registry or INI setting AND a Windows shortcut that uses one of these special Windows macros.  If the delivered shortcut is in an application object that does not contain registry or INI modifications, then the macros resolve correctly.

Resolution

Workaround:  Replace the special Windows macros with Windows macros, such as
%USERPROFILE%\Application Data
%USERPROFILE%\Desktop
%USERPROFILE%\Start Menu
or, alternatively, you could distribute the Windows shortcuts in a chained application that does not contain registry or INI modifications.