Re: [WiX-users] Adding an ok/cancel popup dialog?

2008-03-05 Thread Geoff Finger
Okay, thanks. I added an extra page after the Welcome dialog with the
confirm/cancel message. Just one more page for the users to click
through I guess :)

On Sat, Mar 1, 2008 at 2:47 PM, Bob Arnson [EMAIL PROTECTED] wrote:
 Geoff Finger wrote:
   I hooked up the dialog to the Next button for the welcome dialog and
   everything seem to work fine, except that if you hit OK it goes back
   to the welcome dialog and doesn't go on to the next section of the
   installer until you hit Next again. Is there any way to make the
   Welcome page wait on the results of the spawned dialog before
   evaluating the next Publish action in the list? Or do I just need to
   give up and make the warning a standalone dialog page rather than a
   popup?
  

  When a spawned dialog is running, so is the dialog that spawns it. MSI
  doesn't have a way to close both dialogs from the spawned one. That's
  why we handled something similar before the welcome dialog, in
  src\Setup\VStudio.wxs.

  --
  sig://boB
  http://joyofsetup.com/




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Adding an ok/cancel popup dialog?

2008-02-26 Thread Geoff Finger
We just recently added the Upgrade Id value to the installer and the
testers have complained that it deletes the old version of the program
without asking first, so I'm trying to add an ok/cancel popup dialog
at the first step of the installer if a previous version is detected
to warn them about that.

I hooked up the dialog to the Next button for the welcome dialog and
everything seem to work fine, except that if you hit OK it goes back
to the welcome dialog and doesn't go on to the next section of the
installer until you hit Next again. Is there any way to make the
Welcome page wait on the results of the spawned dialog before
evaluating the next Publish action in the list? Or do I just need to
give up and make the warning a standalone dialog page rather than a
popup?

What I've got currently is:

Control Id=Next Type=PushButton X=230 Y=230 Width=56
Height=17 Default=yes Text=[ButtonText_Next]
Publish Event=SpawnDialog
Value=OldVerDetected![CDATA[OLDVERPRESENT AND OVERWRITEOKAY =
0]]/Publish
Publish Event=NewDialog Value=FindLicenseDlg![CDATA[NOT
OLDVERPRESENT OR OVERWRITEOKAY  0]]/Publish
/Control

Dialog Id=OldVerDetected Width=270 Height=95
Title=[ProductName] [Setup] NoMinimize=yes
...
Control Id=OK Type=PushButton X=100 Y=60 Width=60
Height=17 Default=yes Cancel=yes Text=[ButtonText_OK]
Publish Property=OVERWRITEOKAY Value=11/Publish
Publish Event=EndDialog Value=Return1/Publish
/Control
Control Id=Cancel Type=PushButton X=200 Y=60 Width=60
Height=17 Default=yes Cancel=yes Text=[ButtonText_Cancel]
Publish Event=EndDialog Value=Return1/Publish
/Control
/Dialog

Thanks!

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users