I am evaluating whether I can port our installations from Wise to Wix. We have several merge modules, each of which contains a set of files and a couple of shortcuts. In the Wise definition we use a global property to define the shortcut path for the merge modules. I can use the substitution tables to tweak the directory table, and use the global property, but was wondering if there was some other (better) way to accomplish this?
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Module Id="MyMergeModule" Language="1033" Version="2.0"> <!-- This block replaces the parent directory (in the Directory table) of SMHelp directory entry. This allows the user defined Start Menu property to be used for the shortcuts. --> <Configuration Name="SMPRODNAME" Format="Key" Type="Identifier" DefaultValue="SMPRODNAME" Description="Start Menu Path" DisplayName="Start Menu Folder"/> <Substitution Table="Directory" Column="Directory_Parent" Row="SMHelp" Value="[=SMPRODNAME]"/> <Directory Id="TARGETDIR" Name="SourceDir"> <!-- Set up Directory for Start Menu --> <!-- SMHelp is reparented to SMPRODNAME --> <Directory Id="SMHelp" Name="Help Documentation" ShortName="HELPDOC" /> <Directory Id="MergeRedirectFolder" > <!-- other files here --> <!-- Help files --> <Directory Id="Help" Name="Help" > <Component Id="MyComponent.chm" Guid="*"> <!-- Start Menu shortcut to help file --> <Shortcut Id="MYCOMPHelpSC" Directory="SMHelp" Name="My Component Help" Advertise="no" Target="{00000000-0000-0000-0000-000000000000}" Hotkey="0" Show="normal" IconIndex="0"/> </Component> </Directory> </Directory> </Directory> </Module> </Wix> When the merge module is merged into the msi the directory table is updated and the user defined property SMPRODNAME (set in UI sequence) becomes the parent of the SMHelp directory. I am simply wondering if there is some other way to accomplish this? Thanks, Bill ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users