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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 06/08/2011 by: naveen.packager
Green Belt

Please log in to comment
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.
Answered 06/08/2011 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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.
Answered 06/09/2011 by: VBScab
Red Belt

Please log in to comment
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.
Answered 06/09/2011 by: naveen.packager
Green Belt

Please log in to comment
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?
Answered 06/10/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
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!
Answered 06/10/2011 by: VBScab
Red Belt

Please log in to comment
0
Thanks all, I'll give it a try and let you know.
Answered 06/10/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
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.
Answered 06/10/2011 by: naveen.packager
Green Belt

Please log in to comment
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.
Answered 06/10/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
0
Can you just create a new entry?
Answered 06/13/2011 by: stacyjones
Yellow Belt

Please log in to comment
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.
Answered 06/14/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity