[wix-users] Unresolved reference to symbol

Lewis Henderson henderso at opentext.com
Fri Jul 15 12:10:08 PDT 2016


Hi,

It looks to me like you defined a Component with Id='ApplicationShortcut', but referenced a ComponentGroup in your FeatureGroup definition.  Did you also define a ComponentGroup with that Id that's not shown in your code snippet?

				Lewis

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Shintaro Takechi
Sent: Friday, July 15, 2016 3:03 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Unresolved reference to symbol

I am trying to create shortcut to my program.
By following the WiX documentation (
https://urldefense.proofpoint.com/v2/url?u=http-3A__wixtoolset.org_documentation_manual_v3_howtos_files-5Fand-5Fregistry_create-5Fstart-5Fmenu-5Fshortcut.html&d=CwICAg&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=InMYGfI-DZOkHvr8LfluYYiJFXH2Vs-bkw7C8D4s3Q8&s=F7wygsHRd2OB-p0pTIX2MmsMq1mwPpChxk9QYT9kRK4&e=
)
I created following.
The reason Target="[INSTALLLOCATION]$(var.PRODUCT_EXECUTABLE_FILE)" is because the execultable file is collected via heat.exe and ID cannot be predicted.

  <Fragment>
    <Property Id="DirectoryStructure" Value="1" />
    <Directory Id="TARGETDIR" Name="SourceDir">
      <!-- Main installation location -->
      <Directory Id="$(var.PlatformProgramFilesFolder)">
        <Directory Id="INSTALLLOCATION" Name="$(var.PRODUCT_NAME) $(var.PRODUCT_VERSION)" />
      </Directory>
      <!-- Shortcut reference -->
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ApplicationProgramsFolder" Name="$(var.PRODUCT_NAME) $(var.PRODUCT_VERSION)" />
      </Directory>
    </Directory>

    <DirectoryRef Id="ApplicationProgramsFolder">
      <Component Id="ApplicationShortcut" Guid="*">
        <Shortcut Id="ApplicationStartMenuShortcut"
                  Name="$(var.PRODUCT_NAME) $(var.PRODUCT_VERSION)"
                  Target="[INSTALLLOCATION]$(var.PRODUCT_EXECUTABLE_FILE)"
                  WorkingDirectory="INSTALLLOCATION"/>
        <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
        <RegistryValue Root="HKCU" Key="$(var.KEY_LOCATION)"
Name="installed" Type="string" Value="$(var.PRODUCT_VERSION)"
KeyPath="yes"/>
      </Component>
    </DirectoryRef>
  </Fragment>

  <Fragment>
    <FeatureGroup Id="CompleteFeatures">
      <Feature Id="ProductFeature"
               Title="$(var.PRODUCT_NAME)"
               Level="1"
               ConfigurableDirectory="INSTALLLOCATION">
        <!-- stripped out main components -->
        <ComponentGroupRef Id="ApplicationShortcut"/>
      </Feature>
    </FeatureGroup>
  </Fragment>

After running the light.exe, I receive

error LGHT0094: Unresolved reference to symbol 'WixComponentGroup:ApplicationShortcut' in section 'Fragment:'.

Would anybody be able to point me in the right direction?

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=InMYGfI-DZOkHvr8LfluYYiJFXH2Vs-bkw7C8D4s3Q8&s=mcvEN9ZLwE27jh8H4B_tak_8b5IxKpxFQFK7z1siqcQ&e= 



More information about the wix-users mailing list