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

Rob Mensching rob at firegiant.com
Fri Oct 23 09:20:02 PDT 2020


Duplicate directory ids are handled (with that switch) in the linker. Merge modules are merged at bind time.

---
Short replies here. Complete answers here: https://www.firegiant.com/services/

---
--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 9: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.



More information about the wix-users mailing list