[all] fixes for windows
This commit is contained in:
@@ -4,7 +4,6 @@ const os = require('os');
|
||||
const path = require('path');
|
||||
const Sdk = require('./sdk');
|
||||
const exec = require('./exec');
|
||||
const Env = require('./env');
|
||||
const template = require('lodash.template');
|
||||
|
||||
class InnoSetup extends Sdk {
|
||||
@@ -21,14 +20,14 @@ class InnoSetup extends Sdk {
|
||||
let result = super.prepare(strip);
|
||||
if (!this.prepared) {
|
||||
result = result.then(() => {
|
||||
return exec(this.path, 'is.exe /VERYSILENT /SUPPRESSMSGBOXES');
|
||||
return exec(this.path, `is.exe /VERYSILENT /SUPPRESSMSGBOXES /DIR=${this.path}`);
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
get isccBin() {
|
||||
return path.join(Env.get('ProgramFiles(x86)'), `Inno Setup ${this.version}`, 'ISCC.exe')
|
||||
return path.join(this.path, 'ISCC.exe')
|
||||
}
|
||||
|
||||
get prepared() {
|
||||
|
||||
Reference in New Issue
Block a user