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]: Batch File Custom Actions[Next]: Create Macro For Adding Files
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Tips and Tricks->Magic Tweeks

Magic Tweeks

This section either needs rewriting or removal.

There are a huge number of ways to tweek MAKEMSI processing, I will never document most of these however you can generally work these out yourself, or ask. It will help if you have read the "Introduction to PPWIZARD" section.

I will add to this list below most tweeks that I use myself and any that I get asked for.

In the headers I provide many hooks for code insertion as well as for the overwriting of defaults. These may be "#ifdef" and "#ifndef" based but I am gradually migrating these to "#define?/#if" based as this is much easier to tweek from a user point of view.

If you see something like:

#define? FRED_SOME_VALUE  TheValue

Then:

  1. This is probably an option
  2. It is probably defined/located in "FRED.MMH"
  3. The value "TheValue" will be set to the PPWIZARD macro if and ONLY if it does not already exist.

If you add (to a "YourName.mmh" BEFORE including "dept.mmh"):

#define FRED_SOME_VALUE  TheValueIWant

Then you will have overriden the value. I do not recommend using a "#define?" command unless you can forsee the need for individual MSI scripts of yours overriding this value (better error validation).

This is demonstrated in the headers "DENNIS.MMH", "dept.mmh", "company.mmh" and other makemsi headers, each overriding some defaults at a lower level.

Note that you may sometimes wish (or need) to modify a value after including the header, use the "#define+" command for this.

These tweeks are much more likely to be modified in a future release than MAKEMSI commands, I do not promise to keep these even though they are documented. If something fails after an upgrade these are probably good first suspects.


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]: Batch File Custom Actions[Next]: Create Macro For Adding Files


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.