/build/static/layout/Breadcrumb_cap_w.png

Reg Key Uninstall Options

AdminStudio 10
Windows 7

1. If I change the value of an existing reg key during the install of an msi using an mst, when the msi is uninstalled, will it revert the value to its original value or will it delete it?

2. Is this option configurable in AdminStudio 10? I looked, but coldn't find an option for this.

TIA

0 Comments   [ + ] Show comments

Answers (11)

Posted by: naveen.packager 13 years ago
Green Belt
0
It wont revert, it will delete the value.

I dont know about adminstudio, but one way you can achieve this is by creating custom actions calling vbscripts.

You can find the scripts by searching in google. First script will take the backup of the reg during intall and the second loads it during uninstall.
Posted by: jmcfadyen 13 years ago
5th Degree Black Belt
0
depends on the Component state of the component containing the registry key in question.

yes is it s a configurable option in IS Orca or Wise.

AppSearch
Registry Table
msiGetComponentState or componentRequestState from memory.
Posted by: anonymous_9363 13 years ago
Red Belt
0
Are you sure you read the question right, John? WI doesn't track registry data in that way.

@OP, you would need to write the data into a new registry value before changing it and then restoring the original value on uninstall. I haven't thought too hard about it but I think you could probably use AppSearch to set properties and use those properties to populate the registry values.
Posted by: naveen.packager 13 years ago
Green Belt
0
you would need to write the data into a new registry value before changing it and then restoring the original value on uninstall

Earlier when i had the same requirement, I used vbscripts which does the same thing as above.

you could probably use AppSearch to set properties and use those properties to populate the registry values
If you dont mind could please briefly explain or point me to any document which explains above thing. I had created propertys using appsearch for the registries which needs to be backed up but stucked here, could not get what to do next.

Thanks.
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
I kinda thought it would delete the key rather than revert, but thought I would ask. Its funny that this isn't an option.

Just to clarify...
So to revert/reinstall the original key, create a custom action to export/backup the original key and then a second custom action to run on uninstall to import/restore the original key?
Posted by: anonymous_9363 13 years ago
Red Belt
0
Its funny that this isn't an optionI'm sure it was considered as an option. Where would you stop, though? Backing up files, too?create a custom action <snip> and then a second custom action <snip>Yup!
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
Thanks all, I'll give it a try and let you know.
Posted by: naveen.packager 13 years ago
Green Belt
0
Here is one more option which describes the same

http://www.mombu.com/microsoft/platform-sdk-msi/t-howto-backup-registry-values-during-install-and-restore-during-install-319270.html

Using scripts is easy but want to give a try using this option but i don't know how to call MsiSetComponentState from a custom action.
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
Thanks for that link. Its made me think that maybe making the change via a reg key may not be a good idea just incase the value had been modified post install and pre uninstall. I can also make the change from command line which I might be able to add to the cmd install script.

I'll probebly play with both and determine which is the best for the environment.
Posted by: stacyjones 13 years ago
Yellow Belt
0
Can you just create a new entry?
Posted by: jmaclaurin 13 years ago
Third Degree Blue Belt
0
I am not sure I understand the question. My original post was around modifing an existing registry entry that is not included with the MSI, but would be modified by the MST. For example, IE settings.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