@echo off&set FileName=%~n0&shift :: ============================================= :: AutoHelp PlugLab Concept: 2006 by Reatogo :: ============================================= :: Help Info: :: ======================= set Routine_Type=1 :: 1=Getting Data 2=Prompts 3=Getting Files 4=Creating Files 5=General set Routine_Vers=1 set Routine_Date=2007-02-15 set RoutineName=IniSetStrings set RoutineAuthor=Siegfried set Using_work_from= set Example_call_1=%%IniSetStrings%% "LANG" "%%LANG%%" set Example_call_2=%%IniSetStrings%% "STARTMENU_GROUP" "560 Image\Symantec Ghost v9" set Example_call_3=%%IniSetStrings%% set text_01=Writes to the [Strings] section of the pluginīs INF. set text_02=. set text_03=Param. 1 = Key set text_04=Param. 2 = Value set text_07=. set text_08=The above example calls for Ghost9.inf whould create the following entries in the Strings section of Ghost9.inf: set text_09=[Strings] set text_10=LANG="EN" set text_11=STARTMENU_GROUP="560 Image\Symantec Ghost v9" set text_12=. set text_13=NOTE: To write to any other file but the pluginīs INF, use the general %%IniSet%% routine. set text_14=%%IniSetStrings%% is a special purpose routine that requires %%INF_NAME%% to be defined. set text_15=. set text_16=The concept is, to prepare a DATs\Static-INF.dat containing everything but the INF-head and do all modifications and localisations using the [Strings] section. Make sure, that you added the Static-INF.dat content with %%Add2INF%% to the pluginīs *.inf BEFORE you use %%IniSetStrings%% set text_17=. set text_18=If called without parameter like in example 3, the following standard batch of calls will be made. This should cover most requirements for localisation/customisation of the entries in StaticINF.dat. set text_19=. set text_20=Required for shortcuts set text_21=- %%IniSetStrings%% "ShortCut_Name" "%%ShortCut_Name%%" set text_22=- %%IniSetStrings%% "StartMenu_Group" "%%StartMenu_Group%%" set text_23=- %%IniSetStrings%% "StartMenu_Sub_Group" "%%SStartMenu_Sub_Group%%" set text_24=. set text_25=Required string replacement in StaticINF set text_26=and for string replacement in %%Reg2INF%% calls set text_31=- %%IniSetStrings%% "ProgStartDRV" "%%ProgStartDRV%%" set text_32=- %%IniSetStrings%% "ProfileDRV" "%%ProfileDRV%%" set text_33=- %%IniSetStrings%% "SysDRV" "%%SysDRV%%" set text_36=- %%IniSetStrings%% "_docsandsettings_" "%%_docsandsettings_%%" set text_37=- %%IniSetStrings%% "_mydocs_" "%%_mydocs_%%" set text_38=- %%IniSetStrings%% "_commondocs_" "%%_commondocs_%%" set text_39=. set text_40=Required for user registration data set text_41=- %%IniSetStrings%% "LIC_No" "%%LIC_No%%" set text_42=- %%IniSetStrings%% "LIC_User" "%%LIC_User%%" :: %%SubDir_Of_MainEXE%% if "%~1" == "GetHelp" goto :EOF echo.&echo %* :: ============================================= if "%INF_NAME%" == "" goto :EOF if not exist "%INF_NAME%" goto :EOF :: if param 2 is empty -> batch run "%APPs%\xFUNCs.exe" "INISET" "%INF_NAME%" "Strings" "%~1" "%~2" "quote" goto :EOF