i've been trying insert custom dialog wixui_installdir
ui sequence. have "main" file named product.wxs
, custom dialog in file named installtypedlg.wxs
- both of present in installer.wixproj
.
within installtypedlg.wxs
, have following:
<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <fragment> <ui> <dialog id="installtypedlg" width="370" height="270" title="select install type"> <control id="installtypeselection" type="radiobuttongroup" x="20" y="55" width="330" height="120" property="installtype"> <radiobuttongroup property="installtype"> <radiobutton text="type 01" value="1" x="5" y="0" width="250" height="15" /> <radiobutton text="type 02" value="2" x="5" y="20" width="250" height="15" /> </radiobuttongroup> </control> <control id="back" type="pushbutton" x="180" y="243" width="56" height="17" text="!(loc.wixuiback)" /> <control id="next" type="pushbutton" x="236" y="243" width="56" height="17" default="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)" /> </dialog> </ui> </fragment> </wix>
i reference custom dialog in product.wxs
thus:
<property id="wixui_installdir" value="installlocation" /> <ui id="mywixui_installdir"> <uiref id="wixui_installdir" /> <dialogref id="installtypedlg" /> <publish dialog="installdirdlg" control="next" event="newdialog" value="installtypedlg" order="4">1</publish> <publish dialog="verifyreadydlg" control="back" event="newdialog" value="installtypedlg">1</publish> </ui>
now, when compile project, following error:
installtypedlg.wxs(8,0): error lght0094: unresolved reference symbol 'property:installtype' in section 'fragment:'.
i have no idea why. have forgotten something? :-/
i'm new wix, having picked yesterday. appreciated.
i using wix 3.5.2415.0.
probably, need define property before using it, i.e.:
<property id="installtype" value="some default value" />
Comments
Post a Comment