2010-12-22 160 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

回答

相關問題