Oh, and BTW regarding what properties to use, take a look at these links:

http://msdn.microsoft.com/en-us/library/aa370905(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa370905(VS.85).aspx#installation_status_properties

For example, ReplacedInUseFiles is related to how MSI handles locked
files, so you may want to look at that to warn the user that they may
have to reboot.

2009/8/12 John Ludlow <[email protected]>:
> Ok, you need to look into control events.  Essentially, you want
> something like this (obviously with more info about your control - but
> the interesting bit here is the Condition elements)
>
>        <Control Id="MyControl" Hidden="yes">
>          <Condition Action="show">MYPROPERTY</Condition>
>          <Condition Action="hide">NOT MYPROPERTY</Condition>
>        </Control>
>
> The Hidden attribute sets the default, while the show/hide Condition
> elements control the state based on MYPROPERTY after that.  In this
> case the control will be hidden if MYPROPERTY is not set.
>
> Hope that helps
>
> 2009/8/12 Dirk Räder <[email protected]>:
>> Hi John,
>>
>> *Shown or hidden based on properties* is exactly the thing I want to do.
>> Which properties of MSI contain the current state of the installation?
>>
>> Dirk
>>
>> 2009/8/12 John Ludlow <[email protected]>
>>
>>> I believe there are DTF-based frameworks for that but they're not very
>>> complete yet.  However there are other ways to customise the UI to
>>> show different messages, depending on what the OP wants to do.
>>>
>>> For example, in an application I write the install for, we use
>>> FatalError if there is an installation failure, but we also call a
>>> config app during the installation.  If that fails then we don't want
>>> to roll back because it's something the user may be able to fix
>>> themselves by re-running the app.  To do that, I have a CA which swaps
>>> out the value of the ExitDialog record in the sequence table to be
>>> ConfigError (a dialog I put together which has an option for viewing
>>> the logs and for adding ).
>>>
>>> You can also rework your copy of ExitDialog to have custom controls
>>> with values which are based on properties (for example, a text label
>>> whose text value is based on a property you can set with a CA) or a
>>> shown or hidden based on properties.
>>>
>>> Like I say, it depends on what you want to do.
>>>
>>> John
>>>
>>> 2009/8/12 Peter Shirtcliffe <[email protected]>:
>>> >
>>> > Not all at. You can do all the UI customisation you like if you write an
>>> external UI handler but thats a good amount of work. Maybe DTF would make it
>>> easier - Ive never looked into it.
>>> >
>>> > -----Original Message-----
>>> > From: Dirk Räder [mailto:[email protected]]
>>> > Sent: 12 August 2009 13:26
>>> > To: General discussion for Windows Installer XML toolset.
>>> > Subject: Re: [WiX-users] How to display message depending on
>>> installationstatus?
>>> >
>>> > Hi and thanks.
>>> >
>>> > So the only way is to make use of ExitDialog, Cancel Dialog and
>>> FatalErrorDialog, right? Sad ...
>>> >
>>> > Dirk Räder
>>> >
>>> > 2009/8/12 Peter Shirtcliffe <[email protected]>
>>> >
>>> >> You define different dialogs for different status types and MSI will
>>> >> show the right one. This should tell you what you need to know
>>> >> http://msdn.microsoft.com/en-us/library/aa368284(VS.85).aspx<http://msdn.microsoft.com/en-us/library/aa368284%28VS.85%29.aspx>
>>> <http://ms
>>> >> dn.microsoft.com/en-us/library/aa368284%28VS.85%29.aspx>
>>> >>
>>> >>
>>> >> -----Original Message-----
>>> >> From: Dirk Räder [mailto:[email protected]]
>>> >> Sent: 12 August 2009 11:29
>>> >> To: General discussion for Windows Installer XML toolset.
>>> >> Subject: [WiX-users] How to display message depending on installation
>>> >> status?
>>> >>
>>> >> Hi all,
>>> >>
>>> >> I have an installer with an exit dialog. I want to have it display
>>> >> different messages according to the installation status (success /
>>> >> failure / user cancelled / ...).
>>> >>
>>> >> Are there any properties provided by MSI that I could check? If so,
>>> >> for what values do I have to check?
>>> >>
>>> >> Thanks in advance,
>>> >>
>>> >> Dirk Räder
>>> >>
>>> >> ----------------------------------------------------------------------
>>> >> -------- Let Crystal Reports handle the reporting - Free Crystal
>>> >> Reports 2008 30-Day trial. Simplify your report design, integration
>>> >> and deployment - and focus on what you do best, core application
>>> >> coding. Discover what's new with Crystal Reports now.
>>> >> http://p.sf.net/sfu/bobj-july_________________________________________
>>> >> ______
>>> >> WiX-users mailing list
>>> >> [email protected]
>>> >> 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.
>>> >>
>>> >>
>>> >>
>>> >> ----------------------------------------------------------------------
>>> >> -------- Let Crystal Reports handle the reporting - Free Crystal
>>> >> Reports 2008 30-Day trial. Simplify your report design, integration
>>> >> and deployment - and focus on what you do best, core application
>>> >> coding. Discover what's new with Crystal Reports now.
>>> >> http://p.sf.net/sfu/bobj-july
>>> >> _______________________________________________
>>> >> WiX-users mailing list
>>> >> [email protected]
>>> >> https://lists.sourceforge.net/lists/listinfo/wix-users
>>> >>
>>> >
>>> ------------------------------------------------------------------------------
>>> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day trial. Simplify your report design, integration and deployment - and
>>> focus on what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  
>>> http://p.sf.net/sfu/bobj-july_______________________________________________
>>> > WiX-users mailing list
>>> > [email protected]
>>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>>> >
>>> >
>>> ------------------------------------------------------------------------------
>>> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day
>>> > trial. Simplify your report design, integration and deployment - and
>>> focus on
>>> > what you do best, core application coding. Discover what's new with
>>> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> > _______________________________________________
>>> > WiX-users mailing list
>>> > [email protected]
>>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus
>>> on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> WiX-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> WiX-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to