Menu ▾ ▴

#3121 Bogus warning when compiling mergemodule that references CommonFilesFolder

v3.8
migrated
nobody
None
2013-08-21
2012-10-16
No

Bogus warning when compiling the following snippet:

<?xml version="1.0" encoding="UTF-8" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Module Id="MergeModule" Language="1033" Version="1.0.0.0">
        <Package Id="{SomeGUID}" Manufacturer="ACME" InstallerVersion="200" />


        <Directory Id="TARGETDIR" Name="SourceDir">
                <Directory Id="CommonFilesFolder" />
        </Directory>

        <DirectoryRef Id="CommonFilesFolder">
            <Directory Id="ComStaHelper" Name="ACME">
                <Directory Id="ComStaHelperComSta" Name="ComStaHelper">
                    <Component Id="cComSTAHelper" SharedDllRefCount="yes">
                        <File Id="ComSTAHelper" Name="ComSTAHelper.dll" Source="ComSTAHelper.dll" KeyPath="yes" Checksum="yes" />
                    </Component>
                </Directory>
            </Directory>
        </DirectoryRef>
    </Module>
</Wix>

W:\tmp\CommonFiles.wxs(14) : error LGHT0231 : The component 'cComSTAHelper.63744358_CA08_4563_B039_4BE7181B668E' has a key file with path 'TARGETDIR\acme\comstahelper\comstahelper.dll'. Since this path is not rooted in one of the standard directories (like ProgramFilesFolder), this component does not fit the criteria
for having an automatically generated guid. (This error may also occur if a path contains a likely standard directory such as nesting a directory with name "Co
mmon Files" under ProgramFilesFolder.)

Discussion

  • Rob Mensching

    Rob Mensching - 2012-11-21
    • Milestone: v3.7 --> v3.8
     
  • Eitan Behar

    Eitan Behar - 2012-12-17

    Is there a workaround for this ?

     
  • Rob Mensching

    Rob Mensching - 2013-08-21
    • Status: open --> migrated