PDA

View Full Version : Cannot delete registry entries during uninstall



DavidAY
08-05-2004, 01:44 PM
Hello,

I'm new to this, so please help :) thanks

During my installation script, an OPENx entry is created in windows
registry.
Upon uninstallation, this entry should be removed. This entry is
created under HKEY_CURRENT_USER/Software/Microsoft/Office/8.0/Excel/Microsoft
Excel/

I'm running into a problem when the OPENx entry gets reshuffled with
other OPENx entries. UninstallShield works by logging all the "steps"
performed during installation, and then undo these steps in reverse
order during uninstallation. According to this principle, for
example, if the installer adds the key OPEN3 to the Excel registry,
then it will remove OPEN3 during uninstallation. This is no good,
because the keys OPEN, OPEN1, OPEN2, OPEN3, OPEN4, etc. may have been
*reshuffled*. Therefore, if the uninstaller removes OPEN3, there's a
slight chance that it may remove an OPENx that refers to another
add-in.

Is there a way to access the uninstallshield script?
Is there a function for me to search through the data value of the
registry keys and point to the exact key I need to delete?

Thanks for the help

David

RobertDickau
08-06-2004, 12:51 PM
Depending on how you're creating the key, there are different ways of marking it as permanent; and you can use RegDBQueryKey to walk through the values or subkeys of a key...