I want to automate my ms office installation 2007 or 2010 running a batch file.
I am thinking having an options menu 1.Office 2007 2.Office2010
When started I want my timer to start..lets say 20secs
if I press in the meantime Option 2 start installing 2010
if left and timeout = 0 start installing 2007
@echo off
timeout /t 20
choice /n /c 2 /m "Press 2 for Office 2010 "
set /a m=2
set /a counter=0
if %counter% ==0 GOTO office2007
if %M%==2 GOTO office2010
:office2010
cd %windir%\system32\office2010.exe
start setup2010.exe
:office2007
cd %windir%\system32\office2007.exe
start setup007.exe
but I think its totally wrong approach
any help?