CreateShortCut problem
I would like to create a shortcut that has as its working directory: %HOMEDRIVE%%HOMEPATH%, just like Command Prompt. What's the quickest way to do it?
7 posts
But what if the shortcut is designed to be run by any user - using $PROFILE will hardcode it to the user installing the program no?Yes, you're right.
SetOutPath "%HOMEDRIVE%%HOMEPATH%"
CreateShortcut "$DESKTOP\test.lnk" "%HOMEDRIVE%%HOMEPATH%\test.exe"
SetOutPath $INSTDIR