~/Applications(Install only for me) option is not selected by default even though the UI installer shows selected when pkg is created with allowCurrentUserHome:true
See original GitHub issue- Version: 19.37.0
- Target: Mac
I am creating a pkg with the config -
"pkg": {
"allowAnywhere": false,
"allowCurrentUserHome": true,
"allowRootDirectory": false
},
And it DOES create a package that does not require admin password.
But the problem is the “Install only for me” option is not selected by default. I had to manually click “change install location” -> the default selected is “Install for all users on this computer” (even though in the package.json for electron builder I have mentioned "allowRootDirectory": false
&& even though the UI in the installer shows “install only for me” is selected ) -> Manually click “install only for me” and then the package would install the app without the admin password. And the app would be in the ~/Applications
(current user apps) rather than /Applications
(for all users)
Step 1 -
Step 2 - Notice here, it directly jumps to step 3 of the installer and in doing so, “install for all users of this compuer” is selected by default and hence the installer prompts for an admin password. Opposite to the config I used during the build time.
Step 3 - Then, I have to click on “change install location” which takes me to the step 2 of the installer. Here on arrival, I get an error message “installer does not allow this software to be installed here” but the UI on the installer shows the “install for me only” is selected. But actually, the “install for all users of this compuer” and hence the error message.
Step 4 -
To get rid of the above error msg, I have to manually click “install only for me” option and then the installation succeeds without prompting for admin password and the app is installed to ~/Applications
@develar Can you please provide any inputs?
pkg link - https://www.dropbox.com/s/844rqyk64asb7pt/test.pkg?dl=0
P.S Thank you for the awesome work of electron-builder 👍
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
We’re running into this as well. @develar any idea how we can aim to solve it? Willing to help out.
This is still happening on macOS Big Sur (11.2.3), but does not happen on macOS Monterey (12.1).
Has anyone been able to figure out why this happens and if there’s a workaround here?