Jump to content


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.
Photo

How to prevent a CA from execution?


5 replies to this topic

rbrinda

rbrinda
  • Full Members
  • 65 posts

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.

Thanks.


Ian Blake

Ian Blake
  • Members
  • 483 posts

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.


rbrinda

rbrinda
  • Full Members
  • 65 posts

Posted 28 December 2001 - 19:30

Thanks, Ian for your quick reply!! I will try this one.

IgorS

IgorS
  • Members
  • 38 posts

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,
Igor S.

IgorS

IgorS
  • Members
  • 38 posts

Posted 15 May 2002 - 07:36

I want to correct my mistake.
Condition to Custom Action was "Installed"
But problem stayed.
Igor S.

Ian Blake

Ian Blake
  • Members
  • 483 posts

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.
Ian Blake
(Currently Unemployed)