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

The "IniImport" Command

This command is used to import a standard ".ini" file. You can filter out whole sections or particular parts of the INI file and you can change the values, for example you may wish to translate "c:\fred" to "[INSTALLDIR]"...

You can also use the "INI Conversion" explorer option to convert an INI file and manually include all or parts of the generate MAKEMSI script.

This command takes these parameters:

EXAMPLE

;--- Filter INI Import ------------------------------------------------------
#DefineRexx+ 'INIIMPORT_HOOK_SECTION'
    ;--- We don't want all [sections] ---------------------------------------
    if  translate({$SectionVar}) = translate('Microsoft Paradox Driver (*.db ) (32 bit)') then
        {$WantVar} = 'N';
#DefineRexx
#DefineRexx+ 'INIIMPORT_HOOK_KEYVALUE'
    ;--- Drop all "Setup" keys ----------------------------------------------
    if  translate({$KeyVar}) = "SETUP" then
        {$WantVar} = 'N';
    else
    do
        ;--- Change value for "32Bit" to "99" -------------------------------
        if  translate({$KeyVar}) = "32BIT" then
            {$ValueVar} = '99';
    end;
#DefineRexx

;--- Do the actual Import ---------------------------------------------------
<$Component "INI" Directory_="INSTALLDIR" LM="Y">
    <$IniImport "<??*SystemRoot>\ODBCINST.INI" IniFile="NewIni.ini" IniDir="INSTALLDIR">
<$/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]: /IniSection[Next]: JsCa


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