Read up on the Secure attribute to the Property element in the Wix schema.  
Only secure properties are visible in both the UI and Execute sequences.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 




-----Original Message-----
From: T. Kuro Kurosaka [mailto:k...@basistech.com] 
Sent: Thursday, January 26, 2012 1:37 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] global property set in server is not passed to the client

In my main .wxs file that is based on the WixUI_InstallDir dialog set, I set 
WIXUI_EXITDIALOGOPTIONALTEXT so that the final dialog after successful 
installation has an extra information.
This is done like this:
<Wix xmlns=....>
<Product>
     ...
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />

<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT"
      Value="Please manually copy the product license file to a proper 
location."/>

</Product>
</Wix>

This works fine. The text stored in this property is shown.

I wanted to show where exactly the user needs to copy our license file, and put 
these elements instead of the <Property/> element:

<CustomAction Id="SetExitDialogOptText"
      Property="WIXUI_EXITDIALOGOPTIONALTEXT"
      Value="Please manually copy the product license file to 
[INSTALLDIR]\licenses\."
     />
<InstallExecuteSequence>
<Custom Action="SetExitDialogOptText" After="InstallInitialize"><!-- 
"InstallFinalize" should also work? -->
         NOT Installed
</Custom>
</InstallExecuteSequence>

This didn't work.  The Exit Dialog doesn't show the text stored in this 
property.

The log file from the installer shows that the property is set properly in the 
server, [INSTALLDIR] being replaced by the actual directory.  But after the 
control is handed back to the client, this property doesn't exist.  I thought 
properties named with all uppercase letters are in global effect, and passed 
between the server and the client, back and forth. So I'm puzzled.  What can 
cause this behavior? Do I have to do something special to pass properties from 
the server to the client?

Kuro


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to