[Main]
Title=Retrieve More Localized Info
Type=Plugin
Author=FxScrpt, Lancelot, Max_Real QNX, BlueLife, ChrisR
Description=Provides detailed Localization informations of Source and HostOS by using LCID.exe of fxscrpt. Additionaly provides HostOS Utilities.
Credits=fxscrpt for LCID.exe
Version=024
Download_Level=0
Level=1
Selected=True
Mandatory=True
NoWarning=False
Contact=http://TheOven.org
Date=2016.10.30
Depend=
Disable=
Web1=http://gena.cwcodes.net/Projects/Gena/Basic/Build/LocalizedInfoMore.script
WebRootSubSub=Build
CertifiedBy=
Certification=
HistoryNotes01=
History003=fxscrpt - cosmetic changes in [processlcidexe]
History005=Lancelot - bugy fixed at [Test_Lcid_PathToFile]
History006=fxscrpt - Lcid.exe updated - notes: For real OS there are 37 values under HKCU\ControlPanel\International. For PE only 22. I think all missing values are created now by LCIDUtil.
History007=Lancelot - Test_Lcid_PathToFile_Button added
History007=Lancelot - naughtyPE support added
History008=Lancelot - av false positive check added - some quotes removed
History009a=Lancelot - %LocalizeInfoTemp% etc. added to get localization utilities use LCIDutil.exe freely. (ex: autolocalization plugin)
History009b=Lancelot Interface hidden not to scare users who do not know the plugin
History010=Lancelot - syntax not valid fix
History011=Lancelot - %LocalizeLID% added to ease updating some files easly from sourcecd and updates. (mostly xpsp3res.dll)
History012=naughty support removed (naughty updated itsself a lot time before)
History012=Max_Real QNX - implemented pe2/3 support + hostos lcid info also added
History012=Thanks to BlueLife for improving au3 codes
History012=to keep compatibility with pe2/3 projects permanent variable %LocalizeLocale% changed to %DistLang% ( //Set,%LocalizeLocale%,%LocalizeLocale%,PERMANENT)
History012=new %LCIDHostOS% %LCIDHostOSmui% introduced along with other hostos variables (check [ResultsEcho])
History013=%DistLang% is a value for sourcedvd of pe2/3 not pe1, %LocalizeLocale% is back :>.
History013=%DistLangHost% is a value for winnt6x , not 5x, %LocalizeLocaleHostOS% is back :>.
History013=autoit..exe location fixed.
History014=Lancelot checkini lines improved // [ResultsEcho] section fixed&improved to ease log reading
History014=ChrisR mui read bug fixed
History015=Lancelot Standalone plugin for PE1 :>:>. ( get LangID value from HIVESYS.INF )
History016=Lancelot LCIDUtil.exe unupxed to avoid idiot AV companies ;).
History017=Lancelot speed enhancements (again wb bug workaround and round and round....)
History018=Lancelot minor bug fix
History019=Lancelot IniVariables SysType
History020=ChrisR - Following AU3381 updated
History021=ChrisR - FindLangIDNumberPEX new scholl (SYSTEM\ControlSet001\Control\MUI\UILanguages ...) (error with the old method and win8 source en-gb)
History023=Lancelot syntax updated - Date:2016.02.01
History024=Lancelot Added Basic_PluginCache_Extract - Date:2016.10.30

[Interface]
pTextLabel_Introduction1="This plugin provides localization informations like date format, codepage  etc. from your source cd locale info.",1,1,15,26,337,40,9,Bold
pTextLabel_Introduction2="There are no options to set here. :)",1,1,34,73,230,18,9,Bold
HostOSTools_CheckBox="Add HostOS Utilities",0,3,38,183,117,18,False
pWebLabel2="Plugin Page",1,10,338,4,55,18,http://TheOven.org/index.php?board=9
Button_Download=,1,8,403,21,24,24,DownloadXXX,DoubleJDesignRavenna3dArrowDown0016016.bmp,False,False,_DownloadXXX_,False,"__DOWNLOAD Plugin"
Button_Upload=,1,8,403,-1,24,24,UploadXXX,BokehliciaCaptivaSoftwareupload0016016.bmp,False,False,_UploadXXX_,False,"__UPLOAD Plugin (Admins Only)"
Button_CompareEdit=,1,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"

[Variables]
%LanguageTestF%=LanguageTestF
%LCIDUtildir%=%ProjectTemp%\LCIDutil
//--
%LCIDoutputfile%=LcidInfo.ini
%LocalizeInfoMore%=%LCIDUtildir%\%LCIDoutputfile%
//--
%LCIDHostOS%=LcidInfoHostOS.ini
%LocalizeInfoMoreHostOS%=%LCIDUtildir%\%LCIDHostOS%
//--
%LCIDHostOSmui%=LcidInfoHostOSmui.ini
%LocalizeInfoMoreHostOSmui%=%LCIDUtildir%\%LCIDHostOSmui%
//--
%LocalizeInfoTemp%=%LCIDUtildir%\Temp

[Process]
If,ExistFile,%ProjectTemp%\Basic_PluginCache_Extract.ini,Echo,"Basic PluginCache"
If,Not,ExistFile,%ProjectTemp%\Basic_PluginCache_Extract.ini,Run,%ScriptFile%,Process_Normal

[Process_Normal]
Run,%ScriptFile%,Prepare
//--
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeInfoMore,%LocalizeInfoMore%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeInfoMoreHostOS,%LocalizeInfoMoreHostOS%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeInfoMoreHostOSmui,%LocalizeInfoMoreHostOSmui%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeInfoTemp,%LocalizeInfoTemp%
//--
Run,%ScriptFile%,HostOSInfo
If,%OSFamily%,Equal,NT5,Run,%ScriptFile%,PE1FindLangID
Else,Run,%ScriptFile%,FindLangIDNumberPEX
//Message,%LangIDNumber%,Information
//Message,%ProjectInfo%,Information
If,%HostOSTools_CheckBox%,Equal,True,Run,%ScriptFile%,HostOSTools
Run,%ScriptFile%,SourceMoreInfo
Run,%ScriptFile%,ResultsSetPermanent
Run,%ScriptFile%,ResultsEcho

