简体   繁体   中英

How to insert a Groupbox and image in setup dialog in wix Installer

Am developing an installer for my application using wix installer.installer. Wix is really new to me . In that installer am having a custom dialog and where i have kept check boxes inside it.

 <Control Id="InstallWORD" Type="CheckBox" X="20" Y="200" Width="200" Height="17" Property="INSTALLWORD" CheckBoxValue="1"
           Text="Install Word Plug-In?" />

the above is the code i used for keeping check box. But now i need to insert a small picture near the checkbox (ie) similar like this 在此处输入图片说明

how to make it possible in wix installer??

Thanks .

Need to add a Binary element to the file:

<Binary Id="MainImage" SourceFile="Resources/Images/weblabel.jpg" />

...and to set the Text of the Bitmap Control to "MainImage":

        <Control Id="Bitmap"
                    Type="Bitmap"
                    X="0"
                    Y="0"
                    Width="258"
                    Height="185"
                    TabSkip="no"
                    Text="MainImage" />

and for adding a group box

    <Control Id="grpBox"  Type="GroupBox"   X="8" Y="50" Width="355" Height="210" Text="Add-in for Microsoft Office" ></Control>

and now it works. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM