windows-installer
windows-installer copied to clipboard
Getting error when trying to create installer
Hi all. I am getting an error when trying to run createInstaller.js
Here is my createInstaller.js file
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
const path = require('path')
getInstallerConfig()
.then(createWindowsInstaller)
.catch((error) => {
console.error(error.message || error)
process.exit(1)
})
function getInstallerConfig() {
console.log('creating windows installer')
const rootPath = path.join('./')
const outPath = path.join(rootPath, 'release-builds')
return Promise.resolve({
appDirectory: path.join(outPath, 'EvenDex-win32-ia32/'),
authors: 'Even Foundation',
noMsi: true,
outputDirectory: path.join(outPath, 'windows-installer'),
exe: 'even.exe',
setupExe: 'EvenDex.exe',
setupIcon: path.join(rootPath, 'system', 'icons', 'favicon.ico')
})
}
Here is the error which I have got
No dice: Failed with exit code: 4294967295
Output:
Couldn't open log file, trying new file: System.MethodAccessException: Attempt by method 'Squirrel.Update.SetupLogLogger..ctor(Boolean)' to access method 'System.IO.StreamWriter..cto
r(System.IO.Stream, System.Text.Encoding, Int32, Boolean)' failed.