[PE1FindLangID]
//IniRead,%ProjectInfo%,Project,LangID,%LangIDNumber%
Set,%t%,""
IniRead,%ProjectInfo%,Project,LangID,%t%
If,ExistDir,%ProjectTemp%\HiveSysTemp,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%ProjectTemp%\HiveSysTemp#$q"
If,ExistDir,%ProjectTemp%\HiveSysTemp,Echo,"Directory NOT DELETED",WARN
DirMake,%ProjectTemp%\HiveSysTemp
CopyOrExpand,%Source_Win%\HIVESYS.INF,%ProjectTemp%\HiveSysTemp
ShellExecute,Hide,cmd.exe,"/c type #$q%ProjectTemp%\HiveSysTemp\HIVESYS.INF#$q > #$q%ProjectTemp%\HiveSysTemp\HIVESYS_Ansi.INF#$q"
IniRead,%ProjectTemp%\HiveSysTemp\HIVESYS_Ansi.INF,Strings,INSTALL_LANGUAGE,%LangIDNumber%
StrFormat,REPLACE,%LangIDNumber%,#$q,,%LangIDNumber%
If,Not,%t%,Equal,"",If,Not,%t%,Equal,%LangIDNumber%,Echo,"LangID MISMATCH",WARN

[Prepare]
If,ExistDir,%LCIDUtildir%,DirDelete,%LCIDUtildir%
If,Not,EXISTDIR,%LCIDUtildir%,DirMake,%LCIDUtildir%
If,Not,EXISTDIR,%LocalizeInfoTemp%,DirMake,%LocalizeInfoTemp%
ExtractFile,%ScriptFile%,LCIDutil,LCIDutil.exe,%LCIDUtildir%
ExtractFile,%ScriptFile%,LCIDutil,LCIDutil.exe,%LocalizeInfoTemp%
If,ExistFile,%LocalizeInfoMore%,FileDelete,%LocalizeInfoMore%
If,Not,ExistFile,%LCIDUtildir%\LCIDutil.exe,Message,"Your AV makes False Positive flag for LCIDutil.exe - LCIDutil.exe deleted - Disable your AV",Warning
If,Not,ExistFile,%LCIDUtildir%\LCIDutil.exe,Halt,"Your AV makes False Positive flag for LCIDutil.exe - LCIDutil.exe deleted - Disable your AV"

[HostOSInfo_Example_and_Info]
//english XP with no additional mui:
//[infohosos]
//osarc=X64
//oslang=0409
//muilang=0000
//english XP with turkish mui (no info here about muilang):
//[infohosos]
//osarc=X64
//oslang=0409
//muilang=0000
//english w7 with no additional mui:
//[infohosos]
//osarc=X86
//oslang=0409
//muilang=0409
//
//More MUI info:
//ON XP/2K3 - normaly there is no (or minor) mui
//If Mui installed 2 values exists to control mui setting
//HKCU\Control Panel\Desktop,MUILanguagePending
//HKCU\Control Panel\Desktop,MultiUILanguageId
//normally these 2 values are equal, IF end user change his/her mui setting,
// than MUILanguagePending value changed and user asked to re-logon
//  after logon windows change mui settings by reading MUILanguagePending value and set MultiUILanguageId same :).
//   Hence best to read MultiUILanguageId value
//Example values for MUILanguagePending & MultiUILanguageId :
//0000041F
//00000409
//Where are Mui Files on XP/2k3:
//Giving example with installing Turkish mui package to XPx86Enu
//C:\WINDOWS\mui\FALLBACK\041F=====> Main MUI Folder (42MB)
//C:\WINDOWS\Help\MUI\041F==> 21.8MB
//C:\WINDOWS\system32\wbem\MUI\041f (2.75MB , 45 files)
//Minor cosmetic mui's
//C:\WINDOWS\system32\mui\041f --> Here ShellStyle.dll.mui and themeui.dll.mui mui files added along with hhctrlui.dll & tourstart.exe
//C:\WINDOWS\Resources\Themes\Luna\MUI\041F
//C:\WINDOWS\Resources\Themes\Luna\Shell\NormalColor\MUI\041F
//C:\WINDOWS\Resources\Themes\Luna\Shell\Metallic\MUI\041F
//C:\WINDOWS\Resources\Themes\Luna\Shell\Homestead\MUI\041F
//
//On Vista/W7 - There ALWAYS must be mui. (mechanism all changed)
//Value saved in
//HKCU\Control Panel\International,LocaleName
//Example values for LocaleName
//en-US
//tr-TR
//Where are Mui Files on Vista/W7:
//Here mui files always in subfolder of the location of file ;).
//But keep in mind, in case mui file not exists for local mui, there might be one at en-US
//
//
//more more id info http://superuser.com/questions/60918/how-to-use-english-as-a-default-language-for-software-in-windows-xp

