-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Issue: Chocolatey - Unable to install/uninstall if gsudo is running #74
Comments
For an upgrade process I could try to rename You would still see that error if both |
I drafted it on PR #75. Let me know your thoughts. I will start testing when I got some time. The choco pkg is quite sensitive. A bad fix can cause many issues. |
What do you mean ? |
I've received multiple tickets regarding the installation process in the past. (users have multiple scenarios and environment types) Any change should go through 'extensive' testing before a release. Just let's be careful. |
Hi folks, I tried my quick and dirty commit #75 and it totally failed. All my assumptions on how Chocolatey works were wrong. This means When you upgrade gsudo, it tries to move everything from This happens before the custom steps defined in chocolateyInstall.ps1 and chocolateybeforemodify.ps1 are ran. Modifying those files is useless AFAIK. Right now I don't know if this feature is achievable. 😢 ps: Maybe, if we make the gsudo choco pkg install it in another folder, like |
In this case, I would suggest using |
I've made some changes to implement this. The next release will no longer add Now, according to my (many) tests, even if For uninstalling, I just delete Now, people will need to upgrade to this new (to be released) version without using gsudo, and only after that they could
But, for those who sucessfully upgrade to the upcoming release (v1.1.0) i.e. with gsudo closed, they will be able to Anyone want review the code? 64d4bbc...Feature.PwshSyntax |
Maybe help testing it?
EDIT: TBH, not sure how much can be tested with only one >v1.0.2 package. A forced upgrade will fail because it wont be able to overwrite |
Fix released in v1.1.0. |
Allow updating gsudo when it is running. Currently I get
ERROR: Unable to install/uninstall if gsudo is running
I propose to save new version on temp location then replace it on next gsudo startup.
The text was updated successfully, but these errors were encountered: