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

Installer runs briefly then quit

Open Torsio opened this issue 3 years ago • 4 comments

This is an image

My installer window show up for a quarter of second then quits without installing

What can I do to find what causes this bug?

Torsio avatar Dec 16 '21 14:12 Torsio

Same here

david-fiaty avatar Oct 09 '22 19:10 david-fiaty

This is not windows-installer if you are seeing an MSI dialog

anaisbetts avatar Oct 10 '22 16:10 anaisbetts

@anaisbetts, I confirm that I've produced a .msi with electron/windows-installer (winstaller), and when I double click on it, the dialog opens for 1 second then disappears and that's it. Exactly like in the screenshot provided by @Torsio. It appears that we both have the same issue.

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

Oh, you're using the Machine-wide deployment. This MSI is intended for enterprise deployment scenarios, not for regular users. If you log out and log back in and wait a sec or two, you'll see that your app is installed. This is because the MSI is intended for enterprise deployment where the MSI is run under an admin user account that is typically not the actual user's account.

Instead, you want to use the Setup.exe that is generated.

anaisbetts avatar Oct 11 '22 21:10 anaisbetts