flcdrg / au-packages

David's Chocolatey Automatic Packages
MIT License
18 stars 52 forks source link

[resharper] Installing with /PerMachine can't be uninstalled successfully #178

Open flcdrg opened 1 month ago

flcdrg commented 1 month ago

(From https://community.chocolatey.org/packages/resharper#comment-6469638368)

Looks like if the package is installed with the /PerMachine parameter, it can not be uninstalled using chocolatey. choco install ReSharper --yes --params "/PerMachine" followed by choco uninstall ReSharper --debug --params "/PerMachine" results in

Uninstalling ReSharper...
Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -statements '/Silent=True /SpecificProductNamesToRemove=ReSharper /VsVersion=* ' -exeToRun 'C:\ProgramData\chocolatey\lib\resharper-platform\JetBrains.dotUltimate.2024.1.2.exe'
Test-ProcessAdminRights: returning True
Elevating permissions and running ["C:\ProgramData\chocolatey\lib\resharper-platform\JetBrains.dotUltimate.2024.1.2.exe" /Silent=True /SpecificProductNamesToRemove=ReSharper /VsVersion=* ]. This may take a while, depending on the statements.
Per-machine (all users) installations detected. Please specify '/PerMachine=True' command line key.
Command ["C:\ProgramData\chocolatey\lib\resharper-platform\JetBrains.dotUltimate.2024.1.2.exe" /Silent=True /SpecificProductNamesToRemove=ReSharper /VsVersion=* ] exited with '-1'.