[Solved] Add resource files in wix installer


Just reference the directory where you want your components eg. Directory="LOCALEEN". There is no need to specify <CreateFolder />
I also recomend to maintain some kind of naming convention. Your Components and Fils have the same id. See https://stackoverflow.com/a/1801464/4634044. So this should do what you expect:

<Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
        <Component Id="C_EnglishLocale" Guid="..." Directory="LOCALEEN">
            <File Id="Fi_EnglishLocale" Name="App.resources.dll" Source="$(var.App.App_TargetDir)en-GB\App.resources.dll" />
        </Component>

        <Component Id="C_PolnishLocale" Guid="..." Directory="LOCALEPT">
            <File Id="Fi_PolnishLocale" Name="App.resources.dll" Source="$(var.App.App_TargetDir)pt-PT\App.resources.dll" />
        </Component>
    </ComponentGroup>
</Fragment>

0

solved Add resource files in wix installer