[HostOSInfo]
Set,%w%,%LCIDUtildir%\InfoHostOS.au3
FileCreateBlank,%w%
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"#RequireAdmin",Append
TxtAddline,%w%,"IniWrite(#$qInfoHostOSIni.ini#$q,#$qinfohostos#$q,#$qosarch#$q,@OSArch)",Append
TxtAddline,%w%,"IniWrite(#$qInfoHostOSIni.ini#$q,#$qinfohostos#$q,#$qoslang#$q,@OSLang)",Append
TxtAddline,%w%,"IniWrite(#$qInfoHostOSIni.ini#$q,#$qinfohostos#$q,#$qmuilang#$q,@MUILang)",Append
//Here it must be \x86\ ---> %Tools%\x86\AU3381.exe --> to be sure all the time ;).
ShellExecute,Hide,%Tools%\x86\AU3381.exe,"#$q%w%#$q",%LCIDUtildir%
IniRead,%LCIDUtildir%\InfoHostOSIni.ini,infohostos,OSArch,%SysTypeVar%
IniRead,%LCIDUtildir%\InfoHostOSIni.ini,infohostos,oslang,%LangIDNumberHostOS%
IniRead,%LCIDUtildir%\InfoHostOSIni.ini,infohostos,muilang,%LangIDNumberHostOSMui%
//-
Set,%SysType%,%SysTypeVar%
IniWrite,%ProjectDir%\script.project,IniVariables,SysType,%SysType%
//--
Set,%LocalizeLocaleHostOSMui%,
Set,%LocaleNameVar%,
If,ExistRegKey,HKCU,"Control Panel\International",LocaleName,RegRead,HKCU,"Control Panel\International",LocaleName,%LocaleNameVar%
Set,%DistLangHost%,%LocaleNameVar%
IniWrite,%ProjectDir%\script.project,IniVariables,DistLangHost,%DistLangHost%
//--
Set,%MultiUILanguageIdVar%,--
If,ExistRegKey,HKCU,"Control Panel\Desktop",MultiUILanguageId,RegRead,HKCU,"Control Panel\Desktop",MultiUILanguageId,%MultiUILanguageIdVar%
If,Not,%MultiUILanguageIdVar%,Equal,--,StrFormat,LTRIM,%MultiUILanguageIdVar%,4,%LangIDNumberHostOSMui%
//--
//--
// HostOSMoreInfo - oslang:
Shellexecute,Hide,%LCIDUtildir%\LCIDutil.exe,"%LangIDNumberHostOS% #$q%LocalizeInfoMoreHostOS%#$q"
Run,%ScriptFile%,checkini,%LocalizeInfoMoreHostOS%,%LangIDNumberHostOS%
IniRead,%LocalizeInfoMoreHostOS%,Locale,Locale,%LocalizeLocaleHostOS%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeLocaleHostOS,%LocalizeLocaleHostOS%
// HostOSMoreInfo - muilang:
If,Not,%LangIDNumberHostOSMui%,Equal,0000,Begin
Shellexecute,hide,%LCIDUtildir%\LCIDutil.exe,"%LangIDNumberHostOSMui%#$s#$q%LocalizeInfoMoreHostOSmui%#$q"
Run,%ScriptFile%,checkini,%LocalizeInfoMoreHostOSmui%,%LangIDNumberHostOSMui%
IniRead,%LocalizeInfoMoreHostOSmui%,Locale,Locale,%LocalizeLocaleHostOSMui%
End

[FindLangIDNumberPEX]
// Copy system Boot and install hives to %ProjectTemp%\RWHive
If,ExistDir,%ProjectTemp%\RWHive,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%ProjectTemp%\RWHive#$q"
If,ExistDir,%ProjectTemp%\RWHive,Echo,"ProjectTemp\RWHive Folder can not be deleted",Warn
If,ExistDir,%ProjectTemp%\RWHive,Message,"ProjectTemp\RWHive Folder can not be deleted",Error
If,ExistDir,%ProjectTemp%\RWHive,Halt,"ProjectTemp\RWHive Folder can not be deleted"
DirMake,%ProjectTemp%\RWHive
//--
FileCopy,%InstallSRC%\Windows\System32\config\SYSTEM,%ProjectTemp%\RWHive\SYSTEM_ISRC
Set,%w%,%LCIDUtildir%\InfoSourceOS_ISRC.au3
Set,%InfoSourceOSIni%,InfoSourceOS_ISRCini.ini
RegHiveLoad,Tmp_RWHive,%ProjectTemp%\RWHive\SYSTEM_ISRC
Run,%ScriptFile%,FindLangIDNumberPEXau3
// InstallLanguage in addition
RegRead,HKLM,Tmp_RWHive\ControlSet001\Control\Nls\Language,InstallLanguage,%InstallLanguageLCID%
IniWrite,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,InstallLanguageLCID,%InstallLanguageLCID%
RegHiveUnLoad,Tmp_RWHive
IniRead,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,LocaleLCID,%LangIDNumber%
//--
FileCopy,%BootSRC%\Windows\System32\config\SYSTEM,%ProjectTemp%\RWHive\SYSTEM_BSRC
Set,%w%,%LCIDUtildir%\InfoSourceOS_BSRC.au3
Set,%InfoSourceOSIni%,InfoSourceOS_BSRCini.ini
RegHiveLoad,Tmp_RWHive,%ProjectTemp%\RWHive\SYSTEM_BSRC
Run,%ScriptFile%,FindLangIDNumberPEXau3
// InstallLanguage in addition
RegRead,HKLM,Tmp_RWHive\ControlSet001\Control\Nls\Language,InstallLanguage,%InstallLanguageLCID%
IniWrite,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,InstallLanguageLCID,%InstallLanguageLCID%
RegHiveUnLoad,Tmp_RWHive
IniRead,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,LocaleLCID,%LangIDNumberBootSRC%
//--
Shellexecute,hide,%LCIDUtildir%\LCIDutil.exe,"%LangIDNumberBootSRC%#$s#$q%LCIDUtildir%\LcidInfoBootSRC.ini#$q"
If,%LangIDNumber%,Equal,0000,IniRead,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,Fileoslang,%LangIDNumber%
//--
// remove RWHive after all finished without checking
If,ExistDir,%ProjectTemp%\RWHive,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%ProjectTemp%\RWHive#$q"

[FindLangIDNumberPEXau3_Example]
//[infoSourceos]
//LocaleName=en-US
//LocaleLCID=0409
//InstallLanguageLCID=0409

[FindLangIDNumberPEXau3]
FileCreateBlank,%w%
TxtAddline,%w%,"#RequireAdmin",Append
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"$HKLM='HKLM'",Append
TxtAddline,%w%,"If @OSArch='x64' Then $HKLM = 'HKLM64'",Append
TxtAddline,%w%,"If FileExists('%InfoSourceOSIni%') Then FileDelete('%InfoSourceOSIni%')",Append
TxtAddline,%w%,"IniWrite('%InfoSourceOSIni%', 'infoSourceos', 'LocaleName', '')",Append
TxtAddline,%w%,"For $i=1 to 10",Append
TxtAddline,%w%,"	$UILanguages=RegEnumKey($HKLM & '\Tmp_RWHive\ControlSet001\Control\MUI\UILanguages', $i)",Append
TxtAddline,%w%,"  If @error <> 0 then ExitLoop",Append
TxtAddline,%w%,"	IniWrite('%InfoSourceOSIni%', 'infoSourceos', 'LocaleName', $UILanguages)",Append
TxtAddline,%w%,"	$LCID=RegRead($HKLM & '\Tmp_RWHive\ControlSet001\Control\MUI\UILanguages\' & $UILanguages, 'LCID')",Append
TxtAddline,%w%,"	If @error <> 0 then ContinueLoop",Append
TxtAddline,%w%,"	IniWrite('%InfoSourceOSIni%', 'infoSourceos', 'LocaleLCID', StringTrimLeft(Hex(Int($LCID)),4))",Append
TxtAddline,%w%,"	ExitLoop",Append
TxtAddline,%w%,"Next",Append
IniRead,%ProjectDir%\script.project,IniVariables,SysType,%SysType%
ShellExecute,Hide,%Tools%\%SysType%\AU3381.exe,"#$q%w%#$q",%LCIDUtildir%

[SourceMoreInfo]
Shellexecute,hide,%LCIDUtildir%\LCIDutil.exe,"%LangIDNumber%#$s#$q%LocalizeInfoMore%#$q"
Run,%ScriptFile%,checkini,%LocalizeInfoMore%,%LangIDNumber%
//
// LocalizeLID examples: 0409, 0419, 0407 - frequently required for files having that code on cd ex: spru0407.dl_
//--If,%OSFamily%,Equal,NT5,IniRead,%ProjectInfo%,OS,XpRes,%LocalizeLID%
//--Else,IniRead,%LocalizeInfoMore%,Locale,LID,%LocalizeLID%
IniRead,%LocalizeInfoMore%,Locale,LID,%LocalizeLID%
//--
//Set,%tmpTest%,
//Set,%PInfo%,%ProjectInfo%
//IniRead,%PInfo%,TargetPaths,Target,%tmpTest%
//If,%tmpTest%,Equal,"",Set,%PInfo%,%ProjectTemp%\ProjectInfo.ini
//IniRead,%PInfo%,OS,XpRes,%LocalizeLID%
//--
// LocalizeLCID examples: 1033 , 1038 , 1055
IniRead,%LocalizeInfoMore%,Locale,LCID,%LocalizeLCID%
// ShortLanguage examples: ENU, TRK, DEU (update files have these extensions)
IniRead,%LocalizeInfoMore%,Locale,ShortLanguage,%LocalizeExtUpdate%
// LocalizeExtension examples: DE , TR (English source do NOT HAVE LocalizeExtension)
IniRead,%LocalizeInfoMore%,Locale,ISO639Language,%LocalizeExtLocal%
If,%LocalizeExtLocal%,Equal,en,Set,%LocalizeExtLocal%,
//-------------
IniRead,%LocalizeInfoMore%,Locale,ISO639Language,%LocalizeISO639Language%
IniRead,%LocalizeInfoMore%,Locale,ISO3166Country,%LocalizeISO3166Country%
IniRead,%LocalizeInfoMore%,Locale,Locale,%LocalizeLocale%
IniRead,%LocalizeInfoMore%,Locale,CountryCode,%LocalizeCountryCode%
IniRead,%LocalizeInfoMore%,Locale,ShortCountry,%LocalizeCountryShortCountry%

[ResultsSetPermanent]
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeLID,%LocalizeLID%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeLCID,%LocalizeLCID%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeExtUpdate,%LocalizeExtUpdate%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeExtLocal,%LocalizeExtLocal%
//--
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeISO639Language,%LocalizeISO639Language%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeISO3166Country,%LocalizeISO3166Country%
//--
If,%OSFamily%,Equal,NT5,Begin
Set,%DistLang%,""
IniWrite,%ProjectDir%\script.project,IniVariables,DistLang,""
End
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeLocale,%LocalizeLocale%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeCountryCode,%LocalizeCountryCode%
IniWrite,%ProjectDir%\script.project,IniVariables,LocalizeCountryShortCountry,%LocalizeCountryShortCountry%

[ResultsEcho]
Echo,"Position of ini files and ready Lcidutil.exe folder"
Echo,"LocalizeInfoMore===========%LocalizeInfoMore%"
Echo,"LocalizeInfoMoreHostOS=====%LocalizeInfoMoreHostOS%"
Echo,"LocalizeInfoMoreHostOSmui==%LocalizeInfoMoreHostOSmui%"
Echo,"LocalizeInfoTemp===========%LocalizeInfoTemp%"
//--
Echo,"HostOS Information"
Echo,"SysType (HostOS)===========%SysType%"
Echo,"DistLangHost===============%DistLangHost%"
Echo,"LocalizeLocaleHostOS=======%LocalizeLocaleHostOS%"
//--
Echo,"SourceOS Information"
Echo,"DistLang (SourceOS)================================%DistLang%"
Echo,"LocalizeLocale=====================================%LocalizeLocale%"
//--
Echo,"LocalizeLID=================================%LocalizeLID%"
Echo,"LocalizeLCID================================%LocalizeLCID%"
Echo,"LocalizeExtUpdate (Shortlanguage)===========%LocalizeExtUpdate%"
Echo,"LocalizeExtLocal (ISO639Language Reduced)===%LocalizeExtLocal%"
//--
Echo,"LocalizeISO639Language (ISO639Language)============%LocalizeISO639Language%"
Echo,"LocalizeISO3166Country (ISO3166Country)============%LocalizeISO3166Country%"
Echo,"LocalizeCountryCode================================%LocalizeCountryCode%"
Echo,"LocalizeCountryShortCountry (CountryShortCountry)==%LocalizeCountryShortCountry%"

