NSIS - How to include all folders from source to I

2019-03-09 22:13发布

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\*"

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-03-09 22:49

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

查看更多
登录 后发表回答