cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mt16in
Level 3

Install Sequence..

Hi,

In my code I've same custom being called twice once in UI Seq. and then in Exec Seq.

How can i check through code about running seq, it is UI or Exec??

Regards,
Mayank
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

You can determine some stages through MsiGetMode(), such as whether you are running in deferred execution, rollback, or commit. I'm not sure if it's possible to differentiate immediate execution of the execute and UI sequences though.
0 Kudos
Christopher_Pai
Level 16

As an aside, I've never actually had a reason to do this though. You can either schedule the CA to run only once ( so full UI it'll run during the UI and silent install it'll run in the exec ).

I'm curious what your CA is trying to do that would require you to actually run it twice and need to know the context that it's running in.
0 Kudos