简体   繁体   English

适用于Linux的NSIS unicode构建

[英]NSIS unicode build for linux

I have NSIS software installed on my Ubuntu server. 我在Ubuntu服务器上安装了NSIS软件。 Recently, with my NSIS script, I can successfully build setup files for my windows software. 最近,使用NSIS脚本,我可以为Windows软件成功构建安装文件。 The problem lie in situation when end user has non ANSI characters for username, so I need unicode installer. 问题出在最终用户的用户名使用非ANSI字符时,我需要unicode安装程序。 Installation process is always in English language, but some installation paths depending to username can be non ANSI characters. 安装过程始终使用英语,但是某些安装路径(取决于用户名)可以是非ANSI字符。 On NSIS official page there is already unicode version of nsis.exe, but i didn't find version for Linux. 在NSIS官方页面上,已经有unicode版本的nsis.exe,但是我没有找到Linux的版本。

One solution is to use wine program, but I'm looking for some other solution without wine. 一种解决方案是使用wine程序,但是我正在寻找其他没有wine的解决方案。

How can i resolve this? 我该如何解决? Any advice is welcome. 欢迎任何建议。 Thanks for the answers. 感谢您的回答。

Do you mean unicode version of makensis.exe instead of nsis.exe? 您是说makensis.exe的 unicode版本而不是nsis.exe吗?

makensis.exe is command line compiler for NSIS scripts while nsis.exe is simple application showing help, manual and other docs. makensis.exe是NSIS脚本的命令行编译器,而nsis.exe是显示帮助,手册和其他文档的简单应用程序。

There is also makensisW.exe which is simple GUI interface for makensis.exe. 还有makensisW.exe,它是makensis.exe的简单GUI界面。

All of them are present in latest version of NSIS (3.0a1) 所有这些都存在于最新版本的NSIS(3.0a1)中

Since NSIS 3.0 there is new directive Unicode true|false. 从NSIS 3.0开始,有新的指令Unicode true | false。 Put it in your script to generate full Unicode|Ansi installers. 将其放在脚本中以生成完整的Unicode | Ansi安装程序。

Confirmed 3.0b2 has unicode support on *nix (tested on Fedora 22). 确认的3.0b2在* nix上具有unicode支持(在Fedora 22上测试)。

Just add Unicode true to your nsi script. 只需将Unicode true添加到您的nsi脚本即可。

Processing script file: "grouptest-utf8.nsi" (UTF8)

Processed 1 file, writing output (x86-unicode):

Output:     "grouptest.exe"
Install: 3 pages (192 bytes), 11 sections (45320 bytes), 192 instructions (5376 bytes), 449 strings (5116 bytes), 1 language table (282 bytes).

Using zlib compression.

EXE header size:               52224 / 37888 bytes
Install code:                   2810 / 34198 bytes
Install data:                      0 / 0 bytes
CRC (0x13123953):                  4 / 4 bytes

Total size:                    55038 / 72090 bytes (76.3%)

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

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