Reputation: 429
I have a batch script that deletes certain registry keys, it works as a script itself and also from the command line. However, as part of an uninstaller (Installshield), one of the 2 registry keys does not delete. My log file indicates that "the operation completed successfully" but for the life of me, the key is still there.
The command looks like this:
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\ProgramName\SubEntry" /f
and my log file:
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\ProgramName\SubEntry" /f
The operation completed successfully.
I can run the batch script itself as an admin and it works, I always run the installer (to install and uninstall) as an admin.
Upvotes: 0
Views: 2132