windows-installer icon indicating copy to clipboard operation
windows-installer copied to clipboard

Getting error when trying to create installer

Open gasparyanyur opened this issue 6 years ago • 0 comments

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.

gasparyanyur avatar May 08 '18 08:05 gasparyanyur