I want to provide installation of my application with file associations list, along with this I want to let Users without Admin rights install the application (but without file associations).
So, in this case, I could not set "perMachine": true, cause it will ask for Admin rights.
Here is the line, which throws an error and prevents me from building NSIS with both conditions: https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder-lib/src/targets/nsis/NsisTarget.ts#L519
I just commented it and it builds fine, and the installer works fine without any problems. All my conditions are met. So...
Thanks.
@brusherru and other voters — I have got enough issues about not working file associations because by default one-click non-admin installer is used and so, it leads to misunderstanding.
Got your point — check relaxed, now it is allowed to have file association for assisted installer.
Note that per user file associations should work soon, too: https://github.com/electron-userland/electron-builder/issues/2860.
Most helpful comment
@brusherru and other voters — I have got enough issues about not working file associations because by default one-click non-admin installer is used and so, it leads to misunderstanding.
Got your point — check relaxed, now it is allowed to have file association for assisted installer.