Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am new to Wix toolkit. I am creating one setup using Wix Toolkit for my Application.
But when I try to build it using Wix. It shows this warning.

Quote:
C:\Users\BNK\Desktop\wix - popup\setup.wxs(60) : warning LGHT1076 : ICE69: Misma
tched component reference. Entry 'FCONStartMenuShortcut' of the Shortcut table b
elongs to component 'FCONShortcut'. However, the formatted string in column 'Tar
get' references file 'FCONUCClient.exe' which belongs to component 'FCONUCClient
.exe'. Components are in the same feature.



Can anybody show me what's wrong in my code?
Here is the Wix Setup codes...

XML
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' >

  <Product Name='FCON UC Client 1.0.9' Id='74D7E851-084D-453B-8789-C46B6D3099DA' UpgradeCode='38856FDA-E3E3-4866-9E7A-503A9F1171A6'
    Language='1033' Codepage='1252' Version='1.0.9' Manufacturer='BNK Systems JLT' >
    <!-- Product Info-->

    <Package Id='*' Keywords='Installer' Description="FCON UC Client 1.0.9"
      Comments='All Rights Reserved BNK Systems JLT.' Manufacturer='BNK Systems JLT'
      InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
    <!-- Package Info-->
    <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' />
    <!-- Setup is CDROM Installer Package-->
    <Property Id='DiskPrompt' Value="BNK Systems JLT FCON UC Client Installation" />
    <!-- Definition for DiskPrompt used in Media above -->

    <Directory Id="TARGETDIR" Name="SourceDir">
      <!--  Directory Structure Root -->
      <Directory Id="ProgramFilesFolder">
        <!-- Install the Package in Program Files Folder -->
        <Directory Id="APPLICATIONROOTDIRECTORY" Name="BNK Systems">
          <!-- Create a Folder namely BNK Systems  inside Program Files ; Id APPLICATIONROOTDIRECTORY can be defined later-->
          <Directory Id="APPLICATIONFILEDIRECTORY" Name="FCON UC Client">
            <!-- Create a Folder namely FCON UC Client inside BNK Systems; Id APPLICATIONFILEDIRECTORY can be defined later -->

          </Directory>
        </Directory>
      </Directory>


      <Directory Id="ProgramMenuFolder">
        <!-- Program Files StartMenu Folder-->
        <Directory Id="FCONStartMenuFolder" Name="BNK Systems"/>
      </Directory>
    </Directory>


    <DirectoryRef Id="APPLICATIONFILEDIRECTORY">
      <!-- Definition of Directory APPLICATIONFILEDIRECTORY  -->
      <Component Id="FCONUCClient.exe" Guid="C124E507-E545-45F1-8262-8528EE86706A">
        <!-- Application files & settings to be installed goes here-->
        <File Id="FCONUCClient.exe" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\FCON UC Client.exe" KeyPath="yes" Checksum="yes"/>
        <File Id="Asterisk.NET.dll" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\Asterisk.NET.dll" KeyPath="no" Checksum="yes"/>
        <File Id="Dotnetrix.TabControl.dll" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\Dotnetrix.TabControl.dll" KeyPath="no" Checksum="yes"/>

        <File Id="FCONUCClient.exe.manifest" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\FCON UC Client.exe.manifest" KeyPath="no" Checksum="yes"/>
        <File Id="jabbernet.dll" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\jabber-net.dll" KeyPath="no" Checksum="yes"/>
        <File Id="muzzle.dll" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\muzzle.dll" KeyPath="no" Checksum="yes"/>
        <File Id="netlib.Dns.dll" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\netlib.Dns.dll" KeyPath="no" Checksum="yes"/>
        <File Id="zlib.net.dll" Source="C:\Users\BNK\Desktop\03 Dec 2013\Popup\Popup\bin\Release\zlib.net.dll" KeyPath="no" Checksum="yes"/>
        <File Id="inittrial.exe" Source="C:\Users\BNK\Desktop\03 Dec 2013\inittrial\inittrial\bin\Release\inittrial.exe" KeyPath="no" Checksum="yes"/>


      </Component>

    </DirectoryRef>

    <DirectoryRef Id="FCONStartMenuFolder">
      <Component Id="FCONShortcut" Guid="149D1C96-04C2-42D2-9F67-9ECA196ADAE0">
        <Shortcut Id="FCONStartMenuShortcut"
                     Name="FCON UC Client 1.0.9"
                   Description="FCON UC Client 1.0.9"
                    Target="[#FCONUCClient.exe]"
                          WorkingDirectory="APPLICATIONFILEDIRECTORY"/>
       <RemoveFolder Id="FCONStartMenuFolder" On="uninstall"/>
      
        <RegistryValue Root="HKCU" Key="Software\Microsoft\FCONUCClient" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
      
      </Component>
    </DirectoryRef>

    <!-- Step 3: Tell WiX to install the files -->
    <Feature Id="InstallFCON" Title="FCON UC Client 1.0.9" Level="1">
      <ComponentRef Id="FCONUCClient.exe" />
      <!--<ComponentRef Id="documentation.html" />-->
      <ComponentRef Id="FCONShortcut" />
    </Feature>

  </Product>
</Wix>
Posted
Comments
Sriram Bala 9-Apr-14 7:30am    
Hi,
<pre lang="xml">Could you please try renaming the component id "FCONUCClient.exe" to CMP_FCONUCClient?
<!-- Definition of Directory APPLICATIONFILEDIRECTORY -->
<Component Id="FCONUCClient.exe" Guid="C124E507-E545-45F1-8262-8528EE86706A">
hopefully this should solve the issue.</pre>



<pre lang="xml"><!-- Step 3: Tell WiX to install the files -->
<Feature Id="InstallFCON" Title="FCON UC Client 1.0.9" Level="1">
<ComponentRef Id="CMP_FCONUCClient" /></pre>

I hope this should solve this warning.
Yesudasan Moses 9-Apr-14 8:11am    
I tried changing... still it shows this warning..


C:\Users\BNK\Desktop\wix - popup\setup.wxs(66) : warning LGHT1076 : ICE69: Misma
tched component reference. Entry 'FCONStartMenuShortcut' of the Shortcut table b
elongs to component 'FCONShortcut'. However, the formatted string in column 'Tar
get' references file 'FCONUCClient.exe' which belongs to component 'CMP_FCONUCCl
ient'. Components are in the same feature.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900