2010-12-22 128 views
0

我想使用WIX在屏幕上显示浏览按钮。WIX中的显示浏览对话框

我想这样

alt text

我能够得到使用特征树浏览按钮,但我没有多的功能我想确切的形象。

有人可以请指导我这一点。

这是我使用

<?xml version="1.0" encoding="UTF-8"?> 

<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> 
<Property Id="INSTALLLOCATION" Value="C:\Program Files" /> 

    <Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="ProgramFilesFolder"> 
    <Directory Id="APPLICATIONFOLDER" Name="My Program" > 
       <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. --> 
       <Component Id="ProductComponent" Guid="595b18ae-6a72-412e-9b0e-f2893ca9fdf5"> 
     <File Id="SampleFile" Name="File.txt" Source="D:\links.txt"/> 
       </Component> 
      </Directory> 
     </Directory> 
    </Directory> 

<Property Id="ApplicationFolderName" Value="My Program" /> 
<Property Id="WixAppFolder" Value="WixPerMachineFolder" /> 

<Feature Id="ProductFeature" Title="WixProject1" Level="1"> 
     <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. --> 
     <ComponentRef Id="ProductComponent" /> 
    </Feature> 

<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /> 
<UIRef Id="WixUI_InstallDir" /> 
<UIRef Id="WixUI_ErrorProgressText" /> 

<WixVariable Id="WixUILicenseRtf" Value="Files\License.rtf" /> 
<WixVariable Id="WixUIBannerBmp" Value="Bitmaps\bannrbmp.bmp" Overridable="no"/> 
<WixVariable Id="WixUIDialogBmp" Value="Bitmaps\dlgbmp.bmp" Overridable="no"/> 
<WixVariable Id="WixUIExclamationIco" Value="Bitmaps\exclamic.ico" Overridable="no"/> 
<WixVariable Id="WixUIInfoIco" Value="Bitmaps\info.ico" Overridable="no"/> 
<WixVariable Id="WixUINewIco" Value="Bitmaps\New.ico" Overridable="no"/> 
<WixVariable Id="WixUIUpIco" Value="Bitmaps\Up.ico" Overridable="no"/> 

</Product> 

的代码,这是我得到

alt text

错误
+1

你在这个tutoral检查出部分8.4? http://www.tramontana.co.hu/wix/lesson8.php或者你正在寻找某人为你粘贴一个准备好的XML? – 2010-12-22 07:23:41

+0

我想要的几乎是这样,除了功能树不应该来。 – 2010-12-23 13:22:25

回答