Question about Wise and registry
Hi all,
I edited my question with my new concern. I found the solution easily to the other one so i deleted it.
With wise, i have to update existing registry key. I am wondering what is the best practice when uninstalling the application, if i want to revert to the former registry key value instead of deleting them.
Thks,
I edited my question with my new concern. I found the solution easily to the other one so i deleted it.
With wise, i have to update existing registry key. I am wondering what is the best practice when uninstalling the application, if i want to revert to the former registry key value instead of deleting them.
Thks,
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
You need to author two Custom Actions, then.
One will record the data which is there and store it in another key. This will run at install-time so you will need to condition it accordingly using 'If Installed' or, more correctly, you will have added a custom feature and set the condition according to whether or not this feature is selected for install. The second CA will run at uninstall, reading the stored data and writing it back to its former location. This will also need to be conditioned, probably using 'If REMOVE~="ALL"'.
One will record the data which is there and store it in another key. This will run at install-time so you will need to condition it accordingly using 'If Installed' or, more correctly, you will have added a custom feature and set the condition according to whether or not this feature is selected for install. The second CA will run at uninstall, reading the stored data and writing it back to its former location. This will also need to be conditioned, probably using 'If REMOVE~="ALL"'.
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.