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]: TryMeUpdateRegistry00-99.MM[Next]: TryMeUserInputUsed2CreateFile.mm
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->MAKEMSI Installs...->Samples Installed by MAKEMSI->Samples - Build New MSI/MSM->TryMeUseMergeModule.MM

TryMeUseMergeModule.MM

This is one of the MAKEMSI samples which build a new MSI/MSM. This MSI makes use of these "TryMe.MM" files:

  1. TryMe.ver
  2. TryMe.rtf

The following code uses the merge module created by the "TryMeCreateMergeModule.MM" sample:

;----------------------------------------------------------------------------
;    MODULE NAME:   TryMeUseMergeModule.MM
;
;        $Author:   USER "Dennis"  $
;      $Revision:   1.0  $
;          $Date:   29 Nov 2006 18:31:54  $
;       $Logfile:   C:/DBAREIS/Projects.PVCS/Win32/MakeMsi/TryMeUseMergeModule.MM.pvcs  $
;
; DESCRIPTION
; ~~~~~~~~~~~
; This is a simple sample/test MSI that loads the merge module created by
; another sample ("TryMeCreateMergeModule.mm").
;
; The only 2 required lines in this file are:
;     1. #include "ME.MMH"
;     2. <$MergeModule ...
;----------------------------------------------------------------------------


;--- First lets check that you have built the merge module! -----------------
#define GeneratedMergeModule       ..\Create Merge Modules\out\TryMeCreateMergeModule.mm\MSM\TryMeCreateMergeModule.msm
#if FileQueryExists('<$GeneratedMergeModule>') = ''
    #error ^Sorry but you must build the "TryMeCreateMergeModule" sample first!^
#endif


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

;--- Use the merge module we have previously generated ----------------------
<$MergeModule '<$GeneratedMergeModule>' language="1033">


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]: TryMeUpdateRegistry00-99.MM[Next]: TryMeUserInputUsed2CreateFile.mm


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.