Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Does not delete Registry entries upon uninstall


1 reply to this topic

TobiasEriksson

TobiasEriksson
  • Members
  • 16 posts

Posted 12 January 2004 - 13:22

Hi
My installer does not seem to be able to delete the registry entries upon uninstallation. The RemoveRegistryValues action does not seem to do anything at all, although there is a message in there that I am not sure of, see the MSI log below. Does anyone know if the 2262 or -2147287038 codes means anything?

Furthermore, my observation is that neither the Dir1 nor the registries are deleted upon uninstall.

Any help or pointers in the right direction would be great
Tobias

.
.
.
MSI (s) (44:80): Doing action: RemoveRegistryValues
Action start 11:19:41: RemoveRegistryValues.
MSI (s) (44:80): Note: 1: 2262 2: RemoveRegistry 3: -2147287038
Action ended 11:19:41: RemoveRegistryValues. Return value 1.
.
.
.



What I have is a couple of registry entries:
HKEY_LOCAL_MACHINE\SOFTWARE\ComOpt\Tobias\tle = blabla

(yes, a dummy test rolleyes.gif )

The Registry Table says:
R1 -1 SOFTWARE\ComOpt\Tobias tle blabla Component1994

The Component Table says:
Component1993 {01F9380F-6BDA-65B5-2364-DBEB7CDF39B9} Dir120 4 Reg1
Component1994 {1564C74E-3CE4-5D7B-2326-8837E19D209A} Dir121 4 Reg2


The Directory Table says:
Dir120 ProgramMenuFolder ComOpt|ComOpt
Dir121 Dir120 Dir121|CellOpt AFP 3.1


catrill

catrill
  • Full Members
  • 16 posts

Posted 12 January 2004 - 16:41

Perhaps you also need an entry in the Registry table that says what should be done with the key when the component is installed/removed?

I use installshield to create my msi package and a while ago I noticed that when I create a new key with data in it, instead of just creating one entry in the Registry table containing key, name and value information, InstallShield creates two, the other entry contains just key information.

Suggest you add this if you haven't got it already:

R2 -1 SOFTWARE\ComOpt\Tobias NULL NULL Component1994

The Name column can be changed to + (create key on installation) - (delete entire key on uninstallation) or * (create key on install, delete entire key on removal). Without any of these, you get the default behaviour (the key is removed on uninstall if the key was created on install). All this information is in the help on the Registry table.

Re: dir1 not removed: a folder will be removed on uninstall if it is empty by the time the RemoveFolders action runs.