Hao  Peng
Hao Peng

Reputation: 73

How to hard remove uninst.exe that is generated by NSIS?

I am using NSIS to write an installer for my windows application. After installing the application, an uninst.exe is also generated in my program directory. Later on I need to uninstall my program but I failed to do that in control panel. Therefore I went to the file system and tried to delete the directory. Everything other than that uninst.exe was removed. I've tried changing permission of this file and other methods but it doesn't work.

Upvotes: 0

Views: 460

Answers (1)

Anders
Anders

Reputation: 101756

WriteUninstaller does not set file permissions or any other attribute that might prevent you from deleting it. It sounds like the file might still be in use by something on your machine.

Things to try:

  • Use Task Manager or Process Explorer to see if there is a uninst.exe process still running.
  • Use the find handle feature in Process Explorer to find any open handles to the file.
  • Use Process Monitor to get detailed information about the failed delete operation.
  • Check %LOCAL­APP­DATA%\Virtual­Store to make sure UAC Virtualization is not tricking you with "ghost" files.
  • Disable your Anti-Virus.
  • Reboot the machine and try to delete the file again.

Upvotes: 1

Related Questions