I am planning to uninstall NVIDIA Nsight Systems v2019.3.3 (Windows), however, I received a popped-up message saying
“There is a problem with the Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.”
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 0x80070002 are:
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.
Still relevant in 2024 :). I followed your steps and solved that as well. I had also an issue with “Nsight Systems 2019.5.2”. Now it’s gone and I can reinstall all again.
Many thanks!
zbj3ji
Hello ! I have a same issue. However, I was on the deleting process for that file. Therefore, there is no file left out there. But still it shows me the driver versions of Nvidia on the command line when i hit the nvidia-smi.
What should i do ? If i put ‘Nsight Systems 2019.5.2’ msi file on that directory, can i delete this Nvidia version ?
If that is the case could you send me a msi file?
======================== After I turn off the WSL, it gave me another message. I think I can fix the issue if I designate the “NsightSystems-2019.5.2.16-b54ef97.msi” file location. It saids that file’s basic source directory is “C:\Users\user\AppData\Local\Temp\CUDA\NsightSystems”.
If you have this file, could you share it with me? My email address is career98@daum.net