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

Installer not working correctly

Open gasparyanyur opened this issue 6 years ago • 11 comments

Hi all. I am usingelectron-winstallerto make an installabe file for windows.

So I have installed the node package by the command npm i -g electron-winstaller

Than have created built.js

var electronInstaller = require('electron-winstaller');

// In this case, we can use relative paths
var settings = {
    // Specify the folder where the built app is located
    appDirectory: './release-builds/MyApp-win32-ia32',
    // Specify the existing folder where
    outputDirectory: './installers',
    // The name of the Author of the app (the name of your company)
    authors: 'MyAppGroup',
    // The name of the executable of your built
    exe: './MyApp.exe'
};

resultPromise = electronInstaller.createWindowsInstaller(settings);

resultPromise.then(() => {
    console.log("The installers of your application were succesfully created !");
}, (e) => {
    console.log(`Well, sometimes you are not so lucky: ${e.message}`)
});

I have already made my package by the command electron-packager . --overwrite --asar --platform=win32 --arch=ia32 --icon=system/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"MyApp\""

So after running the command node built.js

I am getting that the instalalble file successfuly created.

So now in my installers folder I have some new files

MyApp-0.1.0-full.nupkg MyAppSetup.exe MyAppSetup.msi RELEASES

So when I am trying to install app by msi file I am getting a loading window which closing after 2-3 sec.

When trying to run MyAppSetup.exe file, the application is starting to work withouth installation process.

Please help me to get correct installable file. Thanks!

gasparyanyur avatar Jul 06 '18 09:07 gasparyanyur

Same issue here

bbonczek avatar Feb 08 '19 14:02 bbonczek

@gasparyanyur @bbonczek did you guys figure it out? im facing same issue

Kelt avatar Mar 20 '19 18:03 Kelt

My installer seems to install, but just a blank window comes up when running. Is there a way to see the console log?

dianejewett avatar May 01 '19 18:05 dianejewett

i'm facing same issue. Anyone who can help?

ghost avatar May 22 '20 06:05 ghost

Hi team, same issue here, anyone who can help us?, please

ENeoW avatar May 26 '20 00:05 ENeoW

Facing same issue, any solution ?

shettigarsanthosh avatar Nov 02 '20 07:11 shettigarsanthosh

I think i have the same issue. When i double click on the MSI installer, it does the same thing as @gasparyanyur, but if a go in c:\Program files (x86), i can see a folder « [nameof the app] Deployment » and inside i will see an executable: « [nameof the app] DeploymentTool.exe ». If a double click on that one, it will install the app correctly, create a icon on the desktop and also in the start menu.

Why do the .msi installer create a secondary installer, that somehow the end user will have to run... that not user friendly at all. What i'm doing wrong here ?

Davilink avatar Jul 21 '21 16:07 Davilink

@Davilink I am also stuck with this issue. did you find the solution for this msi issue ?

Rambarani avatar May 16 '22 17:05 Rambarani

@Rambarani sadly no, I switched to electron-builder instead.

Davilink avatar May 17 '22 20:05 Davilink

@Davilink So do you supporting auto updates in msi. if yes means how. previously I am using electron builder and electron updater but auto updates not working in msi. that's why I am trying windows installer.

Rambarani avatar May 18 '22 03:05 Rambarani

Any update on this issue?

david-fiaty avatar Oct 13 '22 11:10 david-fiaty