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="1">1</Publish>
                <Publish Event="EndDialog" Value="Return">1</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="Return">1</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/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to