简体   繁体   中英

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

在此处输入图像描述

This appears to be a Electron custom page implemented in multiUserUi.nsh and the text is defined in assistedMessages.yml . It looks like nsisLang.ts is used to convert the.yml file to a temporary.nsh include file.

It might be possible to use the Electron NSIS include feature to include your own custom file. Depending on when it is included it might be possible to override the string:

; 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

If that does not work then you must manually edit assistedMessages.yml instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM