Search code examples
nsis

Having two destination folders using NSIS


Currently the product I work on uses NSIS to create it's installer. It works great, we love it.

But now, with some of the issues arising with manipulation of data in program files on Windows 7 and such, we would like to have to separate destination folders during install. One destination will be where all the program files are held, while another would hold any user specific data.

For example:

Program Destination: C:\Program Files\Company\Product

User Data Destination: C:\Company\Product\Data

Obviously we want to give the user a choice of where to put each portion but we can't seem to find a way to create this option in the NSIS installer.


Solution

  • You can have as many directory pages as you want, you probably also want to switch to the PageEx page declaration so you can use the DirVar instruction