NSIS support for Linux and Solaris

2019-04-04 14:10发布

Does NSIS support Linux and Solaris? I read somewhere that we can compile nsis script on Linux but cant execute the .exe generated on any other platforms but Windows. Can somebody put more light in this?

4条回答
唯我独甜
2楼-- · 2019-04-04 14:43

You can compile installers on POSIX and Windows systems, but it always produces a Win32 PE file that only runs on Windows (And maybe under WINE on *nix)

Check the NSIS manual for more info

查看更多
来,给爷笑一个
3楼-- · 2019-04-04 14:48

Linux and Windows are not binary compatible, so you can't do that.

But, most of the windows binary installer could able to install at WINE

查看更多
你好瞎i
4楼-- · 2019-04-04 15:00

No.

See the NSIS feature list for more information ...

Portable Compiler

The NSIS compiler can be compiled for POSIX platforms like Linux and *BSD. Generated installer will still run on Windows only, but this way they can be generated without Windows or WINE.

查看更多
爷、活的狠高调
5楼-- · 2019-04-04 15:00

The installer systems for Windows and Linux are completely different.

Whereas Windows' only contribution to a software management system is one registry entry pointing to the uninstaller, Linux has a full working software management system. There are apt, yum, pacman and many more out there, which are supporting many more features and possibilities including automatic execution of scripts and pulling in/installing dependencies. If you have a cross platform application you wanna share, you're either stuck with creating a tar-ball, or you learn how to build deb/rpm etc. packages.

查看更多
登录 后发表回答