andrey_sz
andrey_sz

Reputation: 751

NSIS: Default installation path

How can I add a default path (e.g. C:\Program Files...) to installer. (I mean a hard-coded variable, for example, for it.)

Thanks all in advance...

Upvotes: 4

Views: 7935

Answers (2)

Erik Šťastný
Erik Šťastný

Reputation: 1486

It is not necessary to copy some string into $INSTDIR.

You can simply use this:

; The default installation directory
InstallDir "C:\Program Files\my_sw"

Upvotes: 0

Seki
Seki

Reputation: 11465

You can set the $INSTDIR to an arbitrary value:

StrCpy $INSTDIR "c:\program files\my folder"

Upvotes: 5

Related Questions