windows-installer
windows-installer copied to clipboard
Installer not working correctly
Hi all. I am usingelectron-winstaller
to 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!
Same issue here
@gasparyanyur @bbonczek did you guys figure it out? im facing same issue
My installer seems to install, but just a blank window comes up when running. Is there a way to see the console log?
i'm facing same issue. Anyone who can help?
Hi team, same issue here, anyone who can help us?, please
Facing same issue, any solution ?
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 I am also stuck with this issue. did you find the solution for this msi issue ?
@Rambarani sadly no, I switched to electron-builder instead.
@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.
Any update on this issue?