Hi Gary and Scott,
First, I'm not a developer on the WiX team so take what I have to say as
just one opinion. :) Two months ago I was (I think) where you are now -
trying very hard to figure this all out with very little documentation to go
by.
For reference, I'm using WiX 2.0 latest build since 3.0 isn't far enough
along for my purposes. Also, my goal was to use WiX as part of an integrated
batch build process managed by Ant. Having said all that, here's how I
approached it - from what I gleaned through lots of searches on the mailing
list and pouring over the tutorial.
Under my main build folder I created a subfolder called Wix to contain all
my *.wxs build files. To customize the UI, I created a subdirectory under
there called wixui (build\Wix\wixui) and copied stuff over from
WiX2\src\ui\wixui (note that WiX2 is the folder under root [C:\WiX2] where I
unpacked the distros. All you really need are the files directly in wixui
directory, the wixui\Bitmaps folder and one of the four "styles" -
featuretree, installdir, minimal, or mondo (I chose Mondo). These "styles"
correspond to one of the four styles of install UIs you need. You can clone
one of the copied pages, such as MaintenanceAgreementDlg or SetupTypeDlg,
and modify it to suit your needs.
Some random tidbits to consider:
1. WixEdit <http://wixedit.sourceforge.net/> has a nice feature to
preview/layout a dialog in source/view mode - I guess it could be considered
an IDE of sorts. It's a little behind in keeping up with WiX but I found the
dialog editor to be helpful rather than typing in x,y coordinates.
2. Orca has a review dialog feature so you can open your newly
compiled MSI and see what the dialog will look like in "real mode". Aaron
Stebner<http://blogs.msdn.com/astebner/archive/2004/07/12/180792.aspx>has
a link to get just Orca install of installing the entire Platform SDK.
3. It's work using a directory/file differencing tool (I use Scooter's
Beyond Compare) to compare the four different "styles", e.g.
installdir vs. mondo. You'll quickly get the gist of what the differences
are to the basic files to get the desired look and feel.
4. Compile your customized library using "candle -out wixui\obj\
wixui\mondo\WixUI_mondo.wxs wixui\*.wxs"
5. Link it into a UI library using "lit -out
wixui\lib\WixUI_mondo.wixlib wixui\obj\*.wixobj" (note the library compiler
is 'lit', not 'light').
6. Reference your UI library on the 'light' command with a
"...wixui\lib\WixUI_mondo.wixlib" so it gets compiled into the MSI
IMO, the tutorial (esp. chaps 2 & 8) are a pretty good reference although
not necessarily written to be like a cookbook easy approach - it's more of
here's all the things you can do. Also, the tutorial started long ago as WiX
started out and hasn't necessarily caught up, per se. Originally, it had all
the detailed, roll-your-own-from-scratch steps for building a UI before the
pre-build "styles" (e.g. mondo) came out. It has only been slightly updated
to mention the pre-builts but the "raw" stuff is still left in for
reference.
So, if you copy the .\wixui as a starting point, you should only have to do
minimal tweaks to get the new dialogs in the sequence.
P.S. Having to place the conditions on the UI button controls to control
flow is, ummm, not the best ;)
On 11/27/06, Scott Palmer <[EMAIL PROTECTED]> wrote:
Gary,
I have the exact same need and so far the documentation I've seen for WiX
(what little there is) suggests that you need to download the source code
and recompile the WiX UI library (!) -- so perhaps your message fit better
on the dev list than John implies :).
It's in the tutorial in section 2.5. So far I've resisted such a brute
force hack in the hopes that there might be another way to inject a dialog
or two into the UI sequence, so if you find something that applies better to
wix-users rather than wix-devs feel free to pass it on.
It would be really great if the new dialog could be defined in my own
fragment without the need to modify the WiX UI library. Maybe if you could
override the "back/next" properties somehow then it would be possible.
Scott
On 11/27/06, John Watson <[EMAIL PROTECTED]> wrote:
> Review Lesson 2 of the WiX tutorial at:
> http://www.tramontana.co.hu/wix/.
> Also, I'm copying the WiX Users mail list as this question is more
> appropriately asked there - wix-devs is for questions around developing WiX,
> not using it.
>
> Best Regards,
> John
>
>
> On 11/27/06, Gary Pretty <[EMAIL PROTECTED] > wrote:
> >
> > Hi,
> >
> > Does anybody know how I can display extra dialogs depending on what
> > the user chooses to install during setup. For example, if they choose to
> > install a windows service I want to take the name and possibly a username /
> > password to be installed under???
> >
> > This is critical to my app so any help really appreciated.
> >
> > Cheers
> >
> > Gary
> >
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users