cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
forcet
Level 4

how to call shell command in script

How can I run the command like msiexec.exe /I "C:\path to msi\someMSIFile.msi"

in script.

another question is how to call custom action in script. is there a built-in method?

Thanks.
Labels (1)
0 Kudos
(4) Replies
ChandanOmkar
Level 8

you can run using the enbuilt function LaunchAppAndWait().
0 Kudos
forcet
Level 4

I used the LaunchApplication() method, it seems LaunchAppAndWait is more neat, thank u.
0 Kudos
Reureu
Level 10

As for calling custom action from a script, you can use MsiDoAction(...);
Don't forget to read the help library about the actions you can/cannot call.
0 Kudos
forcet
Level 4

Thanks to @Reureu.:)
0 Kudos