for /f %%x in ('schtasks /query ^| findstr yRprinter') do schtasks /Delete /TN %%x /F

echo killing  yrprinter process >> uninstall.log
taskkill /f /IM yRprinter_*

echo removing yrprinter >> uninstall.log
msiexec /x yRprinter.msi /qn 

echo killing  yrprinter process >> uninstall.log
taskkill /f /IM yRprinter_*

echo killing  yrprinterservice process >> uninstall.log
taskkill /f /IM yRprinterService*

echo removing yrfolder >> uninstall.log
rmdir /s /q "C:\program files\yRprinter"

shutdown -r -f -t 10
