Archive: how to make a CreateShortCut icon title?


how to make a CreateShortCut icon title?
This just seems so obvious that it must go without saying, but nevertheless, I just can't seem to find the correct procedure to create a title for my desktop icon.

Whenever I use CreateShortCut the only title I can create is the filename of the program it links to, such as "nucaasio.exe" when what I really want is "Nuca AsIO".

Is this possible??? Thanks.

- Changi


Sure:


CreateShortCut "$DESKTOP\${MUI_PRODUCT} \
${MUI_VERSION}.lnk" "$INSTDIR\main.exe" "" "$INSTDIR\main.exe" \
0 "SW_SHOWNORMAL" "" "Hello ${MUI_PRODUCT}"
; The String "Hello ${MUI_PRODUCT}" is the title

:)

Like this:

CreateShortCut "$DESKTOP\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
CreateShortCut "$DESKTOP\Uninstall_MyProgram.lnk" "$INSTDIR\Uninstall.exe"
CreateShortCut "$DESKTOP\NameThisWhatEverYouWant.lnk" "$INSTDIR\Uninstall.exe"

Another example...
CreateShortcut "$DESKTOP\cleanNdefrag.lnk" "$INSTDIR\gui4cli.exe" "$\"$INSTDIR\cleanNdefrag\cleanNdefrag.gui$\" -instance Scripts_byLilla -NOPREFS"