View Single Post
Old 9th October 2021, 09:45   #4
Major Dude
JasonFriday13's Avatar
Join Date: May 2005
Location: New Zealand
Posts: 916
It fails when you compile the script because $EXEDIR is only available when you run the installer ie after it's compiled.

Basically, anything with only a '$' in front of it is a runtime variable and cannot be used at compile time.
A '${}' (dollar sign with curly braces) is a define which can be set and changed at compile time, can also be used at runtime but is not editable ie readonly.

The 'Icon' command is only used during compile time, and because the icon is in the same directory as the script, all you have to do is this:

Icon SecureCoop.ico

Same with 'UninstallIcon'.

The 'File' command refers to the file to include ie where on your machine it is. Whereas 'SetOutPath' controls what directory that file goes into when the installer is run.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
Wiki Profile
JasonFriday13 is offline   Reply With Quote