Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems installing nsis-generated exe for all users #645

Closed
rwlnd opened this issue Aug 4, 2016 · 10 comments
Closed

problems installing nsis-generated exe for all users #645

rwlnd opened this issue Aug 4, 2016 · 10 comments

Comments

@rwlnd
Copy link

rwlnd commented Aug 4, 2016

  • Version: 5.22.2
  • Target: nsis - no oneClick - no custom options
  • Operating system: windows 10
  • Build command: build --arch all

I've been installing/uninstalling my application using an nsis-generated exe quite a few times now and while I was trying to write down the symptoms of the early behavior, I think I stumbled upon the actual bug.

I was having some troubles installing for "all users". When landing on the final page, I leave the "run APP" option selected, but the application was not opened. There was however a shortcut placed on the desktop and clicking on that opened the application.

After a few installs/uninstalls, I noticed that even the desktop shortcut was no longer placed after installing, although "the installing completed successfully".

After installing/uninstalling a few more times, I opened the installation location of the application (C:\program files(x86)\APP ) to see what was going on, if there were some files left , ... etc

Which lead me to the discovery of the actual problem:

If you close/finish the install wizard too fast, the installation folder stops getting filled with the necessary files. If you quickly press Install, Finish on the installer, only some of the files are copied.
IF however you keep the final page of the installation wizard open, you can see all the files getting added in C:\program files(x86)\APP , the desktop icon gets added, and if you THEN click the finish button, everything works as expected.

The installer should be kept in the "installing" stage until all files are copied and after that show the final page. I guess this is the case when installing for "just me".

Feel free to contact me if you want additional info

@rwlnd
Copy link
Author

rwlnd commented Aug 8, 2016

Just to follow up on this issue, if you rightclick the installer and run it as administator, then it works correctly..

@develar
Copy link
Member

develar commented Aug 8, 2016

It seems due to UAC impl. outer process kills inner before. Strange. *** Windows :(

@FromStoneage
Copy link

@rwlnd @develar I too observe the same behaviour on Windows 10 with nsis installer. Only works when running it as administrator, regardless of the UAC permission level.

@develar
Copy link
Member

develar commented Aug 17, 2016

I hope it will be fixed in several days. Keep in mind — default is one-click and it is the reason why it is not fixed ASAP.

@develar
Copy link
Member

develar commented Aug 20, 2016

Please try 5.31.1

@develar
Copy link
Member

develar commented Aug 30, 2016

Closed, feel free to reopen if still occurs.

@develar develar closed this as completed Aug 30, 2016
@RyanEwen
Copy link

Same issue seems to exist on 7.7.0 for me

@igorcandeia
Copy link

Same to me. "electron-builder": "^10.5.0"

@develar
Copy link
Member

develar commented Dec 12, 2016

@igorcandeia Please see #767, it seems it is your issue.

@igorcandeia
Copy link

Run it as administator, then it works correctly. But lay users do not know this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants