Windows – way to remove a program that requires admin access to uninstall, but does not prompt for it

administratorinstallationuninstallwindows 7windows-installer

I'm using Advanced Installer to try and create an installer (.exe) for an application I've created. Part of the installation process involves installing a USB driver.

After building my installer, I tried running it but it kept failing due to a DIFXAPP error where it was unable to write keys to the registry. After running the installer as an administrator, I was able to install the application.

However, I'm now having trouble uninstalling the program for a similar reason – during the uninstall process, DIFX will try to access the key in the registry that it added during installation (presumably to remove it). However, without admin rights this fails, causing the uninstallation process to rollback.

I'm doing all this on a Windows 7 64-bit machine. Is there a way to force a program to be uninstalled using elevated access?

Best Answer

It wasn't pretty but I've resolved this for myself by manually hunting down all references to my product in the registry and deleting those keys. I've also changed my installation to per-machine (for the time being) to force elevation for both installation and uninstallation.

I'd still appreciate a solution that doesn't involve messing with the registry if there is one, just in case for future reference.

Related Question