@ECHO off
title X86 Service Auto Installer By Nima MirzaAliKhan
echo  		Welcome To
echo 		Service Auto Installer By Nima MirzaAliKhan
echo		.
echo          .
echo          .
echo         .
echo          .
echo          .
echo           .
echo           .
echo         .
echo        .
echo         .		ImenAfzarShaygan Company
echo      .
echo       .   
echo        .  
echo         .
echo         .
echo		.
echo Starting Service and Tiny installer X86...
timeout /t 3
date/t
time /t
echo uninstalling old Tiny if any exist...
echo please press ok for All errors and messages....
net stop "sct"
attrib -r "%windir%\System32\Tiny.ocx"
regsvr32 "%windir%\System32\Tiny.ocx" -U -S
echo uninstalling old PosPrinter if any exist...
attrib -r "%windir%\System32\PosPrinter.ocx"
regsvr32 "%windir%\System32\PosPrinter.ocx" -U -S
echo Placing Tiny And PosPrinter Files...

copy /y "Tiny\" "%windir%\System32\"
echo installing Tiny...
regsvr32 "%windir%\System32\Tiny.ocx" -S
attrib +r "%windir%\System32\Tiny.ocx"
echo installing PosPrinter...
regsvr32 "%windir%\System32\PosPrinter.ocx" -S
attrib +r "%windir%\System32\PosPrinter.ocx"
echo installing MSCOMM32...
regsvr32 "%windir%\System32\MSCOMM32.OCX" -S
attrib +r "%windir%\System32\MSCOMM32.OCX"

echo Service Installer
Tiny\ServiceInstaller.exe
net start "sct"
GOTO exit

:exit
(
cls
echo Service Auto Installer Made By Nima MirzaAliKhan (ImenAfzarShaygan Company)
echo exiting......
timeout /t 10
exit
)
