wix - Heat Harvest Tool Component ID duplication for registry files -
i'm running heat harvest tool multiple registry files (45) have on loop generate wxs file.
it works except 3 files same component id generated.
heat reg myreg.reg -cg compoentgroup -gg -o myreg.reg.wxs heat reg myreg1.reg -cg compoentgroup1 -gg -o myreg1.reg.wxs heat reg myreg2.reg -cg compoentgroup2 -gg -o myreg2.reg.wxs result in same component id
<component id="cmp0278c3ef60ddfa362d50d5dd0254bcb9" directory="targetdir" guid="{eed2941a-01bd-4ce5-97bf-75f19b6605a6}" keypath="yes"> though guid unique.
i wonder how can avoid situation or alternate way of doing same.
the component/@id should based on full "path" of contained registry key. so, if have 2 registry keys in .reg files (that may or may not have different values) end duplicate component/@id attributes. important because having same registry key in 2 different components breaks component rules.
one last little thing. careful using -gg switch heat. every time run tool generate new guids components. not allowed once components ship because again violation of component rules. recommend using -ag switch instead let auto-guid mechanism take care of managing guids correctly.
Comments
Post a Comment