NSIS - 如何将所有文件夹从源包含到安装程序 [英] NSIS - How to include all folders from source to Installer

查看:162
本文介绍了NSIS - 如何将所有文件夹从源包含到安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中包含一个 .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:

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

这篇关于NSIS - 如何将所有文件夹从源包含到安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