Archive: CreateShortCut Question


CreateShortCut Question
I have a quick question that I am sure will be easy to answer. When I use this

CreateShortCut "$DESKTOP\Lotus Notes 6.5.lnk" `"C:\Program Files\notes\notes.exe" "=%USERPROFILE%\Notes\Data\notes.ini"` "" "C:\Program Files\notes\notes.exe"

Every time I look at the icon I have multiple quotation marks in the target field. I need to target to read:

"C:\Program Files\notes\notes.exe" "=%USERPROFILE%\Notes\Data\notes.ini"

Not This

""C:\Program Files\notes\notes.exe" "=%USERPROFILE%\Notes\Data\notes.ini""

Thanks for any help.


If you notice in the NSIS docs, CreateShortCut's 3rd parameter is for parameters.

-Stu


I understand that and I do not want any parameters, but to get the shortcut to associate itself to an actual executable you need the fourth parameter. I thought that an empty "" told the script to ignore the parameters and go to the fourth one which is associated to the icon.