Login to participate
Endpoint Management & Virtualization ArticlesRSS

Adding Custom Action VBScript to MSI in WPS 7.x

CaseyE's picture

The following is a step-by-step demonstration how to add a Custom Action VBScript to an MSI in Wise Package Studio.

Step 1:

In Wise Package Studio, go to the MSI Script tab.

Step 2:

Choose either Execute Immediate or Execute Deferred depending on where you want to put your custom action.

Step 3:

Click on "Call VBScript From Embedded Code" from the left Actions Menu. Then copy your VBScript code into the box and give your Custom Action a name such as "MyVBS" Click on "OK"

Step 4:

Put an End Statement underneath your Custom Action line. Compile MSI and test your new Custom Action.

MaggieH's picture

Also keep in mind that

Also keep in mind that there is a limit of 255 characters for Embedded VBscripts.

In WPS select the Tables tab in Setup Editor.
In the right pane, right click anywhere and select"
- Column Info.

A extra row is added with the String information.

~Maggie

philbenson's picture

Hi MaggieH, this is not

strictly true. In the _Validation table, this is one of the criteria of the column, and WILL cause validation errors/warnings, however you CAN include VBScripts longer than 255 chars, and they wILL work, but if MS decide to change this in future versions on MSI (where the 255, then you may get problems.

Cheers

Phil