[checkini]
// by fxscrpt
Set,%tmp%,"-"
System,ErrorOff
IniRead,#1,Locale,Locale,%tmp%
If,%tmp%,Equal,"-",Exit,"WARNING WARNING LCID#$s#2#$snot#$ssupported."

[HostOSTools]
If,ExistDir,%ProjectTemp%\HostOSTools,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%ProjectTemp%\HostOSTools#$q"
If,ExistDir,%ProjectTemp%\HostOSTools,Message,"ProjectTemp\HostOSTools Folder can not be deleted",Error
If,ExistDir,%ProjectTemp%\HostOSTools,Halt,"ProjectTemp\HostOSTools Folder can not be deleted"
//-
DirMake,%ProjectTemp%\HostOSTools\%DistLangHost%
If,Not,%DistLangHost%,Equal,en-US,DirMake,%ProjectTemp%\HostOSTools\en-US
//-
Call,HostWindowsDir
FileCreateBlank,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\cmd.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\cmd.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\%DistLangHost%\cmd.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\cmd.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\en-US\cmd.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\cmd.exe.mui#$q",Append
//-
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\cmd.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\cmd.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\%DistLangHost%\cmd.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\cmd.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\en-US\cmd.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\cmd.exe.mui#$q",Append
//-
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\bcdedit.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\bcdedit.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\%DistLangHost%\bcdedit.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\bcdedit.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\en-US\bcdedit.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\bcdedit.exe.mui#$q",Append
//-
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\reg.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\reg.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\%DistLangHost%\reg.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\reg.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\en-US\reg.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\reg.exe.mui#$q",Append
//-
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\reg.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\reg.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\%DistLangHost%\reg.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\reg.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\en-US\reg.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\reg.exe.mui#$q",Append
//-
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\regedit.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\regedit.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\%DistLangHost%\regedit.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\regedit.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\en-US\regedit.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\regedit.exe.mui#$q",Append
//-
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\regedit.exe#$q #$q%ProjectTemp%\HostOSTools#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\regedit.exe#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\%DistLangHost%\regedit.exe.mui#$q #$q%ProjectTemp%\HostOSTools\%DistLangHost%#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\%DistLangHost%\regedit.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"Copy /y #$q%HostWindowsDir%\System32\en-US\regedit.exe.mui#$q #$q%ProjectTemp%\HostOSTools\en-US#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,"attrib.exe -R -S -H #$q%ProjectTemp%\HostOSTools\en-US\regedit.exe.mui#$q",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopy.cmd,Exit,Append
//-
FileCreateBlank,%ProjectTemp%\HostOSTools\1HostOSCopyCMD.au3
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopyCMD.au3,"#NoTrayIcon",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopyCMD.au3,"#RequireAdmin",Append
TxtAddline,%ProjectTemp%\HostOSTools\1HostOSCopyCMD.au3,"RunWait(@ComSpec & #$q /c #$q & '#$q%ProjectTemp%\HostOSTools\1HostOSCopy.cmd#$q', #$q#$q, @SW_HIDE)",Append
//-
IniWrite,%ProjectDir%\script.project,IniVariables,SysType,%SysType%
ShellExecute,Hide,%Tools%\%SysType%\AU3381.exe,"#$q%ProjectTemp%\HostOSTools\1HostOSCopyCMD.au3#$q"
//-
If,Not,ExistFile,%ProjectTemp%\HostOSTools\cmd.exe,Run,%ScriptFile%,HostOSTools_Halt,cmd.exe
If,Not,ExistFile,%ProjectTemp%\HostOSTools\regedit.exe,Run,%ScriptFile%,HostOSTools_Halt,regedit.exe
If,Not,ExistFile,%ProjectTemp%\HostOSTools\reg.exe,Run,%ScriptFile%,HostOSTools_Halt,reg.exe

[HostOSTools_Halt]
Set,%var%,#1
Message,"%var% can not be copied to %ProjectTemp%\HostOSTools",Error
Halt,"%var% can not be copied to %ProjectTemp%\HostOSTools"

[FindLangIDNumberPEX_OldSchool]
Set,%searchfile%,winload.exe.mui
//--
Set,%w%,%LCIDUtildir%\InfoSourceOS_ISRC.au3
Set,%InfoSourceOSIni%,InfoSourceOS_ISRCini.ini
Set,%searchfold%,%InstallSRC%\Windows\System32\Boot
Run,%ScriptFile%,FindLangIDNumberPEXau3_OldSchool
IniRead,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,LocaleLCID,%LangIDNumber%
//--
Set,%w%,%LCIDUtildir%\InfoSourceOS_BSRC.au3
Set,%InfoSourceOSIni%,InfoSourceOS_BSRCini.ini
Set,%searchfold%,%BootSRC%\Windows\System32\Boot
Run,%ScriptFile%,FindLangIDNumberPEXau3_OldSchool
IniRead,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,LocaleLCID,%LangIDNumberBootSRC%
//--
Shellexecute,hide,%LCIDUtildir%\LCIDutil.exe,"%LangIDNumberBootSRC%#$s#$q%LCIDUtildir%\LcidInfoBootSRC.ini#$q"
If,%LangIDNumber%,Equal,0000,IniRead,%LCIDUtildir%\%InfoSourceOSIni%,infoSourceos,Fileoslang,%LangIDNumber%

[FindLangIDNumberPEXau3_OldSchool_Example]
//[infoSourceos]
//Fileoslang=0409
//FullPath=D:\1\3\Program Files\Internet Explorer\en-US\iexplore.exe.mui
//SubFolder=en-US

[FindLangIDNumberPEXau3_OldSchool]
FileCreateBlank,%w%
TxtAddline,%w%,"#RequireAdmin",Append
TxtAddline,%w%,"#NoTrayIcon",Append
TxtAddline,%w%,"",Append
TxtAddline,%w%,"Global $MUI_FILE=_BL_FIND_FILE(#$q%searchfold%#$q)",Append
TxtAddline,%w%,"Global $FileLang=StringStripWS(FileGetVersion($MUI_FILE, #$qDefaultLangCodepage#$q), 3)",Append
TxtAddline,%w%,"$FileLang=StringLeft($FileLang, 4)",Append
TxtAddline,%w%,"If $FileLang=#$q#$q Then $FileLang = #$q0000#$q",Append
TxtAddline,%w%,"IniWrite(#$q%InfoSourceOSIni%#$q, #$qinfoSourceos#$q, #$qLocaleLCID#$q, $FileLang)",Append
TxtAddline,%w%,"IniWrite(#$q%InfoSourceOSIni%#$q, #$qinfoSourceos#$q, #$qFullPath#$q, $MUI_FILE)",Append
TxtAddline,%w%,"",Append
TxtAddline,%w%,"$MUI_FILE=StringLeft($MUI_FILE,StringInStr($MUI_FILE,#$q\#$q,0,-1)-1)",Append
TxtAddline,%w%,"$MUI_FILE=StringTrimLeft($MUI_FILE,StringInStr($MUI_FILE,#$q\#$q,0,-1))",Append
TxtAddline,%w%,"IniWrite(#$q%InfoSourceOSIni%#$q, #$qinfoSourceos#$q, #$qSubFolder#$q, $MUI_FILE)",Append
TxtAddline,%w%,"",Append
TxtAddline,%w%,"Func _BL_FIND_FILE($BL_PATH, $BL_FILE=#$q%searchfile%#$q)",Append
TxtAddline,%w%,"	Local $BL_Found_File",Append
TxtAddline,%w%,"	If Not StringInStr(FileGetAttrib($BL_PATH), #$qD#$q) Then Return -1",Append
TxtAddline,%w%,"	If StringRight($BL_PATH, 1) <> #$q\#$q Then $BL_PATH &=#$q\#$q",Append
TxtAddline,%w%,"	Local $BL_SEARCH=FileFindFirstFile($BL_PATH & #$q*.*#$q), $BL_FND_FILE",Append
TxtAddline,%w%,"	If $BL_SEARCH <> -1 Then",Append
TxtAddline,%w%,"		While 1",Append
TxtAddline,%w%,"			$BL_FND_FILE=FileFindNextFile($BL_SEARCH)",Append
TxtAddline,%w%,"			If @error Then ExitLoop",Append
TxtAddline,%w%,"			If StringInStr(FileGetAttrib($BL_PATH & $BL_FND_FILE), #$qD#$q) Then",Append
TxtAddline,%w%,"				$BL_Found_File=_BL_FIND_FILE($BL_PATH & $BL_FND_FILE)",Append
TxtAddline,%w%,"				If $BL_Found_File <> #$q#$q Then Return $BL_Found_File",Append
TxtAddline,%w%,"			Else",Append
TxtAddline,%w%,"				If $BL_FILE=$BL_FND_FILE Then",Append
TxtAddline,%w%,"					Return $BL_PATH & $BL_FND_FILE",Append
TxtAddline,%w%,"				EndIf",Append
TxtAddline,%w%,"			EndIf",Append
TxtAddline,%w%,"		WEnd",Append
TxtAddline,%w%,"	EndIf",Append
TxtAddline,%w%,"	Return SetError(1, 0, #$q#$q)",Append
TxtAddline,%w%,"EndFunc   ;==>_BL_FIND_FILE",Append
IniRead,%ProjectDir%\script.project,IniVariables,SysType,%SysType%
ShellExecute,Hide,%Tools%\%SysType%\AU3381.exe,"#$q%w%#$q",%LCIDUtildir%

[NOT_USED_BY_PLUGIN_INFO]
//--------------------------------BELOW NOT USED BY PLUGIN-----KEPT FOR FUTURE REFERENCE--(DO NOT DELETE)----
//--------------------------------BELOW NOT USED BY PLUGIN-----KEPT FOR FUTURE REFERENCE--(DO NOT DELETE)----
//--------------------------------BELOW NOT USED BY PLUGIN-----KEPT FOR FUTURE REFERENCE--(DO NOT DELETE)----

[Interface_Hidden]
TestGeneral_Bevel=pBevel2,1,12,15,88,524,212
TestBatch_Bevel=pBevel1,1,12,399,135,135,111
TestLcid_Bevel=pBevel1,1,12,23,135,373,113
Source_FileBox=H:\X13-13875.img_ChineseTra_CD1\,1,13,157,268,268,30,dir
SourceText_TextLabel="Selected source to test",1,1,228,251,120,18,8,Normal
BatchMethod_Button=BatchMethod_Test,1,8,403,139,112,25,process_BatchMethod_Test
LcidMethod_Button="Lcid.exe Method",1,8,29,138,88,25,process_Lcidexemethod_Test
pTextLabel2="Only For Testing Purposes",1,1,192,92,173,22,10,Bold
pTextLabel6="(NO wb072, wb74, wb75)",1,1,372,94,133,18,7,Bold
LcidInfo_TextBox="Enter your LCID info box (ex: 0000041F)",1,0,36,220,198,21,0000041F
TestLcidTakeFromSource_CheckBox="Take LCID info from selected source (Else LCID info taken from box)",1,3,31,168,199,31,False
Open_Lcidoutputfile_CheckBox="Open %LCIDoutputfile%",1,3,241,167,150,18,True
Open_Scriptproject_CheckBox="Open script.project",1,3,241,183,119,18,False
Test_SetPermenant_CheckBox="Set Permenant",1,3,276,200,95,18,False
pTextLabel3="Lcid.exe used to get More Local info by LCID info",1,1,123,141,247,18,8,Normal
pTextLabel4="Common batch commands used to get more local info (limited only 4 values and only for xp/2k3 source)",1,1,406,168,125,70,8,Normal
pTextLabel5="Settings here have NO effect on script process, Check Info on the log to see Test results ",1,1,64,114,435,18,8,Normal
Test_Lcid_PathToFile_Button="Open LCIDoutputfile",1,8,23,260,112,25,Test_Lcid_PathToFile

[Test_Lcid_PathToFile]
System,FILEREDIRECT,OFF
//If,ExistFile,%ProjectTemplates%\ProjectInfo.ini,ShellExecuteex,Hide,cmd.exe,"/C #$q%LocalizeInfoMore%#$q"
If,ExistFile,%LocalizeInfoMore%,ShellExecuteex,Hide,cmd.exe,"/C #$q%LocalizeInfoMore%#$q"
System,FILEREDIRECT,ON

[Test_script_project]
System,FILEREDIRECT,OFF
ShellExecuteex,Hide,cmd.exe,"/C #$q%basedir%\Projects\%ProjectName%\script.project#$q"
System,FILEREDIRECT,ON

[Locale_Example_englishsource]
ISO3166Country=US
ISO639Language=en
Locale=en-us
CountryCode=1
ShortLanguage=ENU
ShortCountry=USA
LCID=1033

[Locale_Example_turkishsource]
ISO3166Country=TR
ISO639Language=tr
Locale=tr-tr
CountryCode=90
ShortLanguage=TRK
ShortCountry=TUR
LCID=1055

[process_Lcidexemethod_Test]
Set,%LocalizeInfoMore%,%LocalizeInfoMore%,PERMANENT
Set,%LangIDNumber%,%LcidInfo_TextBox%
If,%TestLcidTakeFromSource_CheckBox%,Equal,True,Begin
Run,%ScriptFile%,GetFromSourceFileBox
IniRead,%Source_Win%\txtsetup.sif,nls,DefaultLayout,%LangIDNumber%
End
Run,%ScriptFile%,processlcidexe
Run,%ScriptFile%,ResultsEcho
If,%Test_SetPermenant_CheckBox%,Equal,True,Run,%ScriptFile%,ResultsSetPermanent
//--
If,%Open_Lcidoutputfile_CheckBox%,Equal,True,Run,%ScriptFile%,Test_Lcid_PathToFile
If,%Open_Scriptproject_CheckBox%,Equal,True,Run,%ScriptFile%,Test_script_project

[process_BatchMethod_Test]
Run,%ScriptFile%,process_BatchMethod

[process_BatchMethod]
Run,%ScriptFile%,GetFromSourceFileBox
//
//
If,EXISTDIR,%ProjectTemp%\%LanguageTestF%,DirDelete,%ProjectTemp%\%LanguageTestF%
DirMake,%ProjectTemp%\%LanguageTestF%
FileCopy,%Source_Win%\HIVEDEF.INF,%ProjectTemp%\%LanguageTestF%
ShellExecute,Hide,cmd.exe,"/c type #$q%ProjectTemp%\%LanguageTestF%\HIVEDEF.INF#$q > #$q%ProjectTemp%\%LanguageTestF%\HIVEDEF_Ansi.INF#$q"
IniRead,%ProjectTemp%\%LanguageTestF%\HIVEDEF_Ansi.INF,Strings,INTL_SLANGUAGE,%INTL_SLANGUAGE_Ansi_Read%
StrFormat,RTrim,%INTL_SLANGUAGE_Ansi_Read%,1,%INTL_SLANGUAGE_Ansi_ReadRTrim1%
StrFormat,LTrim,%INTL_SLANGUAGE_Ansi_ReadRTrim1%,1,%INTL_SLANGUAGE_Ansi%
If,%INTL_SLANGUAGE_Ansi%,Equal,ES,Set,%INTL_SLANGUAGE_Ansi%,ESN
Set,%LocalizeExtUpdate%,%INTL_SLANGUAGE_Ansi%
//
//
If,%INTL_SLANGUAGE_Ansi%,NotEqual,ENU,Begin
FileCreateBlank,%ProjectTemp%\%LanguageTestF%\DRW.ini
TxtAddLine,%ProjectTemp%\%LanguageTestF%\DRW.ini,[LanguageTestlcid],Append
DirCopy,%Source_Win%\DRW,%ProjectTemp%\%LanguageTestF%
If,ExistDir,%ProjectTemp%\%LanguageTestF%\DRW\1033,DirDelete,%ProjectTemp%\%LanguageTestF%\DRW\1033
ShellExecute,Hide,cmd,"/c for /f #$qdelims=#$q %i in ('dir #$q%ProjectTemp%\%LanguageTestF%\DRW#$q /AD /OG /B') do echo Lcid=%i >> #$q%ProjectTemp%\%LanguageTestF%\DRW.ini#$q"
IniRead,%ProjectTemp%\%LanguageTestF%\DRW.ini,LanguageTestlcid,Lcid,%LcidInfo%
End
Else,Begin
Set,%LcidInfo%,1033
End
SET,%LocalizeLCID%,%LcidInfo%
//
//
If,%INTL_SLANGUAGE_Ansi%,NotEqual,ENU,Begin
DirMake,%ProjectTemp%\%LanguageTestF%\SCRRNTEST
FileCopy,"%Source_Win%\SCRRN*.*",%ProjectTemp%%ProjectTemp%\%LanguageTestF%\SCRRNTEST
FileCreateBlank,%ProjectTemp%\%LanguageTestF%\Scrrn.ini
TxtAddLine,%ProjectTemp%\%LanguageTestF%\Scrrn.ini,[LanguageTestext],Append
FileCopy,"%Source_Win%\SCRRN*.*",%ProjectTemp%\%LanguageTestF%\SCRRNTEST
ShellExecute,Hide,cmd,"/c for /f #$qdelims=#$q %i in ('dir #$q%ProjectTemp%\%LanguageTestF%\SCRRNTEST#$q /B') do echo ext=%i >> #$q%ProjectTemp%\%LanguageTestF%\Scrrn.ini#$q"
IniRead,%ProjectTemp%\%LanguageTestF%\Scrrn.ini,LanguageTestext,ext,%extInfo%
StrFormat,RTrim,%extInfo%,4,%extInfoRTrim4%
StrFormat,LTrim,%extInfoRTrim4%,5,%extInfoFinal%
//Echo,%extInfoFinal%
Set,%LocalizeISO639Language%,%extInfoFinal%
End
Else,Begin
Set,%LocalizeISO639Language%,en
Set,%extInfoFinal%,,
End
Set,%LocalizeExtLocal%,%extInfoFinal%
//
Echo,"LocalizeExtUpdate Shortlanguage %LocalizeExtUpdate%"
Echo,"LocalizeLCID LCID %LocalizeLCID%"
Echo,"LocalizeExtLocal ISO639Language Reduced %LocalizeExtLocal%"
Echo,"LocalizeISO639Language ISO639Language %LocalizeISO639Language%"
//
//Message,"%LocalizeExtUpdate% %LocalizeLCID% %LocalizeExtLocal%",Information
//Message,"%INTL_SLANGUAGE_Ansi% %LcidInfo% %extInfoFinal%",Information
DirDelete,%ProjectTemp%\%LanguageTestF%

