Including the MSM with WiX Toolset v3

Started by jclayton06, October 26, 2023, 06:50:01 AM

Previous topic - Next topic

jclayton06

I just want to say thanks for providing the Merge Module .MSM file runtime for installation!
I'm using WiX Toolset v3.11 to package up another project that relates to this one. A few extra lines in the Features.wxs file and it's included with no issues (outside of needing to add the install folder location to AutoCAD's Trusted Paths).

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <?define SourceDir="..\Deploy2"?>
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="CompanyFolder" Name="MyCompany">
          <Directory Id="INSTALLLOCATION" Name="MyCustomProject">
            <Merge Id="AutoCADToolsMM" SourceFile="$(var.AutoCADToolsMM.TargetPath)" DiskId="1" Language="1033"/>
          </Directory>
        </Directory>
      </Directory>
      <Merge Id="OpenDclMM" SourceFile="$(var.SourceDir)\OpenDCL.Runtime.9.1.5.2.msm" DiskId="1" Language="1033" />
    </Directory>
    <Feature Id="AutoCADTools" Title="AutoCAD Tools 2021" Description="Installs all the files needed for AutoCAD Tools 2021." Level="1" AllowAdvertise="no" ConfigurableDirectory="INSTALLLOCATION">
      <MergeRef Id="AutoCADToolsMM"/>
      <ComponentRef Id="RegistryEntries" />
    </Feature>
    <Feature Id="OpenDcl" Title="Open DCL Runtime" Description="OpenDCL is for AutoLISP programmers who want to replace AutoCAD's limited DCL (Dialog Control Language) user interface language with a rich set of modern Windows user interface elements." Level="1" AllowAdvertise="no">
      <MergeRef Id="OpenDclMM" />
    </Feature>
  </Fragment>
</Wix>