cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kriz_82
Level 5

CA on first install or in repair mode

Hello,

How can I create a condition for my CA that would be launched during first time installation or in the repair mode?

First installation might be checked by "Not Installed".
Repair mode, however, is in the private property _IsMaintenance=Reinstall so I cannot access it directly in the deffered CAs. Is there other way to create such condition that could be set in "Custom Action and Sequences" window instead of passing values into CA via custom action data and processing it there?

If not, how can I check if the installation is a first time installation in the installscipt (property Installed is empty when I check it in UI seqence 😞 ) so I cannot create the condition inside the CA neither.

Is the "Installed" property somehow special?

Regards!
Labels (1)
0 Kudos
(1) Reply
kriz_82
Level 5

Hi

I ended up with something setting up _IsMaintenance and MAINTENANCE properties via MsiSetProperty in UI immediate action then read them in differed CA checks

begin
if ((szIsMaintenance = "0") || (szMaintenanceMode="Reinstall")) then
...
endif;
end;

Is there a way to use CA condition text box for this purpose instead of implementing detection in the CA?

Regards!
0 Kudos