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]: Ini[Next]: /IniFile
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->IniFile

The "IniFile" Command

This command begins the definition of a set of INI file updates which ends when the "/IniFile" command is encountered.

Note that if you have an existing INI file it could be imported with the "IniImport" command.

Associated commands that you will use are:

  1. IniSection and /IniSection
  2. Ini

The macro takes these parameters:

Main INI Related Options

Please see the "options for commands" section of the manual.

#define? DEFAULT_INI_HOW             ADD_OR_UPDATE      ;;Default for "HOW" parameter
#define? DEFAULT_INI_ROWKEY_PREFIX   Ini                ;;Key prefix for "IniFile" table entry
#define? DEFAULT_INI_DOCO            Y                  ;;"N" = Don't add to doco (by default)
#define? INI_VALUE_NULL_PROPERTY     IniValueIsNull     ;;"" to generate an error message or name of a NON-EXISTING property (so "[property]" evaluates to "")

EXAMPLE

<$Component "INI" Create="Y" Directory_="INSTALLDIR" LM="Y">
   <$IniFile "Dennis.INI" DIR="C:\DBAREIS\PROJECTS\Win32\MakeMsi\OUT">
       <$IniSection "Section1">
           <$Ini "Key11" Value="Value11">
           <$Ini "Key12" Value="Value12">
       <$/IniSection>
       <$IniSection "Section2">
           <$Ini "Key21" Value="Value21">
           <$Ini "Key22" Value="Value22">
       <$/IniSection>
   <$/IniFile>
<$/Component>


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 15 Nov 2008Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Ini[Next]: /IniFile


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday November 15 2008 at 2:05pm
Visit MAKEMSI's Home PageThis external link was OK when tested at 7 Nov 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 15 Nov 2008