[wix-users] Wix Installer - Add custom dialog to WixUI_Minimal

Pally Sandher pally.sandher at iesve.com
Mon Feb 29 02:59:18 PST 2016


See http://neilsleightholm.blogspot.co.uk/2008/08/customised-uis-for-wix.html

Palbinder Sandher 
Software Platform Engineer 
T:   +44 (0)141 945 8500
F:   +44 (0)141 945 8501
http://www.iesve.com 

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: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of shobhit vaish
Sent: 29 February 2016 07:44
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Wix Installer - Add custom dialog to WixUI_Minimal

Hi,

Thank you for your reply. This will require change in WixUiMinimal. I thought if there is anyway to do it without change in code.

Thanks,

Shobhit vaish

On Mon, Feb 29, 2016 at 11:25 AM, Farrukh Waheed <farrukh1 at gmail.com> wrote:

> I think, for Wix 3.9, here is your required code:
>
> https://wix.codeplex.com/SourceControl/latest#src/ext/UIExtension/wixl
> ib/WixUI_Minimal.wxs
>
> On 29 February 2016 at 10:51, Farrukh Waheed <farrukh1 at gmail.com> wrote:
>
> > Hi Shobhit,
> > You need to copy code for WixUI_Minimal from Wix sources, insert 
> > your code into it and modify Button's behavior.
> > Then reference this modified library into your Wix code instead of 
> > WixUI_Minimal.
> >
> > Regards
> >
> >
> > On 27 February 2016 at 10:38, shobhit vaish 
> > <shobhitvaish1250 at gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> Please note - If possible, I don't want to change anything in 
> >> WixUI_Minimal.
> >>
> >> I am trying to add a custom dialog(UserTypeDlg) after 
> >> WelcomeEulaDlg in WixUI_Minimal i.e whenever a user clicks on 
> >> Install button after
> accepting
> >> license. This part works fine
> >>
> >> On custom dialog I have provided back button which works just fine 
> >> and takes me to WelcomeEulaDlg. However, when I again click on 
> >> Install
> button
> >> it directly start installation with out showing my custom dialog.
> >>
> >> Could someone help me to get around this?
> >>
> >>
> >> Please note - I don't want to change anything in WixUI_Minimal(if 
> >> possible).
> >>
> >> I am trying to add a custom dialog(UserTypeDlg) after 
> >> WelcomeEulaDlg in WixUI_Minimal i.e whenever a user clicks on 
> >> Install button after
> accepting
> >> license. This part works fine
> >>
> >> On custom dialog I have provided back button which works just fine 
> >> and takes me to WelcomeEulaDlg. However, when I again click on 
> >> Install
> button
> >> it directly start installation with out showing my custom dialog.
> >>
> >> Could someone help me to get around this?
> >>
> >> My code is - Custom dialog -->
> >>
> >>       <Dialog Id="UserTypeDlg" Width="370" Height="270"
> >> Title="[ProductName] Setup" NoMinimize="yes">
> >>         <!--<Control Id="InstallButton" Type="PushButton"
> >> Text="Install" Height="17" Width="56" X="245" Y="243">
> >>           <Publish Event="EndDialog" Value="Return" />
> >>         </Control>-->
> >>         <Control Id="UserTypeRadioGroup" Type="RadioButtonGroup"
> >> Property="UserTypeRadioButtonGroup" Height="100" Width="100" X="50"
> >> Y="50">
> >>           <RadioButtonGroup Property="UserTypeRadioButtonGroup">
> >>             <RadioButton Value="1" Text="Admin" Height="17" Width="50"
> >> X="50" Y="0" />
> >>             <RadioButton Value="2" Text="Domain User" Height="17"
> >> Width="100" X="50" Y="20" />
> >>           </RadioButtonGroup>
> >>         </Control>
> >>         <!--<Control Id="Next" Type="PushButton" X="245" Y="243"
> >> Width="100" Height="17" Text="Next">
> >>           <Publish Event="EndDialog" Value="Return" />
> >>         </Control>-->
> >>         <Control Id="Next" Type="PushButton" X="236" Y="243"
> >> Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
> >>           <Publish Property="WixUI_InstallMode"
> >> Value="Update">Installed AND PATCH</Publish>
> >>         </Control>
> >>         <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="Bitmap" Type="Bitmap" X="0" Y="0" Width="370"
> >> Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" />-->
> >>         <Control Id="Back" Type="PushButton" X="180" Y="243"
> >> Width="56" Height="17" Text="!(loc.WixUIBack)">
> >>           <Publish Event="NewDialog" Value="WelcomeEulaDlg">1</Publish>
> >>         </Control>
> >>
> >>       </Dialog>
> >>
> >>       <!--<Dialog Id="AdminDlg" Width="370" Height="270"
> >> Title="[ProductName] Setup" NoMinimize="no">
> >>       </Dialog>-->
> >>     </UI>
> >>   </Fragment></Wix>
> >>
> >> Product installation file:-
> >>
> >>     <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
> >>   <Fragment>
> >>     <UI Id="UserTypeUI">
> >>       <Property Id="UserTypeRadioButtonGroup" Value="2" />
> >>       <!--<TextStyle Id="Tahoma_Regular" FaceName="Tahoma" Size="8" />
> >>       <Property Id="DefaultUIFont" Value="Tahoma_Regular"/>-->
> >>
> >>       <Dialog Id="UserTypeDlg" Width="370" Height="270"
> >> Title="[ProductName] Setup" NoMinimize="yes">
> >>         <!--<Control Id="InstallButton" Type="PushButton"
> >> Text="Install" Height="17" Width="56" X="245" Y="243">
> >>           <Publish Event="EndDialog" Value="Return" />
> >>         </Control>-->
> >>         <Control Id="UserTypeRadioGroup" Type="RadioButtonGroup"
> >> Property="UserTypeRadioButtonGroup" Height="100" Width="100" X="50"
> >> Y="50">
> >>           <RadioButtonGroup Property="UserTypeRadioButtonGroup">
> >>             <RadioButton Value="1" Text="Admin" Height="17" Width="50"
> >> X="50" Y="0" />
> >>             <RadioButton Value="2" Text="Domain User" Height="17"
> >> Width="100" X="50" Y="20" />
> >>           </RadioButtonGroup>
> >>         </Control>
> >>         <!--<Control Id="Next" Type="PushButton" X="245" Y="243"
> >> Width="100" Height="17" Text="Next">
> >>           <Publish Event="EndDialog" Value="Return" />
> >>         </Control>-->
> >>         <Control Id="Next" Type="PushButton" X="236" Y="243"
> >> Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
> >>           <Publish Property="WixUI_InstallMode"
> >> Value="Update">Installed AND PATCH</Publish>
> >>         </Control>
> >>         <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="Bitmap" Type="Bitmap" X="0" Y="0" Width="370"
> >> Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" />-->
> >>         <Control Id="Back" Type="PushButton" X="180" Y="243"
> >> Width="56" Height="17" Text="!(loc.WixUIBack)">
> >>           <Publish Event="NewDialog" Value="WelcomeEulaDlg">1</Publish>
> >>         </Control>
> >>
> >>       </Dialog>
> >>
> >>       <!--<Dialog Id="AdminDlg" Width="370" Height="270"
> >> Title="[ProductName] Setup" NoMinimize="no">
> >>       </Dialog>-->
> >>     </UI>
> >>   </Fragment></Wix>
> >>
> >> My code is - Custom dialog -->
> >>
> >>       <Dialog Id="UserTypeDlg" Width="370" Height="270"
> >> Title="[ProductName] Setup" NoMinimize="yes">
> >>         <!--<Control Id="InstallButton" Type="PushButton"
> >> Text="Install" Height="17" Width="56" X="245" Y="243">
> >>           <Publish Event="EndDialog" Value="Return" />
> >>         </Control>-->
> >>         <Control Id="UserTypeRadioGroup" Type="RadioButtonGroup"
> >> Property="UserTypeRadioButtonGroup" Height="100" Width="100" X="50"
> >> Y="50">
> >>           <RadioButtonGroup Property="UserTypeRadioButtonGroup">
> >>             <RadioButton Value="1" Text="Admin" Height="17" Width="50"
> >> X="50" Y="0" />
> >>             <RadioButton Value="2" Text="Domain User" Height="17"
> >> Width="100" X="50" Y="20" />
> >>           </RadioButtonGroup>
> >>         </Control>
> >>         <!--<Control Id="Next" Type="PushButton" X="245" Y="243"
> >> Width="100" Height="17" Text="Next">
> >>           <Publish Event="EndDialog" Value="Return" />
> >>         </Control>-->
> >>         <Control Id="Next" Type="PushButton" X="236" Y="243"
> >> Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
> >>           <Publish Property="WixUI_InstallMode"
> >> Value="Update">Installed AND PATCH</Publish>
> >>         </Control>
> >>         <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="Bitmap" Type="Bitmap" X="0" Y="0" Width="370"
> >> Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" />-->
> >>         <Control Id="Back" Type="PushButton" X="180" Y="243"
> >> Width="56" Height="17" Text="!(loc.WixUIBack)">
> >>           <Publish Event="NewDialog" Value="WelcomeEulaDlg">1</Publish>
> >>         </Control>
> >>
> >>       </Dialog>
> >>
> >>       <!--<Dialog Id="AdminDlg" Width="370" Height="270"
> >> Title="[ProductName] Setup" NoMinimize="no">
> >>       </Dialog>-->
> >>     </UI>
> >>   </Fragment></Wix>
> >>
> >> ___________________________________________________________________
> >> _ WiX Toolset Users Mailing List provided by FireGiant 
> >> http://www.firegiant.com/
> >>
> >
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list