In the UI sequence after the Execute action condition a custom action to
change the WIXUI_EXITDIALOGOPTIONALTEXT value if you detect a reboot is
needed.

-----Original Message-----
From: Tony [mailto:yellowjacketl...@gmail.com] 
Sent: Friday, January 22, 2010 12:48 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Exit dialog text

How would using MsiGetMode help us?

We can already determine whether or not a reboot is required by
inspecting the REBOOT property, but we'd like to change the default UI
experience in order to accommodate our need for an optional
(suggested) logoff after a "normal" (no reboot required) installation.

Here's what is currently happening with our installation...

1) We enable the checkbox on the exit dialog using the appropriate WIX
properties.  And set its text to read "Logoff Now".
2) The user performs an installation, if during the UI sequence we
detect that a reboot is required, we have an opportunity to change the
text on the checkbox to read "Reboot Now".
3) The custom action we have assigned to the exit dialog's Finish
button will perform the logoff, reboot, or no action depending on the
scenario.

However, if during the execute sequence, a pending reboot is set
(typically due to "Files in use"), we no longer have an opportunity to
change the text on the exit dialog's checkbox.  As such, it will read
"Logoff Now".  Which doesn't make much sense if a reboot is actually
required.  We can hide (prevent) the small "Reboot requested" dialog
in our custom action by deleting the REBOOT property.  And, then, have
our custom action perform a reboot, but that would just confuse the
user as the checkbox text reads "logoff now", not "reboot now".


On Fri, Jan 22, 2010 at 12:43 PM, Blair <os...@live.com> wrote:
> Would a custom action that calls the MsiGetMode() api be acceptable?
>
> -----Original Message-----
> From: Tony [mailto:yellowjacketl...@gmail.com]
> Sent: Friday, January 22, 2010 7:58 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Exit dialog text
>
> Our default installation offers an option (checkbox) on the exit
> dialog to log off the user (we need to reset some security thing, I'm
> told).  However, if during the installation a scenario occurs in which
> a reboot is required (files in use, etc.), we don't need to offer that
> option, as rebooting has the same effect.
>
> Ideally what we'd like to do is change the checkbox text on the exit
> dialog to read "reboot now" (or something like that) if a reboot is
> required, rather than our default text of "logoff now".  If the user
> checks the box, we'd suppress the built-in "reboot required" dialog
> and execute our own reboot action.  We have discovered that we can
> delete the REBOOT property in order to accomplish the later behavior,
> but we are unsure if this breaks something else with in the installer.
>
> Another option would be to leave the exit dialog alone (don't show the
> checkbox), but allow us to somehow force a similar dialog to the small
> "reboot required" that contains text suggesting a logoff is required.
>
> Any suggestions on how we might accomplish this goal?
>
> On Thu, Jan 21, 2010 at 4:47 PM, Blair <os...@live.com> wrote:
>> The execute sequence is run in a different process than the ui sequence
> and
>> the properties don't "flow" back.
>>
>> -----Original Message-----
>> From: Tony [mailto:yellowjacketl...@gmail.com]
>> Sent: Thursday, January 21, 2010 10:50 AM
>> To: WiX Users
>> Subject: [WiX-users] Exit dialog text
>>
>> By setting the property WIXUI_EXITDIALOGOPTIONALTEXT it is possible to
>> change the displayed text on the ExitDialog.
>> If the property is changed during the execute sequence, then the text
>> is not updated.  The reason this occurs is because the dialog is
>> created at the end of the UI sequence.
>>
>> Is there a way to update the ExitDialog's text from a custom action
>> running in the execute sequence?
>> --
>> Tony
>>
>>
>
----------------------------------------------------------------------------
>> --
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
>> Conference
>> attendees to learn about information security's most important issues
>> through
>> interactions with peers, luminaries and emerging and established
> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>>
>
----------------------------------------------------------------------------
> --
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
> Conference
>> attendees to learn about information security's most important issues
> through
>> interactions with peers, luminaries and emerging and established
> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> --
> Tony
>
>
----------------------------------------------------------------------------
> --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established
companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
----------------------------------------------------------------------------
--
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
Conference
> attendees to learn about information security's most important issues
through
> interactions with peers, luminaries and emerging and established
companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Tony

----------------------------------------------------------------------------
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference
attendees to learn about information security's most important issues
through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to