electron builder:如何在 NSIS 安装程序中自定义字符串值?

electron builder: how to customize the string values in NSIS installer?

这似乎是在 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。