%IniSetStrings% Show Routine Code Author: Siegfried
Version: 1 - Date: 2007-02-15
Example calls:
%IniSetStrings% "LANG" "%LANG%"
%IniSetStrings% "STARTMENU_GROUP" "560 Image\Symantec Ghost v9"
%IniSetStrings%
Remarks:
Writes to the [Strings] section of the pluginīs INF.
Param. 1 = Key
Param. 2 = Value
The above example calls for Ghost9.inf whould create the following entries in the Strings section of Ghost9.inf:
[Strings]
LANG="EN"
STARTMENU_GROUP="560 Image\Symantec Ghost v9"
NOTE: To write to any other file but the pluginīs INF, use the general %IniSet% routine.
%IniSetStrings% is a special purpose routine that requires %INF_NAME% to be defined.
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%
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.
Required for shortcuts
- %IniSetStrings% "ShortCut_Name" "%ShortCut_Name%"
- %IniSetStrings% "StartMenu_Group" "%StartMenu_Group%"
- %IniSetStrings% "StartMenu_Sub_Group" "%SStartMenu_Sub_Group%"
Required string replacement in StaticINF
and for string replacement in %Reg2INF% calls
- %IniSetStrings% "ProgStartDRV" "%ProgStartDRV%"
- %IniSetStrings% "ProfileDRV" "%ProfileDRV%"
- %IniSetStrings% "SysDRV" "%SysDRV%"
- %IniSetStrings% "_docsandsettings_" "%_docsandsettings_%"
- %IniSetStrings% "_mydocs_" "%_mydocs_%"
- %IniSetStrings% "_commondocs_" "%_commondocs_%"
Required for user registration data
- %IniSetStrings% "LIC_No" "%LIC_No%"
- %IniSetStrings% "LIC_User" "%LIC_User%"