It's important to keep in mind the DTF (for the most part) provides a managed 
interop around the windows installer APIs.  You'll still need to become 
intimately familiar with [ 
http://msdn.microsoft.com/en-us/library/aa368786(VS.85).aspx ] and how to 
handle all the messages and compute the progress bar stuff yourself.  

Granted the SDK sample for MsiSetExternalUIRecord [ 
http://msdn.microsoft.com/en-us/library/bb309215(VS.85).aspx ] provides a 
sample for the MsiOpenPackage ... MsiDoAction, I tend to favor the approach 
noted in the prior link (which uses MsiInstallProduct).


The DTF provides managed equivalents for MsiSetExternalUIRecord and 
MsiSetExternalUI through Installer.SetExternalUI overloads (first parameter is 
either ExternalUIHandler or ExternalUIRecordHandler).

Additionally, the DTF provides the following methods:

Native MSI              == DTF Equivalent
-------------------------------------------------------------------
MsiInstallProduct       =>  Installer.InstallProduct
MsiConfigureProduct     =>  Installer.ConfigureProduct
MsiReinstallProduct     =>  Installer.ReinstallProduct

To manipulate feature states, I believe then, you'd interact with the feature 
properties [Ref: http://msdn.microsoft.com/en-us/library/aa367536(VS.85).aspx ] 
and specify them via the command  line argument within the above methods.

[I've got some scars with External UI Handlers :) ]


-----Original Message-----
From: Wilson, Phil [mailto:phil.wil...@wonderware.com] 
Sent: Monday, November 02, 2009 12:48 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] DTF and external UI

I know DTF has some support for external UI, but once you have your own forms, 
and you've called (Msi)SetExternalUI(Record), why not just call 
MsiInstallProduct with the command line properties you want to set? 

Phil Wilson 


-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com]
Sent: Saturday, October 31, 2009 8:33 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] DTF and external UI

I'm not a DTF expert by any means but I don't think you want OpenPackage then 
DoAction. I believe that would require you call one action after another, which 
isn't normal. Instead there should be some option to call
::MsiInstallProduct() or ::MsiConfigureProduct(). That's the typical way to 
install.

On Thu, Oct 29, 2009 at 8:50 AM, Nick Ball <nick.b...@grantadesign.com>wrote:

> Hi All,
>
>
>
> I've been looking at the Deployment Tools trying to figure out how to 
> write an external UI handler.
>
>
>
> Here is what I'm assuming:
>
>
>
> 1.       I can write an external (Winform/WPF) UI to gather some user
> information, such as install location.
>
> 2.       I can call Installer.SetExternalUI to handle progress and error
> messages in my own UI.
>
> 3.       I can call Installer.OpenPackage to get a session object
>
> 4.       I can set the properties on the session, as entered in step 1.
>
> 5.       I can call Session.DoAction to start the install.
>
>
>
> Is this all I need?
>
>
>
> Also, I've been looking at the featuresinfo class. If I want to mark 
> which features to install/not install, how do I do that? Do I need to 
> set the requeststate of a feature to NotUsed or Local?
>
>
>
> -Nick
>
>
>
>
>
>
>
>
> ----------------------------------------------------------------------
> -------- Come build with us! The BlackBerry(R) Developer Conference in 
> SF, CA is the only developer event you need to attend this year. 
> Jumpstart your developing skills, take BlackBerry mobile applications 
> to market and stay ahead of the curve. Join us from November 9 - 12, 
> 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the 
only developer event you need to attend this year. Jumpstart your developing 
skills, take BlackBerry mobile applications to market and stay ahead of the 
curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the 
only developer event you need to attend this year. Jumpstart your developing 
skills, take BlackBerry mobile applications to market and stay ahead of the 
curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to