MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: Commands - MSM[Next]: MsmSystemDirectory
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->MAKEMSI Installs...->Available Frameworks->Making Merge Modules->Windows Installer Merge Modules->Commands - MSM->MsmSuffix

MsmSuffix

This command (macro) returns a version of the "ModuleGuid" value specified in the version file (see the "TryMeCreateMergeModule.VER" sample).

All keys in a merge module should be appended with this value as per Microsoft's recomendations. Its purpose is to ensure that all keys are unique across all included merge modules and the base MSI.

The command takes no parameters.

EXAMPLE OF A CORRECTLY FORMATTED "Directory" TABLE

<$Table "Directory">
   #(
       <$Row
                  Directory="MyDir.090A59C1_3F2A_469E_9AAE_8C623F31ED8D"
           Directory_Parent="ProgramFilesFolder.090A59C1_3F2A_469E_9AAE_8C623F31ED8D"
                 DefaultDir="MmTest"
       >
   #)

   #(
       <$Row
                  Directory="ProgramFilesFolder.090A59C1_3F2A_469E_9AAE_8C623F31ED8D"
           Directory_Parent="TARGETDIR"
                 DefaultDir="Any.1"
       >
   #)

   #(
       <$Row
                  Directory="TARGETDIR"
           Directory_Parent=""
                 DefaultDir="SourceDir"
       >
   #)
<$/Table>

EXAMPLE of it's Use

;--- We want to create a directory off "ProgramFilesFolder" -----------------
<$MsmSystemDirectory "ProgramFilesFolder" KEYMAC="PFF">

;--- Create our directory ---------------------------------------------------
define INSTALLDIR  MyDir<$MsmSuffix>        ;;We will refer to it as "<$INSTALLDIR>"
<$Directory Key="<$INSTALLDIR>" Parent="<$PFF>" Dir="MyProgramFilesSubDirectory">


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Commands - MSM[Next]: MsmSystemDirectory


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday August 13 2017 at 2:39pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.