【问题标题】:Windows terminal: create .exe installer from .exe and .nsiWindows 终端:从 .exe 和 .nsi 创建 .exe 安装程序
【发布时间】:2021-09-02 09:52:40
【问题描述】:

我在 python 中有一个 kivy 项目。

我基于这个项目构建了一个exePyinstaller

我编译了一个.nsi,它基于之前的.exe 构建了一个.exe installeur。

一切正常!

我实际上是在编写脚本以使其更容易。

问题:基于.nsi.exe 构建.exe 安装程序的命令行是什么?

(确切地说,我想在Windows终端上通过命令行替换“打开HM NSIS Edit软件,找到你的file.nsi,右键单击它,单击'Compile and Execute'”)

【问题讨论】:

  • 您是在询问将哪些参数传递给 MakeNSIS.exe?
  • 嗯,我只是手动打开“HM NSIS Edit”软件并在“编译和执行”上右键单击我的 .nsi。我想用一行命令来做到这一点。我认为我不需要参数?我不确定这是不是你问的。 :p

标签: windows terminal nsis


【解决方案1】:

只需将 .nsi 路径传递给 MakeNSIS:

"c:\Program Files\NSIS\MakeNSIS.exe "c:\mystuff\myinstaller.nsi"

可以使用/D 创建额外的定义,但你会知道你的脚本是否需要这个。

【讨论】:

  • pip3 install makensispip3 install nsis 不起作用。 :/ 我做不到 makensis "c:\path\of\my_app.exe "c:\path\of\myinstaller.nsi" (这就是我想尝试的)
  • 只需从 Sourceforge 正常安装 NSIS。或者使用 WinGet...
  • 我已经有“NSIS”和“HM NIS Edit”软件,但我仍然无法使用命令行makensis。我觉得很愚蠢,但我不明白你的提议:/
  • 使用 MakeNSIS.exe 的完整路径或确保它位于 %PATH% 中。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-10-11
  • 2017-11-19
  • 2023-03-06
  • 1970-01-01
  • 1970-01-01
  • 2013-07-03
  • 1970-01-01
相关资源
最近更新 更多