question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

~/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 - screen shot 2017-10-14 at 9 54 27 am

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.

screen shot 2017-10-14 at 9 54 35 am

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.

screen shot 2017-10-14 at 9 54 49 am

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

screen shot 2017-10-14 at 9 54 59 am

@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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
etypcommented, Dec 5, 2017

We’re running into this as well. @develar any idea how we can aim to solve it? Willing to help out.

1reaction
aam1rcommented, Jan 11, 2022

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

prompt keeps popping up asking me… - Apple Developer
$ /usr/bin/env python xcode-select: Failed to locate 'python', requesting installation of command line developer tools. If I put another python on my PATH...
Read more >
INSTALLLEVEL property - Win32 apps | Microsoft Learn
The INSTALLLEVEL property is the initial level at which features are selected "ON" for installation by default. A feature is installed only ...
Read more >
How do you specify a default install location to $HOME with ...
However, I'd like for "Install for me only" to be selected by default. pkgbuild has a command line option for "--install-location" which the...
Read more >
Package installation issues | PyCharm Documentation
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal.
Read more >
4. Using Python on Windows — Python 3.11.1 documentation
If selected, the install directory will be added to your PATH. Shortcuts will only be visible for the current user. Selecting “Customize installation”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found