wix - How to use a merge module in another merge module -
i creating wix installer project (myproduct.msi) should consume wix merge module (mergedesktop.msm) intern consumes wix merge module (mergecore.msm).
i able generate myproduct.msi can consume mergecore.msm , able copy content mergecore.msm definition.
though able generate myproduct.msi consumes mergedesktop.msm intern consumes mergecore.msm file, copying nothing.
i have used dependency element in mergedesktop.msm include mergecore.msm module.
<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <module id="mergedesktop" language="1033" version="1.0.0.0"> <package id="22c37444-cc56-453c-8906-73413240ae40" manufacturer="microsoft" installerversion="200" /> <dependency requiredid="mergecore" requiredlanguage="1033"/> <directory id="targetdir" name="sourcedir"> <directory id="mergeredirectfolder"> </directory> </directory> </module> <fragment> <directory id="targetdir" name="sourcedir"> <directory id="programfilesfolder"> <directory id="installfolder" name="mergecore" /> <merge id="mergecore" language="1033" sourcefile="mergecore.msm" diskid="1" /> </directory> </directory> </fragment> </wix>
could please suggest best way deal situation. please let me know if further information needed.
regards, kumar
it not possible use merge module inside of merge module.
the right way when build msi, merge both modules. if have dependencies of 1 module other specify < dependency >
https://www.firegiant.com/wix/tutorial/upgrades-and-modularization/mergers/
Comments
Post a Comment