问题描述
我有一个应用程序,其中包含一个 .exe
,许多 .dlls
和一些文件夹。
I have an application which consists one .exe
, many .dlls
and a few folders.
我使用NSIS创建安装程序。它可以工作,但是当我安装软件时,我看不到我的应用程序中的所有文件夹。
如何将我的应用程序中的所有文件夹捆绑到安装程序中?
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\*"
推荐答案
文档告诉我们File命令的/ r参数包括所有子文件夹和文件。所以你会使用这样的东西:
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:
这篇关于NSIS - 如何将所有文件夹从源包含到安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!