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 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 12 Jun 2008Please 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).
Wednesday June 25 2008 at 7:16pm
Visit MAKEMSI's Home PageThis external link was OK when tested at 21 Jun 2008

HTML page dated Mon, 29 Jan 2007 00:11:11 GMT
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006 & 2007 for the Windows SDK (Windows Installer) area.This external link was OK when tested at 12 Jun 2008