Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bogus warning when compiling mergemodule that references CommonFilesFolder #3810

Open
wixbot opened this issue Oct 16, 2012 · 2 comments
Open
Milestone

Comments

@wixbot
Copy link

wixbot commented Oct 16, 2012

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.)

Originally opened by dziegel from http://sourceforge.net/p/wix/bugs/3121/

@wixbot
Copy link
Author

wixbot commented Dec 17, 2012

Is there a workaround for this ?

@wixbot
Copy link
Author

wixbot commented Oct 22, 2013

Originally changed by barnson
Area set to compiler
Release changed from v3.8 to v3.x

@wixbot wixbot added this to the v3.x milestone Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant