Delete Registry and Apply Install
Posted: Tue Aug 25, 2009 11:56 am
As I understand it, the WRITE REGISTRY command is applied only when you call APPLY INSTALL, but DELETE REGISTRY is applied immediately. Is there any way to tell DELETE REGISTRY to not run until APPLY INSTALL is called?
I'm asking because we have to rename a registry key in our product upgrade, which I am doing by writing the new key and then deleting the old one. (If there's a better way please let me know). So DELETE REGISTRY should run and succeed under the same conditions that WRITE REGISTRY runs and succeeds. I can probably achieve this by using various "success" variables but obviously it would be simpler if I could make DELETE REGISTRY dependent upon APPLY INSTALL.
Thanks.
GregS
I'm asking because we have to rename a registry key in our product upgrade, which I am doing by writing the new key and then deleting the old one. (If there's a better way please let me know). So DELETE REGISTRY should run and succeed under the same conditions that WRITE REGISTRY runs and succeeds. I can probably achieve this by using various "success" variables but obviously it would be simpler if I could make DELETE REGISTRY dependent upon APPLY INSTALL.
Thanks.
GregS