windows NSIS - 如何包含从源到安装程序的所有文件夹
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7973242/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
NSIS - How to include all folders from source to Installer
提问by AustinTX
I have an application which consists one .exe
, many .dlls
and a few folders.
我有一个应用程序,其中包含一个.exe
、多个.dlls
和几个文件夹。
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?
我使用 NSIS 创建安装程序。它可以工作,但是当我安装软件时,我看不到应用程序中的所有文件夹。我该怎么做才能将应用程序中的所有文件夹捆绑到安装程序中?
This is the code I set the data source at this time:
这是我此时设置数据源的代码:
File "c:\MyProject\MyApp\*"
回答by Paul Hunt
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 参数包括所有子文件夹和文件。所以你会使用这样的东西:
File /r "c:\MyProject\MyApp\*"
The relevant section of the documentation can be found here:
可以在此处找到文档的相关部分: