Reputation: 3225
Recently I was installing Visual Studio Code again and noticed it has a new User Installer
for download. I'm assuming this is an installer that user doesn't have to have the Administrator permission to install. Is that the case? How can I build my application like that? Couldn't find anything on the electron-builder documentation or other building packages...
Upvotes: 0
Views: 2382
Reputation: 2225
Take a look at electron builder's NSIS configuration:
The top-level nsis key contains set of options instructing electron-builder on how it should build NSIS target (default target for Windows).
oneClick = true Boolean - Whether to create one-click installer or assisted.
perMachine = false Boolean - Whether to show install mode installer page (choice per-machine or per-user) for assisted installer. Or whether installation always per all users (per-machine).
If oneClick is true (default): Whether to install per all users (per-machine).
If oneClick is false and perMachine is true: no install mode installer page, always install per-machine.
If oneClick is false and perMachine is false (default): install mode installer page.
In your case, User Installer is per-user and System Installer is per-machine. Try to set both oneClick
and perMachine
to false when build installer, you will see an installer page like this:
Hope this help.
Upvotes: 1