[wix-users] Unresolved reference to symbol

Shintaro Takechi devst119 at gmail.com
Fri Jul 15 12:03:00 PDT 2016


I am trying to create shortcut to my program.
By following the WiX documentation (
http://wixtoolset.org/documentation/manual/v3/howtos/files_and_registry/create_start_menu_shortcut.html
)
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?


More information about the wix-users mailing list