Dear Rulan,
we verified what you reported and this is not caused by a bug with the desktop shortcut creation, but instead by the value used by DESKTOPDIR variable.
In other words, (as we experimented and I suppose even in your case) to have the command working correctly (mainly when using MSI engine with your package generation) you must verify that the passed desktop folder parameter with the shortcut command, points to a path value that reflects the "PER MACHINE or PER USER" installation context used by your setup package at runtime.
More pratically, you should have with your main script the following code lines placed immediately after the setup interview.
Code: Select all
if Variable ALLUSERS Equals TRUE
Get Common Folder Location System->Desktop Directory into DESKTOPDIR
else
Get Folder Location System->Desktop Directory into DESKTOPDIR
end
* where the first call to "Common Folder Location" obtains the path for all users and the second one just for current user.
NOTE
I suggest you to update your IA installation to the new 15.32 version, where fixes has been introduced with "Get Common Folder Location" command.
Hope this helps you.
Regards