-
Notifications
You must be signed in to change notification settings - Fork 910
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
MSIexec syntax - auto uninstall #438
Comments
OK, I don't know why but 2) is not strictly necessary. In fact, when using Start-Process, if you try 2) it will not work. Edit- here's what works in an uninstaller script $msiProductCodeGuid = '{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A}'
$silentArgs = "$msiProductCodeGuid /qn /norestart"
Start-Process -FilePath 'msiexec.exe' -ArgumentList "/X$silentArgs" -Verb RunAs |
Windows 10 as well here? |
Yep |
Do me a favor. Flip on autouninstaller and see if it behaves correctly without an uninstall script.
|
|
Yes, install it with at least it installing a different version that what is already installed. You may need to uninstall it manually first if the versions match. |
paint.net v4.0.6
Running auto uninstaller...
Sleeping for 2 seconds to allow Windows to finish cleaning up.
Preparing uninstall key 'MsiExec.exe /X{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A}'
Uninstaller path is 'MsiExec.exe'
Installer type is 'MsiInstaller'
Setting up uninstall logging directory at C:\Users\Link\AppData\Local\Temp\chocolatey\paint.net\4.0.6
Args are ' /X{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A} /qn /norestart '
Calling command ['"MsiExec.exe" /X{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A} /qn /norestart']
Command ['"MsiExec.exe" /X{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A} /qn /norestart'] exited with '1603'
Auto uninstaller failed. Please remove machine installation manually.
Exit code was 1603 The auto uninstaller works when run from an administrative powershell. Otherwise, this is the result. |
Interesting. SO quotes are necessary then??! |
Oh, wait. ALWAYS run choco from administrative command shells. Unless you've installed it somewhere specific that doesn't require admin permissions to write to. |
I've followed this advice and run into a fundamental problem- look at the chromium package. It installs into %APPDATA%, and is therefore entirely inaccessible to my user account. |
I'm unsure what we need to do here given the comment above. It feels like Chocolatey CLI is being used in a non-admin context, which is causing the issue. This is 8 and a half years old at this point but I'll ask - @AeliusSaionji can you provide any more information here? |
I have no memory of this, unfortunately. Seems possible that this could affect portable choco installs, which are definitionally non-admin. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Dear contributor, As this issue seems to have been inactive for quite some time now, it has been automatically closed. |
Uninstall-ChocolateyPackage calls msiexec in this fashion:
[ERROR] Running msiexec with /x {DF3A46D9-67B3-44B2-9D01-25C8BA772C8A} /qn /norestart was not successful. Exit code was '1603'
On my machine, msiexec will not run with this syntax. Registry entries have shown me the correct UninstallString:
msiexec "/x{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A}"
By calling msiexec directly from the command line, I've determined that the full working command is
msiexec "/x{DF3A46D9-67B3-44B2-9D01-25C8BA772C8A}" /qn /norestart
Here's the relevant error from the log, which indicates this might be related to me running a user account (mentioned here #434)
The text was updated successfully, but these errors were encountered: