Bạn có thể cho tôi biết, mã của tôi có vấn đề gì không?Biểu tượng cho phím tắt
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xse="http://schemas.microsoft.com/wix/2005/XmlSchemaExtension" xmlns:html="http://www.w3.org/1999/xhtml">
<Product Id="c1ee1e1f-4e2a-41c6-a716-eb6f79477012" Name="AdministKOB" Language="1033" Version="1.0.0.0" Manufacturer="Project UP" UpgradeCode="909b9926-711d-4a97-887b-df0bafc6ea66">
<Package InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<Icon Id="ikonka" SourceFile="Files\AdministKOB.exe"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="DesktopFolder"/>
<Directory Id="ProgramMenuFolder">
</Directory>
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="Administ_KOB">
<Component Id="ProductComponent" Guid="6bd37582-5219-4ae4-a56e-cd1ecd375efa">
<File Id="AdministKOB" Name="AdministKOB.exe" Source="Files\AdministKOB.exe" KeyPath="yes">
<Shortcut Advertise="yes"
Id="DesktopShortcut"
Directory="DesktopFolder"
Name="AdministKOB"
WorkingDirectory="INSTALLDIR"
Description="Elektroniczna ksiazka budynku"
Icon ="ikonka">
</Shortcut>
</File>
<!--<File Id="ikonka" Name="C.ico" DiskId="1" Source="City.ico" Vital="yes" />-->
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="AdministKOB" Level="1">
<ComponentRef Id="ProductComponent" />
</Feature>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" />
</Product>
</Wix>
tôi nhận được lỗi này và cảnh báo:
The extension of Icon 'ikonka' for Shortcut 'DesktopShortcut' is not "exe" or "ico". The Icon will not be displayed correctly.*
Tại sao? Tôi cung cấp cho tập tin ICO.
The extension of Icon 'ikonka' for Shortcut 'DesktopShortcut' does not match the extension of the Key File for component 'ProductComponent'.
Bạn có ý tưởng gì không?
Khi tôi thêm yếu tố biểu tượng trên tôi nhận được lỗi sau. "Phần tử ComponentGroup chứa phần tử con không mong muốn 'Biểu tượng'." –
@MARKANDBhatt Nó nằm trong phần tử Product. – JWiley