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
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)
Please log in to answer
Posted by:
naveen.packager
13 years ago
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.
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
Posted by:
anonymous_9363
13 years ago
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.
@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
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
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?
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
Posted by:
naveen.packager
13 years ago
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.
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
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.
I'll probebly play with both and determine which is the best for the environment.
Posted by:
jmaclaurin
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.