title: Icon for shortcut
body: <p>Could you tell me, what is wrong with my code please?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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"&gt;
      &lt;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"&gt;
          &lt;Package InstallerVersion="200" Compressed="yes" /&gt;
          &lt;Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /&gt;
  
        &lt;Icon Id="ikonka" SourceFile="Files\AdministKOB.exe"/&gt;
  
        &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
            &lt;Directory Id="DesktopFolder"/&gt;
              &lt;Directory Id="ProgramMenuFolder"&gt;
            &lt;/Directory&gt;
  
            &lt;Directory Id="ProgramFilesFolder"&gt;
                  &lt;Directory Id="INSTALLLOCATION" Name="Administ_KOB"&gt;
                      &lt;Component Id="ProductComponent" Guid="6bd37582-5219-4ae4-a56e-cd1ecd375efa"&gt;
                        &lt;File Id="AdministKOB" Name="AdministKOB.exe" Source="Files\AdministKOB.exe" KeyPath="yes"&gt;
                          &lt;Shortcut Advertise="yes"
                                        Id="DesktopShortcut"
                                        Directory="DesktopFolder"
                                        Name="AdministKOB"
                                        WorkingDirectory="INSTALLDIR"
                                        Description="Elektroniczna ksiazka budynku"
                                        Icon ="ikonka"&gt;
                          &lt;/Shortcut&gt;
                        &lt;/File&gt;
                        &lt;!--&lt;File Id="ikonka" Name="C.ico" DiskId="1"  Source="City.ico" Vital="yes" /&gt;--&gt;
                      &lt;/Component&gt;
                  &lt;/Directory&gt;
              &lt;/Directory&gt;
          &lt;/Directory&gt;
  
          &lt;Feature Id="ProductFeature" Title="AdministKOB" Level="1"&gt;
              &lt;ComponentRef Id="ProductComponent" /&gt;
          &lt;/Feature&gt;
          &lt;Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /&gt;
      &lt;/Product&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>I get this error and warnings:</p>
  
  <blockquote>
    <p>The extension of Icon 'ikonka' for Shortcut 'DesktopShortcut' is not "exe" or "ico". The Icon will not be displayed correctly.*</p>
  </blockquote>
  
  <p>Why? I give ICO file.</p>
  
  <blockquote>
    <p>The extension of Icon 'ikonka' for Shortcut 'DesktopShortcut' does not match the extension of the Key File for component 'ProductComponent'.</p>
  </blockquote>
  
  <p>Have you any idea?</p>