简体   繁体   English

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

[英]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 .这似乎是在 multiUserUi.nsh 中实现的Electron自定义页面,文本在assistedMessages.yml中定义。 It looks like nsisLang.ts is used to convert the.yml file to a temporary.nsh include file.看起来nsisLang.ts用于将 .yml 文件转换为临时 .nsh 包含文件。

It might be possible to use the Electron NSIS include feature to include your own custom file.可以使用Electron NSIS 包含功能来包含您自己的自定义文件。 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.如果这不起作用,那么您必须手动编辑 assistedMessages.yml 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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