Archive: Newbie Q: Multiple Install Directories


Newbie Q: Multiple Install Directories
Hi,

I'm using NSIS for the first time and have a simple question. I need to install my application and I also need to put some dlls in the Windows System folder.

I've managed to get the NSIS examples to work however I can't figure out how to set two different install directories. I sure this is simple. If someone could help me out it would be much appreciated.

Cheers

Chris Share


You need be using setoutpath. Then you can switch between the install directory and the windows directory, etc. If you truly needs more than one installation directory like $PROGRAMFILES/x and $PROGRAMFILES/y then you would need to use installoptions.

SetOutPath $INSTDIR
File x.txt
SetOutPath $SYSDIR
File x.dll


Thanks