Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unattended installation of Chocolatey without admin rights aren't possible. #274

Closed
smspillaz opened this issue May 7, 2015 · 3 comments

Comments

@smspillaz
Copy link
Contributor

chocoInstall calls choco unpackself which throws up a prompt if the shell is not elevated or running as an admin user.

This blocks the installation on user input, which makes unattended installations without admin rights impossible at the moment (which is important for CI like environments or scripts).

@ferventcoder ferventcoder self-assigned this May 7, 2015
@ferventcoder ferventcoder added this to the 0.9.9.6 milestone May 7, 2015
smspillaz added a commit to smspillaz/choco that referenced this issue May 7, 2015
Previously, if a non-admin user attempted to install chocolatey,
a message indicating that non-admin installs were for advanced
users only would appear and block the installation.

Advanced users know what they are doing, so allow them to
set the ChocolateyEnvironmentAllowGlobalConfirmation environment
variable, just like they can pass -y to any other invocation
of chocolatey.
smspillaz added a commit to smspillaz/choco that referenced this issue May 7, 2015
Previously we had an if condition on debugMode, but it is more
concise to just express it as a string appended to the list
of options passed to choco.
smspillaz added a commit to smspillaz/choco that referenced this issue May 7, 2015
Previously we had an if condition on debugMode, but it is more
concise to just express it as a string appended to the list
of options passed to choco.
smspillaz added a commit to smspillaz/choco that referenced this issue May 7, 2015
Previously, if a non-admin user attempted to install chocolatey,
a message indicating that non-admin installs were for advanced
users only would appear and block the installation.

This runs contrary to chocolatey policy, so just pass -y during
the unpackself command. The installation should never block.
smspillaz added a commit to smspillaz/choco that referenced this issue May 7, 2015
Previously we had an if condition on debugMode, but it is more
concise to just express it as a string appended to the list
of options passed to choco.
@ferventcoder ferventcoder changed the title Unattended installations without admin rights aren't possible. Unattended installation of Chocolatey without admin rights aren't possible. May 8, 2015
ferventcoder pushed a commit that referenced this issue May 16, 2015
Previously, if a non-admin user attempted to install chocolatey,
a message indicating that non-admin installs were for advanced
users only would appear and block the installation.

This runs contrary to chocolatey policy, so just pass -y during
the unpackself command. The installation should never block.
ferventcoder pushed a commit that referenced this issue May 16, 2015
Previously we had an if condition on debugMode, but it is more
concise to just express it as a string appended to the list
of options passed to choco.
ferventcoder added a commit that referenced this issue May 16, 2015
* unattended-install-as-non-admin-user:
  (GH-274) Clean up how debugMode is expressed
  (GH-274) Allow unattended installs as non-admin user
ferventcoder added a commit that referenced this issue May 16, 2015
* stable:
  (GH-274) Clean up how debugMode is expressed
  (GH-274) Allow unattended installs as non-admin user
  (GH-281) Fix notsilent switch
@ferventcoder
Copy link
Member

Darn, there is a bug in this code somewhere.

@ferventcoder ferventcoder reopened this May 16, 2015
@ferventcoder
Copy link
Member

Reopening for now while I investigate.

ferventcoder added a commit that referenced this issue May 17, 2015
Having the $debugModeParams touching the other items is actually
causing harm. Separate the item and start it out as $null instead of
empty string.
ferventcoder added a commit that referenced this issue May 17, 2015
* stable:
  (doc) formatting
  (version) 0.9.9.6
  (GH-274) install - fix unpack self
  (doc) setting release date to today
@smspillaz
Copy link
Contributor Author

@ferventcoder thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants