Skip to content
⌘ NSIS Forum Archive

change path of set up file

6 posts

shahil#

change path of set up file

i want to change the installer set up file path which NSIS creates.

the path is
OutFile "setupFile.exe"

but i want
OutFile "build\setupFile.exe"

when i ask NSIS to put the created installer file in build folder.
it gives me error saying
"Can't open file"

what i want to do is store the installer file build folder.
but i am not able to do so.
i even tried CreateDirectory to create directory named "build"
but no luck...

thanks in advance.. any help is highly appreciated.
Afrow UK#
NSIS won't create the directory if it doesn't exist. CreateDirectory won't work because that is a run time instruction (duh). Use mkdir via !system if you have to create the directory every time or use a batch file which calls mkdir before makensis.

Stu
jpderuiter#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.