Re: [WiX-users] Evaluate property

2010-06-11 Thread cge
Tried using Session.Property(TOMCATHOME), but it just gives me a null. (Maybe its a Wix 3 thing? I'm using Wix 2 - management decision). The only Session.Property that I seem to have access to is Session.Property(CustomActionData). I tried putting [TOMCATHOME] in there but it just sends across

Re: [WiX-users] Evaluate property

2010-06-11 Thread MikeR
If you only have access to CustomActionData then I'm assuming your custom action is scheduled for deferred mode. You don't get general property access during a deferred custom action. You need to write an accompanying immediate-mode custom action that stores all the data required into a

Re: [WiX-users] Evaluate property

2010-06-11 Thread cge
MikeR wrote: You need to write an accompanying immediate-mode custom action that stores all the data required into a property named to match your deferred-mode custom action name. Then you can access that data via the CustomActionData property in your deferred mode custom action. Yes -

Re: [WiX-users] Evaluate property

2010-06-11 Thread MikeR
Can you post the code for your immediate-mode custom action that saves this value for CustomActionData? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Evaluate-property-tp5165399p5167894.html Sent from the wix-users mailing list archive at

Re: [WiX-users] Evaluate property

2010-06-11 Thread MikeR
That seems like it should work. I'm assuming the rest of the values are coming through to your deferred custom action correctly? Have you checked a Windows Installer log to see that the correct value of TOMCATHOME is getting set to the Deploy property when SetDeployParams runs? -- View this

Re: [WiX-users] Evaluate property

2010-06-11 Thread cge
Property Id=T1 RegistrySearch Id=TomcatHome Type=raw Root=HKLM Key=SOFTWARE\\Tomcat Name=TomcatHome/ /Property Property Id=T2 Value=[TOMCATHOME]conf\\$(var.SomeFilename) / CustomAction Id=SetDeployParams Return=check Property=Deploy Value=Deploy|[T1]|[T2] / CustomAction Id=Deploy

Re: [WiX-users] Evaluate property

2010-06-11 Thread Blair
Here is your error: Property Id=T2 Value=[TOMCATHOME]conf\\$(var.SomeFilename) / The Property element enters text directly into the Property table. The Value column of that table is NOT of type Formatted, it is of type Text, which means that assigning values to properties via that table become

[WiX-users] Evaluate property

2010-06-10 Thread cge
I have a registry entry that contains a directory: Property Id=TOMCATHOME RegistrySearch Id=TomcatHome Type=raw Root=HKLM Key=SOFTWARE\...\Tomcat Name=TomcatHome/ /Property Then I have a JScript custom action that has to parse an XML file inside this directory: var filepath

Re: [WiX-users] Evaluate property

2010-06-10 Thread Blair
I believe it would be something like: Session.Property(TOMCATHOME) -Original Message- From: cge [mailto:ell...@avaya.com] Sent: Thursday, June 10, 2010 2:24 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Evaluate property I have a registry entry that contains a directory