我想使用WIX在屏幕上显示浏览按钮。
我想要这样
我可以使用功能树获取浏览按钮,但因为我没有多个功能,所以我想要与图像完全一样。
有人可以指导我。
这是我正在使用的代码
<?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>
这是我得到的错误