There are some programs that once installed in Windows simply refuse to leave peacefully. Sort of like Uncle Dale last summer. To remove these programs it may be necessary to uninstall then in Safe Mode. But wait. Safe Mode does not allow a lot of programs to run, especially programs that use the Windows Installer application. That means you can not remove programs in Windows Safe Mode, normally.
To work around this problem, we need to add some entries to the registry that will allow the Windows Installer to be treated as a safe program that is allowed in Safe Mode. The registry keys to add will depend on which Safe Mode option you selected at startup.
For Regular Safe Mode
REG ADD "HKLMSYSTEMCurrentControlSetControlSafeBootMinimalMSIServer" /VE /T REG_SZ /F /D "Service"
For Safe Mode with Networking
REG ADD "HKLMSYSTEMCurrentControlSetControlSafeBootNetworkMSIServer" /VE /T REG_SZ /F /D "Service"
Then you start the MSIServer and any program that require the Windows Installer will have access to it in Safe Mode.
net start msiserver