

[Update1210]

Search,%Var%,FileRec,%Basedir%\Wim\,ok
String,%Count%,Split,%Var%,#$x,0
For,%x%,1,%Count%
    String,%Res%,Split,%var%,#$x,%x%
    StrFormat,%Dir%,PATH,%Res%
    DirRemove,%Dir%\HiveCache,3
    FileDelete,%Dir%\*.*,1
Next

System,CopySection,%Tools%\update.txt,Startup1210,%ProjectDir%\Project.man,Startup
System,CopySection,%Tools%\update.txt,Startup1210,%ProjectDir%\Project.cfg,Startup


[Startup1210]

if,not,%tWinprotect%,=,#$ptWinprotect#$p,then
  message,%tWinprotect%,Question|Livesystem pro
  If,%Exitcode%,=,no,Then
    IniDeleteSection,%Projectdir%\Project.man,Interface,tWinprotect
    System,GetIntLang,%Lng%
    IniDeleteSection,%Projectdir%\Project.man,Interface%Lng%,tWinprotect
  end
end

If,ExistFile,%Tools%\LspUpdateCenter.tmp,then,FileRename,%Tools%\LspUpdateCenter.tmp,%Tools%\LspUpdateCenter.exe

if,%pCheckBox1%,=,true,then,Run,%ProjectDir%\Utils\UpdateCenter.srt,check

Run,%Projectdir%\Project.man,ExitInfo