electron builder:如何在 NSIS 安装程序中自定义字符串值?
electron builder: how to customize the string values in NSIS installer?
- 我正在使用 electron builder,我的目标是 windows nsis
- 我一直在查看此链接 https://www.electron.build/configuration/nsis#custom-nsis-script and https://nsis.sourceforge.io/Category:Tutorials 以找到自定义安装程序的简便方法,但到目前为止运气不好,所以问题是:
- 自定义字符串值最简单的方法是什么,如下图"only for me"
这似乎是在 multiUserUi.nsh and the text is defined in assistedMessages.yml. It looks like nsisLang.ts 中实现的 Electron 自定义页面,用于将 .yml 文件转换为临时的 .nsh 包含文件。
可能可以使用 Electron NSIS include feature 来包含您自己的自定义文件。根据包含的时间,可能会覆盖字符串:
; NSIS include file:
!pragma warning push
!pragma warning disable 6030 ; Disable multiple use warning
LangString onlyForMe 1033 "Just me and only me" ; 1033 is English
!pragma warning pop
如果这不起作用,那么您必须手动编辑 assistedMessages.yml。
- 我正在使用 electron builder,我的目标是 windows nsis
- 我一直在查看此链接 https://www.electron.build/configuration/nsis#custom-nsis-script and https://nsis.sourceforge.io/Category:Tutorials 以找到自定义安装程序的简便方法,但到目前为止运气不好,所以问题是:
- 自定义字符串值最简单的方法是什么,如下图"only for me"
这似乎是在 multiUserUi.nsh and the text is defined in assistedMessages.yml. It looks like nsisLang.ts 中实现的 Electron 自定义页面,用于将 .yml 文件转换为临时的 .nsh 包含文件。
可能可以使用 Electron NSIS include feature 来包含您自己的自定义文件。根据包含的时间,可能会覆盖字符串:
; NSIS include file:
!pragma warning push
!pragma warning disable 6030 ; Disable multiple use warning
LangString onlyForMe 1033 "Just me and only me" ; 1033 is English
!pragma warning pop
如果这不起作用,那么您必须手动编辑 assistedMessages.yml。