[MSI] Add custom actionΒΆ

Add a custom action to the MSI package to launch EXE, call function from DLL, run VBScript, JScript, set a new property, folder path, or display an error message.

Important

Precondition: Open an MSI package in MSI Editor (see Open MSI/MST).

  1. Go to the Package Designer > Custom actions tab.

    image383

  2. Select Add > Custom action from the toolbox.

    image380

  3. Select a basic type (e.g. Run a VBScript), and click Next.

    Note

    This manual describes creation of the Run a VBScript custom action.

    image385

  4. Specify a location of the VBScript file or paste a script body directly into the custom action. Then, click Next.

    image386

  5. Enter an Action name, select Execution mode (Immediate, Deferred, Rollback or Commit), execution context, scheduling, return processing and other options. Then, click Next.

    Note

    All incompatible options are disabled.

    image387

  6. Select a sequence where and when to run the custom action. The sequence drop-down list allows you to select only compatible positions, taking into account your previously selected options. If needed, specify execution conditions either by entering them manually or choosing from the drop-down list. Click Finish to add your custom action.

    Note

    Incompatible sequences are disabled.

    image388




Note

PACE Suite covers the whole range of application packaging tasks - learn more.

Try PACE Suite for free - 21 days no obligations unlimited trial with all functions unlocked.