简体   繁体   English

NSIS - 如何将所有文件夹从源包含到安装程序

[英]NSIS - How to include all folders from source to Installer

I have an application which consists one .exe , many .dlls and a few folders. 我有一个应用程序,包括一个.exe ,许多.dlls和一些文件夹。

I use NSIS to create an installer. 我使用NSIS创建安装程序。 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\*"

The documentation tells us that the /r argument of the File command includes all sub folders and files. 文档告诉我们File命令的/ r参数包括所有子文件夹和文件。 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 http://nsis.sourceforge.net/Docs/Chapter4.html#file

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM