Skip to content

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

Description

@flcdrg

(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'.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions