[main]
Title=Revision Check
Type=Plugin
Author=Galapo, Lancelot
Description='Revision Check' provides updates of project plugins that are updated with Revision number.
Credits=http://TheOven.org
Version=096
Download_Level=0
Level=0
Selected=None
Mandatory=True
NoWarning=False
Contact=http://TheOven.org
Date=2017.11.19
Depend=
Disable=
Web1=http://w7pese.cwcodes.net/Projects/Win7PESE/Build/Revision%20Check.script
Web2=http://gena.cwcodes.net/Projects/Gena/Basic/Revision%20Check.script
CertifiedBy=
Certification=
HistoryNotes01=Plugin Designed to be runned by a Preparation Plugin (Runned by 'PrepPE' on Gena and 'Main Configuration' config.script on Win7PE SE Win8PE SE)
HistoryNotes02=Seperated pluginst better 1) to ease frequent revision updates 2) shorter script.project processing to ease reading log
HistoryNotes03=If,ExistFile,"%ProjectDir%\Build\Revision Check.script",Run,"%ProjectDir%\Build\Revision Check.script",RevisionUpdateOnce,"%ProjectDir%\Build\Revision Check.script"
HistoryNotes04=If,ExistFile,"%ProjectDir%\Basic\Revision Check.script",Run,"%ProjectDir%\Basic\Revision Check.script",RevisionUpdateOnce,"%ProjectDir%\Basic\Revision Check.script"
History057=Lancelot [CANCELLED_GenaStarter]
History071=Lancelot updated v071
History072=Lancelot updated v072
History073=Lancelot updated v073
History074=Lancelot updated v074 - Date:2016.09.19
History075=Lancelot updated v075 - Date:2016.09.21
History076=Lancelot updated v076 - Date:2016.10.03
History077=Lancelot updated v077 - Date:2016.10.06
History078=Lancelot updated v078 - Date:2016.10.07
History079=Lancelot updated v079 - Date:2016.10.12
History080=Lancelot updated v080 - Date:2016.10.21
History081=Lancelot updated v081 - Date:2016.10.31
History082=Lancelot updated v082 - Date:2016.11.06
History083=Lancelot updated v083 - Date:2016.11.06
History084=Lancelot updated v084 - Date:2016.11.06
History085=Lancelot updated v085 - Date:2016.11.08
History086=Lancelot updated v086 - Date:2016.11.08
History087=Lancelot updated v087 - Date:2016.11.11
History088=Lancelot updated v088 - Date:2016.11.19
History089=Lancelot updated v089 - Date:2017.02.11
History090=Lancelot updated v090 - Date:2017.06.25
History091=Lancelot updated v091 - Date:2017.09.14
History092=Lancelot updated v092 - Date:2017.09.14
History093=Lancelot updated v093 - Date:2017.10.18
History094=Lancelot updated v094 - Date:2017.10.18
History095=Lancelot updated v095 - Date:2017.10.27
History096=Lancelot updated v096 - Date:2017.11.19

[Interface]
pButton1="Download Revisions Manually (for tests)",1,8,141,33,214,25,RevisionUpdateOnceB
WebLabel_Plugin="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]

[IniVariables]
MLVersionServer=43
MLRevisionServer=92
xnetworkVersionServer=004
xnetworkRevisionServer=019
GenaStarterVersionServer=1.2.0.0

[Process]
Echo,"Nothing to process Here",WARN

[RevisionUpdateOnceB]
Run,%ScriptFile%,RevisionUpdateOnce

[RevisionUpdateOnce]
If,#1-,Equal,-,If,ExistFile,"%ProjectDir%\Build\Revision Check.script",Set,#1,"%ProjectDir%\Build\Revision Check.script"
If,#1-,Equal,-,If,ExistFile,"%ProjectDir%\Basic\Revision Check.script",Set,#1,"%ProjectDir%\Basic\Revision Check.script"
//--
Echo,"Revision Check ---BEGIN-------------------------------"
IniRead,#1,IniVariables,MLVersionServer,%MLVersionServer%
IniRead,#1,IniVariables,MLRevisionServer,%MLRevisionServer%
IniRead,#1,IniVariables,xnetworkVersionServer,%xnetworkVersionServer%
IniRead,#1,IniVariables,xnetworkRevisionServer,%xnetworkRevisionServer%
IniRead,#1,IniVariables,GenaStarterVersionServer,%GenaStarterVersionServer%
//Set,%MLVersionServer%,42
//Set,%MLRevisionServer%,25
//Set,%xnetworkVersionServer%,4
//Set,%xnetworkRevisionServer%,14
//Set,%GenaStarterVersionServer%,1.2.0.0
//----
If,Not,ExistDir,%ProjectTemp%,DirMake,%ProjectTemp%
//----
Set,%RevisionScript_MLOK%,Yes
IniRead,%api%,Main,Version,%MLVersion%
IniRead,%api%,Main,Revision,%MLRevision%
If,%MLVersion%,Smaller,%MLVersionServer%,Set,%RevisionScript_MLOK%,No
If,%MLVersion%,Equal,%MLVersionServer%,If,%MLRevision%,Smaller,%MLRevisionServer%,Set,%RevisionScript_MLOK%,No
If,%RevisionScript_MLOK%,Equal,No,Begin
Message,"%ProjectName% requires Macro Library to be updated.#$x Download will be attempted from:#$xhttp://gena.cwcodes.net/Projects/Gena/Basic/Build/Macro_Library.script",INFORMATION,10
Call,FileDelete,%ProjectTemp%\Download\Macro_Library.script
Call,FileDelete,%ProjectTemp%\Macro_Library_TEMP.script
FileCopy,%api%,%ProjectTemp%\Macro_Library_TEMP.script
Set,%_Reserve_Api%,%api%
Set,%api%,%ProjectTemp%\Macro_Library_TEMP.script
Echo,"Downloading Macro Library"
Call,Download,%ProjectTemp%\Download\Macro_Library.script,http://gena.cwcodes.net/Projects/Gena/Basic/Build/Macro_Library.script
Set,%api%,%_Reserve_Api%
If,ExistFile,%ProjectTemp%\Download\Macro_Library.script,FileCopy,%ProjectTemp%\Download\Macro_Library.script,%api%
Else,Begin
Message,"%ProjectName% requires Macro Library to be updated but download was not successful.#$x Build cannot continue until Macro Library is updated either with another automatic attempt or manually.",ERROR,10
Halt,"Build cannot proceed until Macro Library is updated."
End
End
//--
If,%ProjectName%,Equal,Gena,Begin
Set,%xnetworkScript%,"%ProjectDir%\Components\Core\1 System\Network\xnetwork.script"
If,ExistFile,%xnetworkScript%,Begin
Set,%RevisionScript_xnetworkOK%,Yes
IniRead,%xnetworkScript%,Main,Version,%xnetworkVersion%
IniRead,%xnetworkScript%,Main,Revision,%xnetworkRevision%
If,%xnetworkVersion%,Smaller,%xnetworkVersionServer%,Set,%RevisionScript_xnetworkOK%,No
If,%xnetworkVersion%,Equal,%xnetworkVersionServer%,If,%xnetworkRevision%,Smaller,%xnetworkRevisionServer%,Set,%RevisionScript_xnetworkOK%,No
If,%RevisionScript_xnetworkOK%,Equal,No,Begin
Call,FileDelete,%ProjectTemp%\xnetwork.script
Message,"%ProjectName% requires xnetwork.script to be updated.#$x Download will be attempted from:#$xhttp://gena.cwcodes.net/Projects/Gena/Components/Core/1 System/Network/xnetwork.script",INFORMATION,10
Echo,"Downloading XNetwork"
Call,Download,%ProjectTemp%\Download\xnetwork.script,"http://gena.cwcodes.net/Projects/Gena/Components/Core/1 System/Network/xnetwork.script"
If,ExistFile,%ProjectTemp%\Download\xnetwork.script,FileCopy,%ProjectTemp%\Download\xnetwork.script,%xnetworkScript%
Else,Begin
Message,"xnetwork.script download was not successful.#$xIt is advised to update xnetwork.script with another automatic attempt or manually.",ERROR,10
End
End
End
//[CANCELLED_GenaStarter]
End
//--
Echo,"Revision Check ---END---------------------------------"

[CANCELLED_GenaStarter]
Set,%GenaStarterToolsEXE%,"%Tools%\WinBuilder077RC2 Starter.exe"
Set,%GenaStarterBaseEXE%,"%BaseDir%\WinBuilder077RC2 Starter.exe"
Set,%GenaStarterToolsOK%,Yes
Set,%GenaStarterBaseOK%,Yes
Retrieve,FILEVERSION,%GenaStarterToolsEXE%,%GenaStarterToolsEXEVersion%
Retrieve,FILEVERSION,%GenaStarterBaseEXE%,%GenaStarterBaseEXEVersion%
Call,CompareVersions,%GenaStarterToolsEXEVersion%,%GenaStarterVersionServer%
If,%CompareVersions%,Equal,Smaller,Set,%GenaStarterToolsOK%,No
If,%GenaStarterToolsOK%,Equal,No,Begin
If,ExistFile,%GenaStarterToolsEXE%,FileDelete,%GenaStarterToolsEXE%
Message,"%ProjectName% requires %GenaStarterToolsEXE% to be updated.#$x Download will be attempted from:#$xhttp://gena.cwcodes.net/Projects/Tools/Gena/WinBuilder077RC2 Starter.exe",INFORMATION,10
If,ExistFile,"%ProjectTemp%\WinBuilder077RC2 Starter.exe",FileCopy,"%ProjectTemp%\WinBuilder077RC2 Starter.exe",%GenaStarterToolsEXE%
Else,Begin
Message,"%GenaStarterToolsEXE% download was not successful.#$xIt is advised to update %GenaStarterToolsEXE% with another automatic attempt or manually.",ERROR,10
End
End
Call,CompareVersions,%GenaStarterBaseEXEVersion%,%GenaStarterToolsEXEVersion%
If,%CompareVersions%,Equal,Smaller,Set,%GenaStarterBaseOK%,No
If,%GenaStarterBaseOK%,Equal,No,Begin
If,RUNS,%GenaStarterBaseEXE%,Begin
Message,"%ProjectName% requires %GenaStarterBaseEXE% to be updated.#$xUpdate will be attempted by copying %GenaStarterToolsEXE%.#$xPlease restart %GenaStarterBaseEXE% once complete.",INFORMATION,15
StrFormat,FILENAME,%GenaStarterBaseEXE%,%GenaStarterBaseEXEFilename%
ShellExecute,Hide,taskkill.exe,"/f /im #$q%GenaStarterBaseEXEFilename%#$q"
FileDelete,%GenaStarterBaseEXE%
FileCopy,%GenaStarterToolsEXE%,%GenaStarterBaseEXE%
Halt,"%GenaStarterBaseEXE% updated. Please restart process."
End
Else,Begin
FileDelete,%GenaStarterBaseEXE%
FileCopy,%GenaStarterToolsEXE%,%GenaStarterBaseEXE%
If,%version%,Smaller,80,Begin
Message,"%ProjectName% requires %GenaStarterBaseEXE% to be updated.#$x Update will be attempted by copying %GenaStarterToolsEXE%.#$x Please restart %GenaStarterBaseEXE% once complete.",INFORMATION,10
End
End
End

[AuthorEncoded]
IcojamBlueBitsDocumentblue0048048.ico=4312,5750
Logo=IcojamBlueBitsDocumentblue0048048.ico

[EncodedFile-AuthorEncoded-IcojamBlueBitsDocumentblue0048048.ico]
lines=1
[encoded data, 5754 characters]

[DownloadXXX]
Call,DownloadXQ

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

[Settings_Default]
IniWrite,%ScriptFile%,Main,Level,0

[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+DucfM1NzuvIfctR3Wai9hq4rvrREybOCy608xpqrAqlQzhObiOSbv2Ln8nPsDvsZ33dSoob1mE7XIIsetAvCUePG63TiRpXUE47rJ0MvRz8wzH9fZqR0SHSj1LUhn2s8a6gMi7hTm7HddmLftHA2aVT2mJjY3Mx7naJ/I/8vHN0Zc5avKNLw+gP4O7bgeuKD73XQyDqI5QM8ur96IJ7jKUiFi8nDDwDezBuCsf1amsnA4Opgm8Y7jtu8UrSj3lnL+btOjypXRg3dpIdThfkjyWCFu9M1eC7tx/vXeFIC8etWjKL4IPdTRZfFqtAvua1PJ5sPWamnuxIpiD/9Plj4ukIh3oaqGk3KG+0sWHfWhp7DvJm7PWS/9FcZmdnF+R+AlbU23p4nNNyyS9Nykn1ckktzkzPC0osS83LSzROcSwqyi93yS/PMzAwNAMivaTcAoZRMPxAGQuEZmPCLu9y8YwcAxMAHjMRfb+2diEBAAAAAgAAAEQAAAAGAgAAAAAAAAEAAAAAAAAAAAAAAA

[EncodedFile-InterfaceEncoded-BokehliciaCaptivaSoftwareupload0016016.bmp]
lines=0
0=eJytU21LWmEYbrAfsP0De4H2pRcq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