Uninstalling#

Uninstalling by the wizard#

1. To uninstall HIP-VS, select Extensions -> Manage Extensions in Visual Studio 2019/2022 or Tools -> Extensions and Updates... in Visual Studio 2017 main menu.

2. In the appeared dialog, find AMD HIP Toolchain in the Installed section and push the Uninstall button.

The below screenshots are from Visual Studio 2022.

image

3. Then push the Yes button (Visual Studio 2017, 2019, and 2022 before 17.10):

image

4. Then push the Close button (Visual Studio 2017, 2019, and 2022 before 17.10):

image

5. Close Visual Studio and follow the instructions of the VSIX installer.

Uninstalling in shell#

Before starting an uninstallation process, all instances of Visual Studio should be closed, and all msbuild or devenv building or testing processes should be stopped.

Uninstalling in shell for VS 2017#

"c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VSIXInstaller.exe" /a /q /u:AMD_HIP_15.d1a5925e-28c9-4d6b-9a68-e6558d8f0e32

Uninstalling in shell for VS 2019#

"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VSIXInstaller.exe" /a /q /u:AMD_HIP_16.cae2b0cd-2440-4cb8-99dc-1a1e2809da09

Uninstalling in shell for VS 2022#

"c:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VSIXInstaller.exe" /a /q /u:AMD_HIP_17.a84511cf-d24c-43a1-bbe1-f171b53ee36c

Uninstalling in shell the archived versions#

Uninstalling the previous versions of HIP-VS

The uninstallation process lasts from a few seconds to a few minutes, depending on the system’s hardware and environment. For a successful uninstallation, the return code of the VSIXInstaller.exe should be equal to 0. The return code might be checked by the %errorlevel% variable directly after one of the above commands for VSIXInstaller.exe launching. The main reason vsix is not uninstalled (the return code doesn’t equal 0) is that the former process is blocking the installation. It might be msbuild.exe, devenv.exe, and some dependent processes. They should be stopped; restarting the system is also a solution.