You are talking about variable/loop area correct? Here is chinx code as I remember it Code: REM Variables 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 "InstallRoot" 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\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B if not defined InstallRoot ( cls & echo Office 2010 VL is not installed... & ping -n 5 127.0.0.1 >nul & goto mainmenu ) Goto:FoundPath ) FOR /F "tokens=2* delims= " %%A IN ('"REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B if not defined InstallRoot ( cls & echo Office 2010 VL is not installed... & ping -n 5 127.0.0.1 >nul & goto mainmenu ) :FoundPath cscript "%InstallRoot%"ospp.vbs /dstatus |FINDSTR /i "KMS_Client" >NUL if %errorlevel% EQU 1 ( cls & echo No office 2010 VL detected... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
Check the end of the line marked in RED and see if your current code contains a space. It seems to. I believe this is what DigitalDNA was referring to.
reagentc is how it boots into RE. IR5 has very very rare problem with placing IR5.bat into system drive/hidden partition then in Re running IR5.bat 95% of the time user figures out why they have RE problem or problem with acronis, truecrypt or something messing with system drive detection and placement of IR5.bat
I just want to say we are all probably learing here at least me...lol So I glad it works for you. IR5 is original now as are IORRT variables re-implemented Testers please test all checks a. Office 2010 VL installed or not b. Office 2010 Retail installed c. XP, Vista installed d. Run as admin e. Installation success with IR5, IORRT So much appreciation for my testers
I'm testing this on the laptop, Windows 7 Ultimate 64-bit and Office 2010 Pro Plus VL 32-bit. a. I installed Office first, so I can't answer this ... b. No Retail available ... c. Windows 7 64-bit only ... d. Admin Check: OK e. IORRT: OK