If you provide the -nocd option to makensis then makensis won't change the current directory to that of the .nsi file.
Below is an example to illustrate it: cd /tmp mkdir -p minimal/folder cat << EOF > minimal/folder/minimal.nsi !system "pwd" OutFile "minimal.exe" Section SectionEnd EOF cd minimal ln -s folder/minimal.nsi makensis minimal.nsi > ... > Changing directory to: "/tmp/minimal/folder" > > Processing script file: "minimal.nsi" > !system: "pwd" > /tmp/minimal/folder > !system: returned 0 > ... cd folder makensis minimal.nsi > same output as above cd .. makensis -nocd minimal.nsi > ... > Processing script file: "minimal.nsi" > !system: "pwd" > /tmp/minimal > !system: returned 0 > ... -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

