@echo off @color 0A title IORRT 3.5 REM Variables set InstallRoot= set OfficeArchType= REM Check Office Architecture Type if '%processor_architecture%'=='x86' Set OfficeArchType=32 && Goto:EndArchCheck goto:WOWCheck :WOWCheck 2>nul REG QUERY HKLM\SOFTWARE\Microsoft\Office\14.0\Common | find /i "InstallRoo t" 1>nul IF ERRORLEVEL 1 Set OfficeArchType=WOW && Goto:EndArchCheck Set OfficeArchType=64 :EndArchCheck REM Get Office Installed Path if %OfficeArchType%==WOW ( FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWA RE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v Path') DO SET Instal lRoot=%%B Goto:FoundPath ) FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWA RE\Microsoft\Office\14.0\Common\InstallRoot" /v Path') DO SET InstallRoot=%%B :FoundPath REM Start OSPPSVC (To make sure it is started to prevent strange cases where it doesn't start automatically from failing (XP)) 1>nul 2>nul net start osppsvc :MAINMENU mode con: cols=45 lines=9 CLS echo. echo. echo. InfiniteOfficeRestoreRearmTask (IORRT) echo. echo. A. Install echo. B. Uninstall echo. C. Status echo. D. Exit echo. :CHOOSEACTION set /p userinp= ^ Make set userinp=%userinp:~0,1% if /i "%userinp%"=="A" goto if /i "%userinp%"=="B" goto if /i "%userinp%"=="C" goto if /i "%userinp%"=="D" goto echo.Try Again... GOTO CHOOSEACTION :Install
your selection: Install Uninstall Status Exit
CLS title IORRT 3.5 mode con: cols=45 lines=9 schtasks /query | FINDSTR /I "IORRT" >NUL IF ERRORLEVEL 1 ( echo. ) ELSE ( echo IORRT is already installed... ping -n 4 127.0.0.1 >nul GOTO MAINMENU ) mode con: cols=62 lines=5 title IORRT 3.5 echo Installing IORRT... echo. mkdir "%SystemDrive%\Check" net stop osppsvc >NUL xcopy /cheriky "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform" "% SystemDrive%\Check\Backup\Files\Tokens" >NUL mkdir "%SystemDrive%\Check\Backup\Registry" >NUL reg save "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDrive %\Check\Backup\Registry\OfficeSPPInfo.hiv >NUL net start osppsvc >NUL IF Exist "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform \OSPPREARM.exe" ( "%CommonProgramFiles%\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREAR M.exe" >NUL ) ELSE ( "%commonprogramfiles(x86)%\microsoft shared\OfficeSoftwareProtectionPla tform\OSPPREARM.exe" >NUL ) if errorlevel==0 goto Pass net stop osppsvc >NUL xcopy /cheriky "%SystemDrive%\Check\Backup\Files\Tokens" "%ALLUSERSPROFILE%\Micr osoft\OfficeSoftwareProtectionPlatform" >NUL REG DELETE HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >NUL REG ADD HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform /f >NUL reg restore "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" %SystemDr ive%\Check\Backup\Registry\OfficeSPPInfo.hiv >NUL net start osppsvc >NUL DEL "%ALLUSERSPROFILE%\Microsoft\OfficeSoftwareProtectionPlatform\Backup.hiv" 2> nul SET file=%SystemDrive%\Check IF EXIST %file% attrib -h %file% RD /S /Q %file% cd /d "%InstallRoot%" echo. cscript OSPP.VBS /dstatus | FINDSTR /i "Status" cscript OSPP.VBS /dstatus | FINDSTR /i "Remaining" echo. echo No Rearms Detected... set msg=No rearms detected call :speak "No rearms detected" goto :END :speak echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs" "%~dp0vc.vbs" & del "%~dp0vc.vbs" ping -n 4 127.0.0.1 >nul GOTO MAINMENU :Pass net stop osppsvc >NUL
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.