Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Platformsdk MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 06-25-2010, 05:01 PM   #1 (permalink)
Richard Winks
Guest
 
Posts: n/a
Default RemoveRegistryTable entry removes keys on install not uninstall

Documentation seems to indicate that entries in the RemoveRegistry Table will
be removed when the installed component is uninstalled. I was expecting that
this would allow me to remove keys that are created by the application on
uninstall.

In my tests I find that the entries in the table are not removed on uninstall.
However, they are removed during the next install.

Is this correct?
If it is not then how can I correct this behavior?

Richard
  Reply With Quote
Old 06-25-2010, 07:01 PM   #2 (permalink)
Richard Winks
Guest
 
Posts: n/a
Default RE: RemoveRegistryTable entry removes keys on install not uninstall

Update:
I now see that this is the intended behavior for the RemoveRegistry Table
entries.

I have seen it suggested that you need to use the RegistryTable to force a
removal on uninstall ("-" in the Name field).

My problem is that the "-" trick removes the entire key and subkeys. I
merely want to remove a value from a key.

This means Custom Action. Does anyone know where I can find the API calls
for MSI to allow me to read the RemoveRegistry table?

Richard


"Richard Winks" wrote:

> Documentation seems to indicate that entries in the RemoveRegistry Table will
> be removed when the installed component is uninstalled. I was expecting that
> this would allow me to remove keys that are created by the application on
> uninstall.
>
> In my tests I find that the entries in the table are not removed on uninstall.
> However, they are removed during the next install.
>
> Is this correct?
> If it is not then how can I correct this behavior?
>
> Richard

  Reply With Quote
Old 06-30-2010, 09:01 PM   #3 (permalink)
John
Guest
 
Posts: n/a
Default RE: RemoveRegistryTable entry removes keys on install not uninstal

Hi Richard,

You can find the database functions here:
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

However, they are used for editing the MSI, not affecting its installation
behavior. If you need a custom action, I'm currently offering consulting
services. Please contact me if you are interested.

Regards,
John
--
http://www.setupanddeployment.com/

"Richard Winks" wrote:

> Update:
> I now see that this is the intended behavior for the RemoveRegistry Table
> entries.
>
> I have seen it suggested that you need to use the RegistryTable to force a
> removal on uninstall ("-" in the Name field).
>
> My problem is that the "-" trick removes the entire key and subkeys. I
> merely want to remove a value from a key.
>
> This means Custom Action. Does anyone know where I can find the API calls
> for MSI to allow me to read the RemoveRegistry table?
>
> Richard
>
>
> "Richard Winks" wrote:
>
> > Documentation seems to indicate that entries in the RemoveRegistry Table will
> > be removed when the installed component is uninstalled. I was expecting that
> > this would allow me to remove keys that are created by the application on
> > uninstall.
> >
> > In my tests I find that the entries in the table are not removed on uninstall.
> > However, they are removed during the next install.
> >
> > Is this correct?
> > If it is not then how can I correct this behavior?
> >
> > Richard

  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:57 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com