I am getting the same error:
There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.
First, find the uninstaller (
.msi file) in
C:\Windows\Installer\ by opening that folder in explorer in Details view and enabling the “Subject” column. The correct file should have “NVIDIA Nsight Systems 2019.3.3 Installer” in the “Subject” column.
Try to run the uninstaller manually to see if that works. If not, try running it from the command line with logging by running
msiexec /x /L* PATH_TO_LOG PATH_TO_MSI in a admin command prompt. The log file should say what the problem is.
In my case, the failure was in running
regsvr32.exe /u /s "C:\Program Files\NVIDIA Corporation\Nsight Systems 2019.5.2\host-windows-x64\\msdia140.dll". If I run that command manually (without the
/s), it says this:
The module “C:\Program Files\Nvidia Corporation\Nsight Systems 2019.5.2\host-windows-x64\msdia140.dll” was loaded but the call to DllUnregisterServer failed with error code 0x80070002.
For more information about this problem, search online using the error code as a search term.
Searching the error code didn’t turn up much.
DllUnregisterServer returns a
HRESULT and the meaning of the bits in
Severity = Failure
Facility = Win32
Not very useful, but I took a guess that maybe the DLL was never registered to begin with, so I ran
regsvr32.exe "C:\Program Files\NVIDIA Corporation\Nsight Systems 2019.5.2\host-windows-x64\\msdia140.dll" in an admin command prompt to register the DLL first, and the uninstaller worked fine from there.
Hope this helps!