PC Review


Reply
Thread Tools Rate Thread

how can i restore the registry value after an msi is uninstalled

 
 
BxDown
Guest
Posts: n/a
 
      15th Oct 2003
I have several small msi's that change the registry stopping users
from using certain features of windows such as cmd.exe etc. the
problem is some of these msi's change the existing value from say 1 to
0 but on uninstall they clear the entry and leave it blank. Is there a
way to include in the install a way to backup the original value and
then upon uninstall restore the original value?

Thanks
ZTahir
 
Reply With Quote
 
 
 
 
Jeff Henkels
Guest
Posts: n/a
 
      15th Oct 2003
The quick and dirty way would be to use a couple of custom actions. The
first, executed on install, would save the old value, say, by copying it to
a different name. The second CA would execute on uninstall and read the
saved value from the name created by the first CA, then write it to the
appropriate place.

"BxDown" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have several small msi's that change the registry stopping users
> from using certain features of windows such as cmd.exe etc. the
> problem is some of these msi's change the existing value from say 1 to
> 0 but on uninstall they clear the entry and leave it blank. Is there a
> way to include in the install a way to backup the original value and
> then upon uninstall restore the original value?
>
> Thanks
> ZTahir



 
Reply With Quote
 
Guest
Posts: n/a
 
      15th Oct 2003
Thanks Jeff..
I'm gonna try setting up custom actions..
so what is the long and clean way


>-----Original Message----->The quick and dirty way would

be to use a couple of custom actions. The
>first, executed on install, would save the old value,

say, by copying it to
>a different name. The second CA would execute on

uninstall and read the
>saved value from the name created by the first CA, then

write it to the
>appropriate place.
>

 
Reply With Quote
 
Jeff Henkels
Guest
Posts: n/a
 
      15th Oct 2003
Probably something involving the Registry, RemoveRegistry, AppSearch, and/or
CCPSearch tables. You'd use the AppSearch or CCPSearch to get the original
registry value into a property; then use the registry table to save that
property in the appropriate place.

<(E-Mail Removed)> wrote in message
news:0ddc01c39324$3e4daed0$(E-Mail Removed)...
> Thanks Jeff..
> I'm gonna try setting up custom actions..
> so what is the long and clean way
>
>
> >-----Original Message----->The quick and dirty way would

> be to use a couple of custom actions. The
> >first, executed on install, would save the old value,

> say, by copying it to
> >a different name. The second CA would execute on

> uninstall and read the
> >saved value from the name created by the first CA, then

> write it to the
> >appropriate place.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to restore BCM after I uninstalled it Paolo Bozzoli Microsoft Outlook BCM 0 16th Jul 2009 10:56 AM
Restore uninstalled program =?Utf-8?B?SWRpb3Qx?= Microsoft Windows 2000 MSI 3 29th May 2009 10:57 PM
Registry Debris from Uninstalled Programs Don Cohen Windows Vista Performance 3 4th Dec 2008 11:25 AM
Windows Registry : Uninstalled Software Le Souricier Gris Windows XP General 3 6th Feb 2008 06:36 AM
Registry cleaner for uninstalled softwares Suresh Lohar Windows XP Help 2 19th May 2006 05:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:55 AM.