NSIS 静默安装更改默认选项
我有一个第三方应用程序,我想从命令行静默安装。
可在以下位置获取: http://www.pptv.com/en/
该应用程序是 PPLive , 一个 NSIS 安装程序,目前在静默安装时,会安装工具栏和其他软件,完成后启动等。
在不重新打包的情况下,如何从静默命令行安装控制普通安装程序页面上的复选框选项。
有可能吗?
I have a third party application I would like to silent install from the command line.
The application is PPLive available at: http://www.pptv.com/en/
It is an NSIS installer, and currently when silently installed, installs toolbars, and additional pieces of software, launches on completion etc.
Without repackaging it, how do I control the checkbox options on the pages of the normal installer from the silent command line install.
Is it even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NSIS 支持使用
/S
命令行脚本进行静默安装选项,但是,它仅设置安装脚本可以检查的标志:使用IfSilent
。此处有一个示例脚本,演示了静默安装。
NSIS supports the silent install option with the
/S
command line script, however, it only sets a flag that the install script can check:usingIfSilent
.There is an example script here that demonstrated a silent installation.
你无法控制组件,除非安装程序专门为其编码(通过使用“答案”文件/.ini 或在命令行上传递的某些参数)NSIS 本身只允许安装程序的作者知道它是否是是否处于静音模式,剩下的取决于他们。您必须向 PPLive 人员询问(如果他们还不支持,则要求他们添加)
You can't control the components unless the installer has been coded specifically for it (By using a "answer" file/.ini or some parameter you pass on the commandline) NSIS itself only allows the author of the installer to know if it is in silent mode or not, the rest is up to them. You would have to ask the PPLive people about it (Or request that they add it if they don't support it already)