\
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">