[wix-users] "AllowDuplicateDirectoryIds" parameter is not supported by the "Light" task

Christopher Painter chrpai at iswix.com
Fri Oct 23 13:50:22 PDT 2020


Merge modules have a guid as part of their ModuleSignature and it's appended to all sorts of things including directory id's to make sure there are no merge conflicts.

If I understood what problem your trying to solve I might be able to give you more advice.    Typically you associate a directory such as MergeRedirectFolder to your installatation folder such as INSTALLLOCATION and that's how they all up being the same.  Other techniques are possible also.

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of John Zajac via wix-users
Sent: Friday, October 23, 2020 11:03 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: John Zajac <jzajac2 at gmail.com>
Subject: [wix-users] "AllowDuplicateDirectoryIds" parameter is not supported by the "Light" task

I have an MSI project which consumes a merge module project and I would like to allow duplicate directory IDs, and I have been trying to do so as described here:
https://wixtoolset.org/documentation/manual/v3/msbuild/task_reference/light.html
however still end up with compile error:

  C:\Program Files
(x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(2439,7): error MSB4064:
The "AllowDuplicateDirectoryIds" parameter is not supported by the "Light"
task. Verify the parameter exists on the task, and it is a settable public instance property. [pathtomy/mergemodule.wixproj]

  C:\Program Files
(x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets(2435,5): error MSB4063:
The "Light" task could not be initialized with its input parameters.
[pathtomy/mergemodule.wixproj]

note: that line in wix2010.targets is the Light task here:
<!-- Call light using the culture subdirectory for output -->
    <Light

ObjectFiles="@(CompileObjOutput);@(WixObject);@(WixLibProjects);@(_ResolvedWixLibraryPaths)"
      AdditionalOptions="$(LinkerAdditionalOptions)"
      AllowIdenticalRows="$(AllowIdenticalRows)"
      AllowDuplicateDirectoryIds="$(AllowDuplicateDirectoryIds)"
      ....
     ....

Before I continue down the path of getting the AllowDuplicateDirectoryIds property to pass through to my msbuild maze and allow the light task to get it's value, which isn't obvious how to do yet however I have a slightly large and maybe complex project..:
1: Is this AllowDuplicateDirectoryIds supported or not, in wix3.10, or wix3.11?
2: hardcoding in       AllowDuplicateDirectoryIds="True" into
wix2010.targets doesn't seem to help either.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list