[GetFromSourceFileBox]
If,%Source_FileBox%,Equal,,Echo,"no source"
If,%Source_FileBox%,NotEqual,,Begin
StrFormat,RIGHT,%Source_FileBox%,1,%LastLetter%
If,%LastLetter%,EQUAL,\,StrFormat,RTRIM,%Source_FileBox%,1,%Source_FileBox_Selected%
Set,%Source_Win%,%Source_FileBox_Selected%\i386
End

[EncodedFolders]
LCIDUtil

[LCIDUtil]
LCIDUtil.exe=44847,59796

[AuthorEncoded]
localized.gif=1631,2175
Logo=localized.gif

[EncodedFile-AuthorEncoded-localized.gif]
lines=0
0=R0lGODdhUABQAKUAAP///+Pj49vb2/T09Ovr68TExKysrJubm4yMjIODg3R0dHt7e8vKyqOjo2RkZFZWVtTU1JOTk7y8vGxsbLOzs/rdzfvk1vjNtexqGexeAO10LO5/PuxjDf339fnf0f349u53MfCNUvvp3/GUXO1uIfKebPzx6/SzjPGKSvnRufa8nfnWw++ERfKhcO+DP/GaZfW5l/GTV/zv6OtnFvKmfPfFqVZWVgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAUABQAAAG/kCAcEgsGo9IQkAAYUAIyKh0Sq0SBxBDROF4eL8PRMBKLpsBkEgXzAZTzvC4kEBZtO/sBFTOnzISeIFsEwx9hkUDEYKLbAWHhxRrjJMOjo9yingIFG0OBmAIE22Fl2YQCncODQQEqKADDGAHAXZgDnulVAMNdwuWBJJeEUKxXwdCvGALA7lUCHcGRM9gCUPFXsdCgKDNUgdtCqRCEHnMxLJDBKJglt1X22DRV65eCrgA1w/ZQgP0Dw7mkHSocaFPpnhGvn25VSTfvnFs5CFhkSEDDTkF2DiQYERARCMOE4KZELCIhYoZZnSAA6zREYVeHBwJacTfQyIyUGpg6e8B/kcjLb9IJEKziAQ294hcYBFCBJxpX34agfqA5Ex0R/w1aJaR2xECLq8aQ8Lpy4RcQWOOOVK2X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ymOsL+Drfn4qyl3MVQV1RuUQB8HcucQgAf4+hCYGOgwsGxC5/aDlfPSTAjADApkAOSYRG+ESBnnghAb47RKFswZF8jFBaH6TAACRwwo+5Ax89jEkEPsiIBRwgiP+wnDsIIEK5LQIB2+uGB53ICAUo8YdFSAMFneiACNwMixwywBY5pYoogvEIsGjAAsaIBwcgp4Bn1EUAQApggAMgIAEKyKMCFqAnAxQgAGaMYxkGMIAAGHIJAjhkAAgQSEHKEZECiKQkJznJRTbSkUSAJCU3yUlJAvIQQQAAO3ic483JT07MyaxKTdFLz0xjGAUjDIix4ZcvCvr9mZEBAAMMB/imo+oIAQAAAAIAAAAlAAAAFgYAAAAAAAABAAAAAAAAAAAAAAA

[EncodedFile-LCIDUtil-LCIDUtil.exe]
lines=14
[encoded data, 59831 characters]

[DownloadXXX]
Call,DownloadXQ

[UploadXXX]
Call,UploadXMultiQ,,%ProjectDir%\Utils\WebRoots_SE.Script||WebRoot,||Web1

[InterfaceEncoded]
DoubleJDesignRavenna3dArrowDown0016016.bmp=622,830
BokehliciaCaptivaSoftwareupload0016016.bmp=676,902
AmperossQetto2Move0016016.bmp=893,1191

[EncodedFile-InterfaceEncoded-DoubleJDesignRavenna3dArrowDown0016016.bmp]
lines=0
0=eJzNk09Ik2Ecxw06BF2KqG5ih1EgYZZu7+v7vnu3d++2MpelRFHgQZEaJLVIXSxrW4Wauf7Nwha2rQ7dOgT9IQT1EkQHi+hSHfRSUZrMcp389PjSoUib3vrB9/I8fD78fr+Hxwi0LS+yyi6ySWSVyGqRZUUl1rnr1/3vBfy3+TTxkabuAzx4dp+lsu/G31LRXIrjaCmeVjtfpj4v2jH+YQwpWIYc3orctgUptJkT/UcWxc/1rLXYqYpKqGcklEglcns5DuF48uLhPx2TUxOYIRWlU8PZraOdU1GjMsop4RO9+DucfM1NzuvIfctR3Wai9hq4rvrREybOCy608xpqrAqlQzhObiOSbv2Ln8nPsDvsZ33dSoob1mE7XIIsetAvCUePG63TiRpXUE47rJ0MvR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