How to execute spesific method from MSI dialog

191 views Asked by At

How to execute spesific method from MSI dialog? I already try create custom dialog using ORCA and insert data in ControlEvent section like this :

Dialog       | Control    | Event    | Argument        | Condition | Order
CustomTextD  | NextButton | DoAction | CheckConnection | 0         | 0 

These result are failed. I declare CheckConnection() method in Installer Class. What i try to accomplish here is checking connection to database on "button next" clicked.

Thanks in advance.

1

There are 1 answers

1
Bogdan Mitrache On

Using Orca is not the easiest way to create an MSI package. If you want a free tool try Wix. The following SO topic explains how you to call a custom action from a push button.

Basically, you need to define your custom action, without sequence. Then add a control event for the desired button, with a DoAction call that will execute your custom action.