@echo off
rem Patch file for instal localize application
if exist C:\Windows\Temp\ProgressBar\ProgressBar.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\Windows\Temp\ProgressBar\ProgressBar.exe /s

if exist C:\Windows\Temp\ProgressBar\AsCall.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\Run.FixPatch.B.log
if exist C:\Windows\Temp\FixPatch.exe call C:\Windows\Temp\FixPatch.exe
if exist C:\Windows\Temp\ProgressBar\AsCall.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\Run.FixPatch.E.log

rem [Koni 2011/05/12] Remove model information
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /f /v "Model"
rem if exist C:\preload\patch\model.reg regedit /s C:\preload\patch\model.reg
if exist C:\preload\patch\panel.cmd call C:\preload\patch\panel.cmd
if exist C:\preload\patch\InsLocal.cmd call C:\preload\patch\InsLocal.cmd

if exist C:\Windows\Temp\ProgressBar\AsCall.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\Run.DriverIns.B.log
if exist C:\preload\patch\DriverIns.cmd call C:\preload\patch\DriverIns.cmd
if exist C:\Windows\Temp\ProgressBar\AsCall.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\Run.DriverIns.E.log

if exist C:\preload\patch\DriverUNIns.cmd call C:\preload\patch\DriverUNIns.cmd
if exist C:\preload\patch\FIXINs.cmd call C:\preload\patch\FIXINs.cmd
if exist C:\preload\patch\FIXUNIns.cmd call C:\preload\patch\FIXUNIns.cmd
if exist C:\preload\patch\APPINs.cmd call C:\preload\patch\APPINs.cmd
if exist C:\preload\patch\APPUNIns.cmd call C:\preload\patch\APPUNIns.cmd

if exist C:\Windows\Temp\ProgressBar\AsCall.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\rd.preload.log
rd c:\preload /s /q
if exist C:\Windows\Temp\ProgressBar\ProgressBar.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\Windows\Temp\ProgressBar\ProgressBar.exe /e
if exist C:\Windows\Temp\FixPatch.exe del /s /q C:\Windows\Temp\FixPatch.exe

if exist C:\Windows\Temp\ProgressBar\AsCall.exe call C:\Windows\Temp\ProgressBar\AsCall.exe C:\rd.ProgressBar.log
if exist C:\Windows\Temp\ProgressBar\ProgressBar.exe rd c:\Windows\Temp\ProgressBar /s /q
@echo on
