Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron App Installation to ProgramFiles

What's the best way to make an electron app installer so that it installs it in ProgramFiles? I am using the electron-builder, but it installs the app in %appdata%

like image 585
Gaurav Avatar asked Feb 11 '20 14:02

Gaurav


1 Answers

The installer will indeed install in %appdata% if you have set build/nsis/perMachine to false (which is default) in your package.json. If you set perMachine to true, the program will be installed in program files, and furthermore if you set oneClick to false, you allow the user to choose where to install.

like image 150
Garmien Avatar answered Jan 04 '23 01:01

Garmien