question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installer not working correctly

See original GitHub issue

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!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:11

github_iconTop GitHub Comments

1reaction
dianejewettcommented, May 1, 2019

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

0reactions
david-fiatycommented, Oct 13, 2022

Any update on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Identify Windows Installer issues · Click Start windows icon · Right-click Windows Installer, and then click Properties. · If the Startup type box...
Read more >
Here's How To Fix Windows Installer Not Working
Press Win + R and type in services.msc to launch Windows Services Manager. · Scroll to Windows Installer and right-click on it, click...
Read more >
Windows Installer not working properly in Windows 11/10
2] Start the Windows Installer Service ... In the Run prompt, type MSIExec, and then press Enter. If you get the Windows Installer...
Read more >
Solved: Windows Installer not working properly in Windows 10
Press Windows key + R, type services.msc and click ok, · Scroll down and locate Windows Installer and check its state. · If...
Read more >
Fix Windows Installer Not Working in Windows 10 / 11
Method 1: Starting msiserver service · Method 2: Tweaking Windows installer properties in Services · Method 3: Using command prompt · Method 4: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found