88 lines
4.6 KiB
Text
88 lines
4.6 KiB
Text
; Copyright 2009, Snapper Services Limited, New Zealand
|
|
; All rights reserved
|
|
; $Id: me.mmh 1224 2010-05-04 04:14:44Z roger.brown $
|
|
|
|
;----------------------------------------------------------------------------
|
|
;
|
|
; MODULE NAME: ME.MMH
|
|
;
|
|
; $Author: USER "Dennis" $
|
|
; $Revision: 1224 $
|
|
; $Date: 27 Sep 2007 17:38:34 $
|
|
; $Logfile: C:/DBAREIS/Projects.PVCS/Win32/MakeMsi/ME.mmh.pvcs $
|
|
;
|
|
; Very simplistic example of a MAKEMSI customisation/branding file, see
|
|
; "DENNIS.MMH" for a more complex variation (please don't use it though...).
|
|
;----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
;----------------------------------------------------------------------------
|
|
;--- Set up some options specific to my requirements ------------------------
|
|
;----------------------------------------------------------------------------
|
|
#define? DEPT_ARP_URL_PUBLISHER http://www.MyUrl.com/See/ME.MMH/
|
|
#define? DEPT_ARP_URL_TECHNICAL_SUPPORT http://www.MyUrl.com/See/ME.MMH/Support
|
|
#define? DEPT_NAME no department
|
|
#define? DEPT_ADDRESS New Zealand
|
|
#define? COMPANY_CONTACT_NAME <$DEPT_NAME>
|
|
#define? COMPANY_CONTACT_NAME_PHONE ;;No phone
|
|
#define? COMPANY_SUMMARY_SCHEMA 110 ;;Minimum v1.1 Installer
|
|
|
|
|
|
|
|
;----------------------------------------------------------------------------
|
|
;--- Override/set some standard defaults ------------------------------------
|
|
;----------------------------------------------------------------------------
|
|
#define? DBG_ALL Y ;;Add MAKEMSI debugging to "console file"
|
|
#define? DBG_SAY_LOCATION call Say2Logs <$DBG_INDENT> || ' ' || time() || ' ' ;;Adding time makes it a bit slower but useful for debugging slow builds...
|
|
#define? COMMONFRAMEWORK_ZIP_SOURCE_FOR_BACKUP N ;;No "insurance" until I bother to install "info zip"...
|
|
#define? DEFAULT_SERVICE_CONTROL_UNINSTALL_EVENTS ;;I think this option is safer than the MAKEMSI default
|
|
#define? DEFAULT_SERVICE_CONTROL_INSTALL_EVENTS ;;I think this option is better
|
|
#define? DEFAULT_FILE_WANT_FILEHASH Y ;;My box can generate MD5 hashes!
|
|
#define? COMPANY_PREPROCESS_LICENCE_FILE Y ;;Default is to preprocess licence files
|
|
#define? MAKEMSI_HTML_EXTENSION hta ;;Default extension (HTML Application - gets around WINXP SP2 issue)
|
|
#define? UISAMPLE_LEFTSIDE_TEXT_FONT_NAME Tahoma
|
|
#define? UISAMPLE_LEFTSIDE_TEXT_FONT_SIZE 8
|
|
#define? UISAMPLE_LEFTSIDE_TEXT_FONT_COLOR &H000000 ;;Black
|
|
#(
|
|
#define? UISAMPLE_LEFTSIDE_TEXT
|
|
#)
|
|
#(
|
|
#define? @VALIDATE_TEXT_FOR_MISSINGDATA ;;Example only as now duplicates exact text as new default value
|
|
This column is not mentioned in the _Validation table.
|
|
Either add the validation data or use the "@validate" parameter
|
|
on the "row" command (or alter its default).
|
|
#)
|
|
|
|
|
|
|
|
;----------------------------------------------------------------------------
|
|
;--- Include MAKEMSI support ------------------------------------------------
|
|
;----------------------------------------------------------------------------
|
|
#include "DEPT.MMH"
|
|
|
|
|
|
;----------------------------------------------------------------------------
|
|
;--- I want to compress any DLL based custom actions generated by MAKEMSI ---
|
|
;----------------------------------------------------------------------------
|
|
<$GetFullBuildTimeFileName RcVar="@@FullUpxExeName" Macro="DENNIS_UPX.EXE" File="upx.exe" MustExist="N">
|
|
#if [@@FullUpxExeName = '']
|
|
;--- If UPX.EXE doesn't exist report an error ---------------------------
|
|
;#error "DLL not being compressed (UPX.EXE not found)" ;;This is also a sample, can't expect users to have "UPX.EXE"...
|
|
#info "DLL custom action code will not be compressed (UPX.EXE not found)"
|
|
#else
|
|
;--- "UPX.EXE" was found ------------------------------------------------
|
|
#(
|
|
;--- Define the macro that MAKEMSI will use as required -------------
|
|
#define+ DLLCA-C_COMPRESS_DLL_COMMAND_LINE ;;Need to OVERRIDE value (we couldn't do it earler or "GetFullBuildTimeFileName" wouldn't exist!)
|
|
|
|
;--- I expect "upx.exe" to be in the "PATH" environment variable ----
|
|
"<??@@FullUpxExeName>" ;;Full name of UPX.EXE (get from "http://upx.sourceforge.net/")
|
|
|
|
;--- I want highest compression -------------------------------------
|
|
--best
|
|
|
|
;--- Backup the DLL as a debugging aid... ---------------------------
|
|
-k
|
|
#)
|
|
#endif
|