Discussion:
[WiX-users] skip almost dialogs on upgrade
lewisv
15 years ago
Permalink
When i am doing a upgrade of my application. ( i am un-installing an
re-installing )
I would like to skip all the user interaction dialogs.

Right now i have this in my setup
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg">PREVFOUND</Publish>

This of course will skip the license, setuptype etc... dialogs.
but the user still has to press next on the welcomedialog, and press next on
the verifyreadydlg

I would like to minimize the amount of clicks the user has to do.
My best is once the msi is run, that it goes directly to the progess dialog
and starts the install.

I do want to show the progress dialog, so the user will see the install
working.
And during a first time install i still want to go though all the standard
dialogs.

How do i do this?
--
View this message in context: http://n2.nabble.com/skip-almost-dialogs-on-upgrade-tp4866051p4866051.html
Sent from the wix-users mailing list archive at Nabble.com.
Pally Sandher
15 years ago
Permalink
Easy way to do it would be to condition the WelcomeDlg in the
InstallUISequence with "NOT Installed AND NOT PREVFOUND".
Then you could make a new dialog (make the buttons a copy of the
VerifyReadyDlg ones so you get UAC shields where appropriate) &
condition it with "Installed AND PREVFOUND" so it will show instead.
Make sure you set it to Before="ProgressDlg". This would make the user
only see your new dialog & when they click the Install button & it goes
straight to the Progress Dialog & starts upgrading.

Neil Sleightholm wrote a pretty good article on Customizing the stock
WiX UI's which should help point you in the right direction if you need
help with this ->
http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: lewisv [mailto:***@nitorco.com]
Sent: 07 April 2010 17:51
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] skip almost dialogs on upgrade


When i am doing a upgrade of my application. ( i am un-installing an
re-installing ) I would like to skip all the user interaction dialogs.

Right now i have this in my setup
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg">PREVFOUND</Publish>

This of course will skip the license, setuptype etc... dialogs.
but the user still has to press next on the welcomedialog, and press
next on the verifyreadydlg

I would like to minimize the amount of clicks the user has to do.
My best is once the msi is run, that it goes directly to the progess
dialog and starts the install.

I do want to show the progress dialog, so the user will see the install
working.
And during a first time install i still want to go though all the
standard dialogs.

How do i do this?

--
View this message in context:
http://n2.nabble.com/skip-almost-dialogs-on-upgrade-tp4866051p4866051.ht
ml
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lewisv
15 years ago
Permalink
Ok, if i condition the welcome dialog. Would i need to also condition all the
following dialogs. ie setuptype, license, custom etc... It seems to me, if i
simply disable the welcome dialog then the next dialog in order would show
up.

Putting a new verifyreaddlg before progress makes sense. But this still
requires some human interaction. ie They must press the install button on
the new verifyreadydlg. Is it possible to skip all the dialogs and go
directly to install?

Another question Is it possible to put the new verifyreadydlg before the
welcome dialog, and then tell the next button to start the install? Or is
that done automatically by putting the dialog before progressdlg?

I have already seen that article. Good one, i used it to take my license
dialog out. But i did not see a way to completly skip the ui except for the
progress dlg
--
View this message in context: http://n2.nabble.com/skip-almost-dialogs-on-upgrade-tp4866051p4870613.html
Sent from the wix-users mailing list archive at Nabble.com.
Pally Sandher
15 years ago
Permalink
Look at the InstallUISequence of your built MSI (sort by sequence).
You'll see only MaintenanceWelcomeDlg, ResumeDlg & WelcomeDlg sequenced
before ProgressDlg so conditioning the WelcomeDlg appropriately will
also skip all the dialogs it calls if it is skipped since the user never
clicks on the next button to call a NewDialog event.

You can go directly to the ProgressDlg by just conditioning the
WelcomeDlg as I suggested & not bothering creating a new dialog but
personally I wouldn't do that as it's not very user friendly (user
double clicks MSI, it starts upgrading without warning, how do you know
that's what the user actually wanted to do?) but it's your product &
your call.

If you condition the dialogs correctly in the InstallUISequence, the
user will see the correct one. The VerifyReadyDlg doesn't show in the
InstallUISequence, it's spawned by other dialogs.

Look at the WiXUI .wxs files in the sources (they're under
src\ext\UIExtension\wixlib) & see how they do things, you're simply
trying to modify what they do. All the code is there you just need to
look at it & implement it in your own way.

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer


-----Original Message-----
From: lewisv [mailto:***@nitorco.com]
Sent: 08 April 2010 13:05
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] skip almost dialogs on upgrade


Ok, if i condition the welcome dialog. Would i need to also condition
all the following dialogs. ie setuptype, license, custom etc... It seems
to me, if i simply disable the welcome dialog then the next dialog in
order would show up.

Putting a new verifyreaddlg before progress makes sense. But this still
requires some human interaction. ie They must press the install button
on the new verifyreadydlg. Is it possible to skip all the dialogs and go
directly to install?

Another question Is it possible to put the new verifyreadydlg before the
welcome dialog, and then tell the next button to start the install? Or
is that done automatically by putting the dialog before progressdlg?

I have already seen that article. Good one, i used it to take my license
dialog out. But i did not see a way to completly skip the ui except for
the progress dlg

--
View this message in context:
http://n2.nabble.com/skip-almost-dialogs-on-upgrade-tp4866051p4870613.ht
ml
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Continue reading on narkive:
Loading...