Try

session["PROPERTY"] = "some value";

Dave

-----Original Message-----
From: bundybob [mailto:bob....@xemaps.com] 
Sent: 02 November 2010 08:31
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Changing the value of a Property Id from a C#
CustomAction


The install script I've inherited calls a Custom Action (written in C#).
The
routine reads an INI file that contains site specific information.
What's
needed is ability to change the value of a Property Id in the main Wix
script.  The Custom Action has a line "string sourceDir =
session["SourceDir"];" which contains the path to the MSI file.  The INI
file is contained in the same path.  Is it a fair presumption that if it
is
able to read the installation directory information then it be able to
access other Property Id information?  I haven't worked with C# before
so
experimentations with syntax options has been limited.  I tried looking
for
options for 'session' but didn't recognise any option as being able to
set a
property id.  Does anyone have suggestions for the C# syntax to use for
changing the value of a Property Id?

-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Changing-t
he-value-of-a-Property-Id-from-a-C-Custom-Action-tp5696225p5696225.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Nokia and AT&T present the 2010 Calling All Innovators-North America
contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and
Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in
marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store

http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to