我是Wix的新手,并创建一个多功能Wix项目。我们的产品有4个模块,每个模块都必须作为Windows安装程序中的一项功能。但所有功能都共享相同的文件夹结构。WIX:加热重复ID问题与多个功能/文件夹
我正在使用命令行来构建我的Wix项目。在收集每个模块到不同的wxs片段后,light.exe给出错误,说明dirercoty表中存在重复的id。
我的文件树的样子......
ModuleA - Core |--bin |--etc | |--mgr |--lib |-- a.txt ModuleB |--bin |--etc | |--mgr |--lib |-- b.txt ModuleC |--bin |--etc | |--mgr |--lib |-- c.txt
我使用下面的命令......
@echo Harvesting target files.... heat.exe dir .\Mod1 -cg Mod1ComponentGroup -nologo -gg -scom -sfrag -sreg -srd -ke -dr INSTALLLOCATION -var var.mod1files -out Mod1Files.wxs heat.exe dir .\Mod2 -cg Mod2ComponentGroup -nologo -gg -scom -sfrag -sreg -srd -ke -dr INSTALLLOCATION -var var.mod2files -out Mod2Files.wxs heat.exe dir .\Mod3 -cg Mod3ComponentGroup -nologo -gg -scom -sfrag -sreg -srd -ke -dr INSTALLLOCATION -var var.mod3files -out Mod3Files.wxs @echo Compile modules.... candle.exe -nologo myproj.wxs Mod1Files.wxs Mod2Files.wxs Mod3Files.wxs -dmod1files =.\Mod1 -dmod2files=.\Mod2 -dmod3files=.\Mod3 @Creating MSI... set msi_name=MYProduct.1.0.12345.Win32.msi light.exe -nologo -ext WixUIExtension -cultures:en-us myproj.wixobj Mod1Files.wixobj Mod2Files.wixobj Mod3Files.wixobj -o %msi_name%
有什么办法,以避免重复ID错误?
任何帮助将非常感激。
在此先感谢。
MUTHU
非常感谢克里斯托弗。这可能是我的一个起点。我将开始研究合并模块。 – Muthukkumaran 2010-09-18 14:04:30
也请看看iswix.codeplex.com。它对合并模块的散列和排序wxs文件做了很好的工作。 (免责声明:我的项目) – 2010-09-18 14:41:53
使用合并模块为我无缝工作。再次感谢您的评论。 – Muthukkumaran 2010-09-20 21:03:37