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]: Building or Updating MSIs[Next]: Unattended MSI Builds
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Building or Updating MSIs->MM Batch Files

MM Batch Files

The "MM.CMD" (WinNT+) or "MM.BAT" (Win9x) are batch files that I have prepared which invoke the build process from the command line.

MAKEMSI installs one of this files based on your operating system and the build an MSI via right click explorer shortcuts call these batch files to do most of the actual work.

In some ways these batch files should be considered more as "examples" than critical parts of the build process. They really only "demonstrate" one possible way of invoking the build and are restricted to processing ".MM" files that reside in the "current directory" (an artificial restriction for ease of use).

MM.CMD - WinNT, WIN2000, WINXP, Vista or newer...

This batch takes one or two parameters:

  1. Name of the .MM file
    This is the name of the ".MM" file. You may pass this name with or without the ".mm" file extension but the name should not include any path.

    If this name is not supplied then if there is only one ".MM" script in the current directory then it will be invoked otherwise all available scripts will be listed and you will need to pass one of these for this parameter!

  2. The Processing Mode
    This indicates the processing mode you wish to use, it defaults to "development" if not supplied. Pass "D" for development or "P" for production (case insensitive).

There are quite a few environment variables that affect how this batch file operates. Any environment variables it sets are temporary ones as the batch file begins with a "setlocal" command.

Note that for testing you could set these environment variables from the command, for more permanent configuration youu would configure windows instead ("MyComputerPropertiesAdvancedEnvironment Variables" in WINXP).

You can use this batch file for silent (unattended) builds and the batch file will return "0" for success and non-zero otherwise.

This batch file has command line "shortcuts" to open explorer at particular directories if parameter 1 starts with "?", they are:

MM.BAT - WIN95 WIN98, WINME

This batch file is pretty basic (mainly due to DOS restrictions) and takes one or two parameters:

  1. Name of the .MM file
    This is the name of the ".MM" file. It is not an optional parameter and you must pass the ".mm" file extension. Pass the "8.3" (short) name if the filename contains spaces.

  2. The Processing Mode
    As per MM.CMD above.


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]: Building or Updating MSIs[Next]: Unattended MSI Builds


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday February 28 2016 at 3:45pm
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.