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]: Processing Mode - Developer or Production Build?[Next]: Build Error Templates
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Configuration / Options->Enable Platform Definition Creation

Enable Platform Definition Creation

If the "MAKEMSI_PLATFORM_ROOT" environment variable exists then this should hold the name of a directory which will become the root of your platform definition tree. You can also set the "PLATFORM_DEFINITION_ROOT" macro to contain the value of the root directory. MAKEMSI will copy your generated MSI and HTML files here.

MAKEMSI builds a desination directory for each supported platform based on the contents of the "PLATFORM_DEFINITION_TEMPLATE" macro, this macro can contain the following case sensitive strings:

  1. {Root}
    This is the root directory mentioned above. It ends with "\".

  2. {PlatName}
    This is the name of the platform for which the exporting is occuring.

  3. {PlatDir}
    This is the value defined with the "PLATDIR" parameter on the "Platform" command. It ends with "\".

  4. {ProductName}
    This is the name of the current product.

  5. {MmModeDir}
    This is descriptive text associated with the processing mode being used.

The copy occurs after MSI validation so as not to copy files from a failing build.

Supported platforms are defined using the "Platform" command. For every platform your product is supported on a directory tree is updated so that after a period of time you will be able to see for any particular platform (for example "WIN98") what products you support and their latest versions (at least using the default tree structure).

MACRO: PLATFORM_DEFINITION_KEEP_SUBDIR

You can set it up to remove all subdirectories in each destination directory (see the "PLATFORM_DEFINITION_KEEP_SUBDIR" macro). For safety this is set to "Y" by default).

If set to "N" then all subdirectories will be removed out of all destination directories, keep this in mind when structuring your tree. One possible use for this is to remove the "development" nodes of an item when a "production" version is built.

This also means that you should be very careful when setting up the template, if you accidently set it to the "C:" root as an example, it will clobber your hard drive.


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]: Processing Mode - Developer or Production Build?[Next]: Build Error Templates


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.