Join us for SoftSummit 2023. The 20th anniversary of the industry leading software monetization conference. April 18 and 20. Register Now

Showing results for 
Show  only  | Search instead for 
Did you mean: 
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!
Labels (1)
0 Kudos
1 Reply
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