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]: DENNIS.MMH[Next]: MAKEMSI_COMPANY_SUPPORT_DIR
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Configuration / Options->Environment Variables (MAKEMSI Configuration)

Environment Variables (MAKEMSI Configuration)

The following environment variables are used (or affect) MAKEMSI:

  1. MAKEMSI_COMPANY_SUPPORT_DIR
  2. MAKEMSI_LOG
  3. MAKEMSI_LOGDIR
  4. MAKEMSI_MINGW
  5. MAKEMSI_MM
  6. MAKEMSI_MM_BEEPS
  7. MAKEMSI_MM_CODEPAGE
  8. MAKEMSI_MM_CONBUFFSIZE
  9. MAKEMSI_MM_PRIORITY
  10. MAKEMSI_MM_ROOTDIR.?
  11. MAKEMSI_MM_SUPPORT_TEXT
  12. MAKEMSI_MSI_TEMPLATE.MSI
  13. MAKEMSI_PLATFORM_ROOT
  14. MAKEMSI_SAMPLES
  15. MAKEMSI_USER_FILES_PATH
  16. MAKEMSI_WILOGUTL_EXE

How To Set Environment Variables

Under XP and WIN2000 you can configure environment variables by following "My ComputerPropertiesAdvancedEnvironment Variables".

The following shows a system environment variable (affects all users) being set:

Note that you may have to logoff and/or restart the computer for the change to take effect.

Setting Environment in WIN95-WINME or Command Prompt

The "SET" command can be used from a command prompt, for example:

SET MAKEMSI_MM_CODEPAGE=1252

In WIN95-WINME you should be able to place set commands in "autoexec.bat".

Reading Environment Variables in Your MAKEMSI Scripts

The details of this are described in the "PPWIZARD" manual, however here is an example of reading an environment variable called "SOURCE_DIR":

<$Files "<??*SOURCE_DIR>\*" DestDir="APPDIR" SUBDIR='TREE'>


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]: DENNIS.MMH[Next]: MAKEMSI_COMPANY_SUPPORT_DIR


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday December 09 2017 at 9:30am
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.