Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将文件(.exe.txt等)嵌入NSIS安装程序以创建一个大型.exe安装程序包?_Nsis - Fatal编程技术网

如何将文件(.exe.txt等)嵌入NSIS安装程序以创建一个大型.exe安装程序包?

如何将文件(.exe.txt等)嵌入NSIS安装程序以创建一个大型.exe安装程序包?,nsis,Nsis,我有几个文件,我想我的NSIS安装程序提取和安装。 这些是.exe文件(我的主应用程序)、.txt自述文件、许可证文件、.ICO图形文件 我想将它们嵌入到已编译的NSIS安装程序中,为用户提供一个大的安装文件。 将文件嵌入安装程序的命令和通知NSIS提取嵌入文件的命令是什么? 我看过一些文档,但我能找到的只是提到了拉链,-我认为NSIS里面有一个7拉链(?) 我想将嵌入的文件全部解压缩到我的$INSTDIR中 这是我在NSIS中的页面顺序 !insertmacro MUI_PAGE_WELC

我有几个文件,我想我的NSIS安装程序提取和安装。 这些是.exe文件(我的主应用程序)、.txt自述文件、许可证文件、.ICO图形文件

我想将它们嵌入到已编译的NSIS安装程序中,为用户提供一个大的安装文件。 将文件嵌入安装程序的命令和通知NSIS提取嵌入文件的命令是什么? 我看过一些文档,但我能找到的只是提到了拉链,-我认为NSIS里面有一个7拉链(?)

我想将嵌入的文件全部解压缩到我的$INSTDIR中

这是我在NSIS中的页面顺序

  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
  !insertmacro MUI_PAGE_DIRECTORY
  !insertmacro MUI_PAGE_INSTFILES
  !insertmacro MUI_PAGE_FINISH

  !insertmacro MUI_UNPAGE_WELCOME
  !insertmacro MUI_UNPAGE_CONFIRM
  !insertmacro MUI_UNPAGE_INSTFILES
  !insertmacro MUI_UNPAGE_FINISH
演示如何使用
文件
说明

非常简单的安装程序如下所示:

Name "Test"
OutFile "TestInstaller.exe"
InstallDir "$Desktop\Test" ; Default install directory

Page Directory ; Let the user choose the $InstDir
Page InstFiles ; Sections are executed on this page

Section
SetOutPath $InstDir ; Create and set output path
File "c:\myinstallerfiles\MyFile.txt" ; Extract MyFile.txt to $InstDir
SectionEnd

文件
指令将本地计算机上的文件压缩到安装程序中,当用户运行安装程序时,文件将被提取到由
SetOutPath设置的目录中

,除非我误解了你的问题,否则我认为你只是在寻找。