NSIS - How to include all folders from source to Installer

AustinTX picture AustinTX · Nov 1, 2011 · Viewed 25.3k times · Source

I have an application which consists one .exe, many .dlls and a few folders.

I use NSIS to create an installer. It works but when I install the software, I don't see all the folders inside my application. What do I have to do to bundle all the folders within my application into the installer?

This is the code I set the data source at this time:

File "c:\MyProject\MyApp\*"

Answer

Paul Hunt picture Paul Hunt · Nov 1, 2011

The documentation tells us that the /r argument of the File command includes all sub folders and files. So you would use something like this:

File /r "c:\MyProject\MyApp\*"

The relevant section of the documentation can be found here:

http://nsis.sourceforge.net/Docs/Chapter4.html#file