← 全部工具

innosetup

热度 65 更新于 开发与构建

Node wrapper to compile inno setup scripts (.iss)

npmauto-collected

安装

npm
npm install -g innosetup

通过 npm 安装。

node-innosetup-compiler =======================

Node module to compile inno setup scripts (.iss)

This is a simple node wrapper of Inno Setup compiler: ISCC.exe

OS Support

##### Windows

Works natively on windows

##### Linux & Mac OS X

Works if wine is installed

Note for Mac OS X Users: If you get the following error err:macdrv:processattach Failed to start Cocoa app main loop, you may need to update wine to a more recent version (devel)

brew install wine --devel

Usage

All options are optional

##### Command line

npm install -g innosetup-compiler
innosetup-compiler myscript.iss --gui --verbose --signtoolname=signtool --signtoolcommand='"path/to/signtool.exe" sign /f "C:\\absolute\\path\\to\\mycertificate.pfx" /t http://timestamp.globalsign.com/scripts/timstamp.dll /p "MY_PASSWORD" $f'

##### Node JS

npm install innosetup-compiler
require("innosetup-compiler")("path/to/your/innoscript.iss", {
    gui: false,
    verbose: false,
    signtoolname: 'signtool',
    signtoolcommand: '"path/to/signtool.exe" sign /f "C:\\absolute\\path\\to\\mycertificate.pfx" /t http://timestamp.globalsign.com/scripts/timstamp.dll /p "MY_PASSWORD" $f'
}, function(error) {
    // callback
});