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

Determine current sequence with InstallScript

Dear all!

I'm desperately looking for a way to determine the current sequence with InstallScript.

Is there a property which i could query to find out whether the InstallScript was run during UI- or Execution Sequence?


Thanks in advance for your help!
Michael
Labels (1)
0 Kudos
1 Reply
RobertDickau
Flexera Alumni

I think MsiGetMode will help you distinguish immediate from deferred execution, for example, but offhand I can't think of distinguishing the UI sequence from Execute sequence at run time.

Perhaps add a set-property custom action to the beginning of the UI and Execute sequences, each setting a custom private property (in_ui_sequence and in_execute_sequence, for example), and calling MsiGetProperty or MsiEvaluateCondition from InstallScript to see which is defined?
0 Kudos