Posted at 2006-04-20 01:49
by Wictor Wilén
in
WiX with
3 comments.
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.
#
Writing Session.Property from Script by WIX Noob
|
Latest Tweet...
""
Categories
.NET,
AJAX,
Business,
Business Intelligence,
C#,
CodePlex,
Downloads,
Hardware,
Internet and the Web,
Internet Explorer,
Live Mesh,
LiveID,
Microsoft,
Microsoft Expression,
Microsoft Office,
msfeedicon,
Network,
Office Open XML,
Oslo,
PDC 08,
Performance Point,
Personal,
Presentations,
Scripting,
Security,
SharePoint,
SharePoint 2010,
SharePoint 2010 Web Parts in Action,
Silverlight,
Software,
SQL Server,
Upset posts,
Virtual PC,
Virtual Server,
Visual Studio,
VMWare,
Web Parts,
Website,
Windows 7,
Windows Azure,
Windows Live,
Windows Live Writer,
Windows Media Center,
Windows Mobile,
Windows Server 2003,
Windows Server 2008,
Windows Server 2008 R2,
Windows Vista,
Windows XP,
WinFX,
WiX,
XML,
XPS,
msfeedicon The one and only feed enhancement utility for Internet Explorer
7.
Read more...
Copyright © Wictor Wilén, 2006-2010.
These postings are provided "AS IS" with no warranties, and confers no rights. The
content of this site are my own personal opinions and do not represent my employer's
view in anyway. In addition, my thoughts and opinions open to change. Therefore
you should not consider past posts to necessarily reflect my current thoughts and
opinions.
Microsoft is a registered trademark of Microsoft Corporation in the United States
and/or other countries.