@Echo Off
net stop "STI Simulator"
%WinDir%\System32\PAStiSvc.exe /u
del /F %WinDir%\System32\PAStiSvc.exe
copy %WinDir%\PixArt\PAC207\PAStiSvc.exe %WinDir%\System32
copy %WinDir%\PixArt\PAC7311\PAStiSvc.exe %WinDir%\System32
%WinDir%\System32\PAStiSvc.exe /i
reg add "HKLM\System\CurrentControlSet\Services\STI Simulator\PAC207" /v {E5BAEA70-7F2C-49F3-BEC5-BAEDEA26DFB4} /t REG_DWORD /d 0 /f
reg add "HKLM\System\CurrentControlSet\Services\STI Simulator\PAC207" /v {9D4927A8-C814-47F7-BA2D-8A66EE610B23} /t REG_SZ /d "%WinDir%\PixArt\PAC207\AmCap.exe" /f
reg add "HKLM\System\CurrentControlSet\Services\STI Simulator\PAC207" /v {EF852090-1686-450C-8B60-E0EA43CFC531} /t REG_SZ /d "%WinDir%\PixArt\PAC207\PASnap.exe /FN:C:\StiImg.dat /RP:Software\2B9EC021-C823-4f3d-9752-C18522DB7D98\PAC207 /RN:ImageArrived" /f
reg add "HKLM\System\CurrentControlSet\Services\STI Simulator\PAC7311" /v {E5BAEA70-7F2C-49F3-BEC5-BAEDEA26DFB4} /t REG_DWORD /d 0 /f
reg add "HKLM\System\CurrentControlSet\Services\STI Simulator\PAC7311" /v {9D4927A8-C814-47F7-BA2D-8A66EE610B23} /t REG_SZ /d "%WinDir%\PixArt\PAC7311\AmCap.exe" /f
reg add "HKLM\System\CurrentControlSet\Services\STI Simulator\PAC7311" /v {EF852090-1686-450C-8B60-E0EA43CFC531} /t REG_SZ /d "%WinDir%\PixArt\PAC7311\PASnap.exe /FN:C:\PA7311.dat /RP:Software\PixArt\PAC7311 /RN:ImageArrived" /f
net start "STI Simulator"
@Echo On

