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]: Source Code[Next]: The .VER (version) File
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->MAKEMSI Source Code (scripts)

MAKEMSI Source Code (scripts)

MAKEMSI uses "XML like" text files containing commands to define what it should do. When building MSI files there is frequently an associated ".VER file" which contains all product and version details.

By default MAKEMSI assumes a tab stop of 4 if it finds tabs.

In general all blank lines are ignored as are all lines that begin with ";". Inline comments are also supported, the right most ";;" marks the start of an inline comment and any following text is ignored.

This is an example (TryMe.MM):

;----------------------------------------------------------------------------
;    MODULE NAME:   TRYME.MM
;
;        $Author:   USER "Dennis"  $
;      $Revision:   1.18  $
;          $Date:   24 Sep 2017 10:17:54  $
;       $Logfile:   D:/DBAREIS/Projects.PVCS/Win32/MakeMsi/TryMe.MM.pvcs  $
;
; DESCRIPTION
; ~~~~~~~~~~~
; This is a simple sample/test MSI. Takes about 30 seconds to build and
; validate on my AMD 3200.
;
; Any line within this file that begins with ";" can be ignored as its
; only a comment so there are only 3 important lines in this file:
;
;   1. #include "ME.MMH"
;   2. <$DirectoryTree Key="INSTALLDIR" ...
;   3. <$Files "TryMe.*" DestDir="INSTALLDIR">
;----------------------------------------------------------------------------


;--- Include MAKEMSI support (with my customisations and MSI branding) ------
#define VER_FILENAME.VER  TryMe.Ver      ;;I only want one VER file for all samples! (this line not actually required in "tryme.mm")
#include "ME.MMH"


;--- Want to debug (not common) ---------------------------------------------
;#debug on
;#Option DebugLevel=^NONE, +OpSys^


;--- Define default location where file should install and add files --------
<$DirectoryTree Key="INSTALLDIR" Dir="c:\program files\TryMe (makemsi sample)\<$MAKEMSI_MM_BASENAME>" CHANGE="\" PrimaryFolder="Y">
<$Files "TryMe.*" DestDir="INSTALLDIR">


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]: Source Code[Next]: The .VER (version) File


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
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.