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

时光怂恿深爱的人放手 提交于 2019-12-02 21:37:24

问题


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 .


回答1:


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. :)



来源:https://stackoverflow.com/questions/25059892/how-to-insert-a-groupbox-and-image-in-setup-dialog-in-wix-installer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!