I have included the WIX code that I am using for the dialog below (with a
considerable number of sections removed). How should I modify
<InstallUISequence> ? There is a "SHOW" attribute on this element? As you
can see below I have not attributes or sub elements of this element defined,
just <InstallUISequence/>.
Thank you.
Kevin
<UIRef Id="WixUI_Minimal"/>
<UIRef Id="WixUI_ErrorProgressText"/>
<UI>
<DialogRef Id="WelcomeDlg" />
<Property Id="WixUI_WelcomeDlg_Next" Value="BsiSetupTypeDlg" />
<Property Id="BsiUI_SetupTypeDlg_NextTypical"
Value="PropertiesDlg" />
<Property Id="BsiUI_SetupTypeDlg_NextCustom"
Value="PropertiesDlg" />
<Property Id="BsiUI_SetupTypeDlg_NextComplete"
Value="PropertiesDlg" />
<Property Id="BsiUI_SetupTypeDlg_Back" Value="WelcomeDlg" />
<Property Id="FULLYQUALIFIEDCOMPUTERNAME"
Hidden="yes">dev03</Property>
<Property Id="SERVICEUSER"
Hidden="yes">[EMAIL PROTECTED]</Property>
<Property Id="SERVICEPASSWORD"
Hidden="yes">testing</Property>
<Property Id="SQLSERVER"
Hidden="yes">dev03</Property>
...
<Dialog Id="PropertiesDlg" Width="290" Height="390"
Title="[ProductName] [Setup] $(var.Configuration)" NoMinimize="yes">
<Control Id="Title" Type="Text" X="15" Y="6"
Width="200" Height="15" Transparent="yes" NoPrefix="yes"
Text="[DlgTitleFont]Ready to Install"/>
<Control Id="ComputerNameLabel" Type="Text"
X="15" Y="26" Width="80" Height="15" Transparent="yes" NoPrefix="yes"
Text="[DlgTitleFont]Computer Name"/>
<Control Id="ComputerNameEdit" Type="Edit"
X="114" Y="22" Width="150" Height="18"
Property="FULLYQUALIFIEDCOMPUTERNAME"/>
<Control Id="UserLabel" Type="Text" X="15"
Y="46" Width="80" Height="15" Transparent="yes" NoPrefix="yes"
Text="[DlgTitleFont]User"/>
<Control Id="UserEdit" Type="Edit" X="114"
Y="42" Width="150" Height="18" Property="SERVICEUSER"/>
<Control Id="PasswordLabel" Type="Text"
X="15" Y="66" Width="80" Height="15" Transparent="yes" NoPrefix="yes"
Text="[DlgTitleFont]Password"/>
<Control Id="PasswordEdit" Type="Edit"
X="114" Y="62" Width="150" Height="18" Property="SERVICEPASSWORD"
Password="yes"/>
. . .
</Dialog>
<Dialog Id="BsiSetupTypeDlg" Width="370" Height="270"
Title="$(loc.SetupTypeDlg_Title)">
<Control Id="TypicalButton" Type="PushButton" X="40" Y="65"
Width="80" Height="17" ToolTip="$(loc.SetupTypeDlgTypicalButtonTooltip)"
Default="yes" Text="$(loc.SetupTypeDlgTypicalButton)">
<Publish Property="BsiUI_InstallMode"
Value="InstallTypical">1</Publish>
<Publish Event="SetInstallLevel" Value="3">1</Publish>
<Publish Event="NewDialog"
Value="[BsiUI_SetupTypeDlg_NextTypical]">1</Publish>
</Control>
<Control Id="CompleteButton" Type="PushButton" X="40"
Y="171" Width="80" Height="17"
ToolTip="$(loc.SetupTypeDlgCompleteButtonTooltip)"
Text="$(loc.SetupTypeDlgCompleteButton)">
<Publish Property="WixUI_InstallMode"
Value="InstallComplete">1</Publish>
<Publish Event="SetInstallLevel" Value="1000">1</Publish>
<Publish Event="NewDialog"
Value="[BsiUI_SetupTypeDlg_NextComplete]">1</Publish>
</Control>
<Control Id="Back" Type="PushButton" X="180" Y="243"
Width="56" Height="17" Text="$(loc.WixUIBack)">
<Publish Event="NewDialog"
Value="[BsiUI_SetupTypeDlg_Back]">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243"
Width="56" Height="17" Disabled="yes" Text="$(loc.WixUINext)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Cancel="yes" Text="$(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0"
Width="370" Height="44" TabSkip="no" Text="$(loc.SetupTypeDlgBannerBitmap)"
/>
<Control Id="BannerLine" Type="Line" X="0" Y="44"
Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="0" Y="234"
Width="370" Height="0" />
<Control Id="Title" Type="Text" X="15" Y="6" Width="200"
Height="15" Transparent="yes" NoPrefix="yes" Text="$(loc.SetupTypeDlgTitle)"
/>
<Control Id="Description" Type="Text" X="25" Y="23"
Width="280" Height="15" Transparent="yes" NoPrefix="yes"
Text="$(loc.SetupTypeDlgDescription)" />
<Control Id="TypicalText" Type="Text" X="60" Y="85"
Width="280" Height="20" Text="$(loc.SetupTypeDlgTypicalText)" />
<Control Id="CompleteText" Type="Text" X="60" Y="191"
Width="280" Height="20" Text="$(loc.SetupTypeDlgCompleteText)" />
</Dialog>
<AdminUISequence/>
<InstallUISequence/>
</UI>
-----Original Message-----
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 10:13 AM
To: Kevin Burton
Cc: [email protected]
Subject: Re: [WiX-users] Upgrade (options?)
Kevin Burton wrote:
> Currently I have constructed a custom dialog to prompt the user for the
settings required for the installation. If this is an upgrade then I will
have saved those settings in the registry and I obviously don't want to
prompt the user/installer for those settings again. How do I bypass this
dialog on an upgrade?
>
How are you showing this dialog? If you're using InstallUISequence, then
you can add a condition to the Show element using any of the properties
(i.e., "NOT PROPERTYNAME" to show the dialog if the value wasn't found).
If you're using a control event, put the condition in the Publish element.
--
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/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users