Linux command
makensis 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Compile installer script
makensis [script.nsi]
Compile with maximum verbosity
makensis /V4 [script.nsi]
Define a symbol
makensis /D[NAME=value] [script.nsi]
Add include path
makensis /I[/path/to/includes] [script.nsi]
Log compiler output to file
makensis /O[logfile.txt] [script.nsi]
Treat warnings as errors
makensis /WX [script.nsi]
Show help for a command
makensis /CMDHELP [command]
说明
makensis compiles NSIS (Nullsoft Scriptable Install System) scripts into Windows installer executables. It runs natively on Linux, macOS, and Windows, making it useful for cross-platform build pipelines.
参数
- /V _LEVEL_
- Verbosity level: 0=none, 1=errors, 2=warnings, 3=info, 4=all.
- /D _NAME=VALUE_
- Define a symbol for the script preprocessor.
- /I _DIR_
- Add an include path for !include directives.
- /O _FILE_
- Log compiler output to file.
- /X _"command param"_
- Execute NSIS command inline.
- /NOCONFIG
- Disable inclusion of nsisconf.nsh.
- /NOCD
- Disable changing directory to the .nsi file location.
- /WX
- Treat warnings as errors.
- /P _LEVEL_
- Compiler priority: 0=idle, 1=below normal, 2=normal, 3=above normal, 4=high, 5=realtime.
- /CMDHELP _command_
- Print help for a specific command, or all commands.
- /HDRINFO
- Print makensis compile-time options.
- /PPO
- Run preprocessor only, print result to stdout.
FAQ
What is the makensis command used for?
makensis compiles NSIS (Nullsoft Scriptable Install System) scripts into Windows installer executables. It runs natively on Linux, macOS, and Windows, making it useful for cross-platform build pipelines.
How do I run a basic makensis example?
Run `makensis [script.nsi]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does /V _LEVEL_ do in makensis?
Verbosity level: 0=none, 1=errors, 2=warnings, 3=info, 4=all.