The easiest option is to use the msi-packager utility
The installer has no wizard. Users just run the installer and your app will be installed and shortcuts created.
You must have wixl from msitools available in your path.
brew install msitools
npm install msi-packager
var createMsi = require('./')
var options = {
// required
source: '/Users/matt/Code/loop/loopjs-packager/build/Loop Drop-win32',
output: '/Users/matt/Code/loop/loopjs-packager/releases/Loop Drop v1.0.0.msi',
name: 'Loop Drop',
upgradeCode: 'YOUR-GUID-HERE',
version: '1.0.0',
manufacturer: 'loopjs.com',
iconPath: '/Users/matt/Code/loop/loopjs-packager/icon.ico',
executable: 'Loop Drop.exe',
// optional
description: "Some description",
arch: 'x86',
localInstall: true
}
createMsi(options, function (err) {
if (err) throw err
console.log('Outputed to ' + options.output)
})
There was a file system callback issue, but then it cleared after making some changes inside npm
References:
https://www.npmjs.com/package/msi-packager
No comments:
Post a Comment