RSS

Why can’t I use WScript in my MSI Custom action?

19 Sep

This post gives insight why can’t we use WScript within the MSI….

http://bonemanblog.blogspot.com/2004/08/why-cant-i-use-wscript-in-my-msi.html

But how can we use values read from the custom UI screens or from the msiexec commandline?

Use Session.Property(“CustomActionData”)

Example:

Imagine you are reading values from 4 boxes, do the following

  1. Create a custom action, add the .vbs file
  2. Edit properties of that .vbs custom action

3. CustomActionData has your values with ; delimited
4. Below is the tiny .vbs script to realize these values, values are read from Session.Property

CuActionData = split(Session.Property(“CustomActionData”),”;”)

Msgbox CuActionData(0)

Msgbox CuActionData(1)

Msgbox CuActionData(2)

Msgbox CuActionData(3)

Advertisement
 

About tfsrocks

An individual with entrepreneurial drive and can do attitude. About 8 years experienced IT professional with consulting skills in seeding, anchoring and winning proposals. Strong track record in development and articulation of consulting propositions based on industry challenges. Promising Software Configuration and Release Management professional, Working with one of the premier Indian IT companies. Microsoft, Rational certified Software Configuration and Release Management practitioner.
1 Comment

Posted by on September 19, 2010 in Uncategorized

 

Tags: ,

One Response to Why can’t I use WScript in my MSI Custom action?

  1. frenky

    May 7, 2011 at 7:01 pm

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.