Thanks.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
How to prevent a CA from execution?
Started by
rbrinda
, Dec 28 2001 01:16
5 replies to this topic
Posted 28 December 2001 - 01:16
I have a major upgrade patch and at the end of the patch install, RemoveExistingProducts action is invoked and it removes the previously installed version of the product. But while doing that, it executes a CA with condition set to "Installed" that helps to remove some of the registry entries. I want to prevent executing this CA when RemoveExistingProducts is in action. How to do that? Please any help would be really appreciated. Its very urgent.
Posted 28 December 2001 - 02:37
Registry entries are best removed using the Registry table.
You can use the component conditions $ and ? to determine what is happening to a related component then use that to determine if a CA should run or not.
You are changing the system. Your action should be deferred before InstallFinalize and contain roll back code.
Posted 14 May 2002 - 16:51
Hello, Ian.
I have similar problem with CA, which executes during RemoveExistingProducts.
This CA has condition “NOT Installed”
How can I prevent this CA from execution during major update?
What is the new condition?
May be there is some special property, or missing some property ?
Thank you in advance,
Regards,
I have similar problem with CA, which executes during RemoveExistingProducts.
This CA has condition “NOT Installed”
How can I prevent this CA from execution during major update?
What is the new condition?
May be there is some special property, or missing some property ?
Thank you in advance,
Regards,
Igor S.
Posted 15 May 2002 - 07:36
I want to correct my mistake.
Condition to Custom Action was "Installed"
But problem stayed.
Condition to Custom Action was "Installed"
But problem stayed.
Igor S.
Posted 15 May 2002 - 09:01
Try
$RelatedComponent=2
$ Action state for component.
The action will run when RelatedComponent is being removed.
In the major upgrade this should only be the case if RelatedComponent has been made obsolete.
see topic
Conditional Statement Syntax
in MSI help.
$RelatedComponent=2
$ Action state for component.
The action will run when RelatedComponent is being removed.
In the major upgrade this should only be the case if RelatedComponent has been made obsolete.
see topic
Conditional Statement Syntax
in MSI help.
Ian Blake
(Currently Unemployed)
(Currently Unemployed)