My last post showed how to use VBScript functions as CustomActions. More than often you need to access some of the properties you have defined in your WIX files, for example an installation directory, a connection string etc.To access these properties just use the Session object and it’s a Property property.Here’s an example with two properties used:

set adam = GetObject(Session.Property("ADSERVER") & "/" & Session.Property("ADSPATH")) 

The WIX file should contain two properties:

<Property Id="ADSERVER" Admin="yes" >LDAP://server</Property><Property Id="ADSPATH" Admin="yes" ></Property> 

The Property property is read/write so you can manipulate the properties within your code.