Thank you, Bob and Blair.
I moved the <Custom> element to InstallUISequence like:
<InstallUISequence>
<Custom Action="SetExitDialogOptText" Before="ExecuteAction">
NOT Installed
</Custom>
</InstallUISequence>
and the problem was resolved!
On Mon, Jan 30, 2012 at 12:09 AM, Blair <[email protected]
<mailto:[email protected]>> wrote:
As has been mentioned on this list before, properties go just one way
between UI and Execute sequences. It is by apparent design that you
can't
change a property (any property) in the execute sequence and pick up
that
change in the UI sequence.
-----Original Message-----
From: John Cooper [mailto:[email protected]
<mailto:[email protected]>]
Sent: Thursday, January 26, 2012 12:14 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] global property set in server is not passed
to the
client
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 <tel:913-341-3434%20x791011>
[email protected] <mailto:[email protected]>
www.jackhenry.com <http://www.jackhenry.com>
-----Original Message-----
From: T. Kuro Kurosaka [mailto:[email protected]
<mailto:[email protected]>]
Sent: Thursday, January 26, 2012 1:37 PM
To: [email protected]
<mailto:[email protected]>
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
[email protected] <mailto:[email protected]>
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
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
WiX-users mailing list
[email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users