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)
NSIS 3 POSIX Ninja
Wiki Profile
|