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'.
(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 bychoco uninstall ReSharper --debug --params "/PerMachine"
results in