Haynes Posted March 24, 2006 Posted March 24, 2006 I have a batch file that runs directly after the windows installation (GUIRUNONCE) that installs all my additional software (Office, Java, Messengers, AntiVirus, Powertoys etc.)I recently added IE7 Beta 2 to the long list of software to be added. I use the /quiet /passive /norestart switches to install IE7.But, towards the end of the IE7 install, I get the error above. however, IE7 is installed and runs correctly.NOTE: the PC has not been restarted since the WINDOWS installation at this point. The SHUTDOWN that you'll see towards the back is the last command of my batch file. Any ways to prevent this error? As I said, even with the error, the PC is restarted shortly after and IE runs flawlessly as far as I can tell.Below is my entire "OEMPreInstall.bat"@echo offrem Modified March 21, 2006title Windows XP Professional Setupcolor 9fecho.echo. Installing Office 2003 - This might take several minutes to completeStart /wait %systemdrive%\OemPreinstall\Office\SETUP.EXE TRANSFORMS=PRO11.MST /qnecho. done!clsecho.echo. Initializing Office '03 updates - This may take a minute or twoStart /min /wait %systemdrive%\OemPreinstall\Office\updates\updates.batecho. done!clsecho.echo. Installing Microsoft Windows Media Player 10Start /wait %systemdrive%\OemPreinstall\mpsetupedp.msiecho. done!clsecho.echo. Security Update for Windows Media Player 10 for Windows XP (KB911565)Start /wait %systemdrive%\OemPreinstall\KB911565.exe /qecho. done!clsecho.echo. Installing Microsoft .NET Framework 1.1Start /wait %systemdrive%\OemPreinstall\dotnetfx\netfx.msi /qnecho. done!clsecho.echo. Installing Microsoft .NET Framework 2.0Start /wait %systemdrive%\OemPreinstall\dotnetfx.exe /q:a /c:"install /l /q"echo. done!clsecho.echo. Installing HighMAT CD Writing WizardStart /wait %systemdrive%\OemPreinstall\HMTCD.exe /qnecho. done!clsrem echo.rem echo. software update for Base Smart Card Cryptographic Service Providerrem Start /wait %systemdrive%\OemPreinstall\KB909520.exe /qrem echo. done!rem clsecho.echo. Installing Microsoft PowerToys for Windows XP - This may take a minute or twoStart /min /wait %systemdrive%\OemPreinstall\PowerToys\PowerToys.batecho. done!clsecho.echo. Installing Microsoft Calculator PlusStart /wait %systemdrive%\OemPreinstall\CalcPlus.msi /qnecho. done!clsecho.echo. Installing update for WMDRM-enabled playersStart /wait %systemdrive%\OemPreinstall\KB902344.exe /qecho. done!clsecho.echo. Installing Windows Media Connect 2.0Start /wait %systemdrive%\OemPreinstall\wmcsetup.exe /qecho. done!clsecho.echo. Installing Adobe Reader 7.0.5Start /wait %systemdrive%\OemPreinstall\Adobe\Adobe.msi /qnecho. done!clsecho.echo. Installing Shockwave Player 10Start /wait %systemdrive%\OemPreinstall\Shockwave_Installer_Full.exe /Secho. done!taskkill /f /im iexplore.execlsecho.echo. Installing MSN Messenger 7.5.036Start /wait %systemdrive%\OemPreinstall\MsnMsgs.msi /qnecho. done!clsecho.echo. Installing Yahoo! Messenger with Voice (7,0,2,120)Start /wait %systemdrive%\OemPreinstall\ymsgr7us.exe /Secho. done!taskkill /f /im ypager.execlsecho.echo. Installing Java Runtime Environment 5.0 Update 6start /w %systemdrive%\OemPreinstall\jre-1_5_0_06-windows-i586-p.exe /s /v"/qn ADDLOCAL=ALL IEXPLORER=1 REBOOT=Suppress WEBSTARTICON=0echo. done!clsecho.echo. Installing Symantec AntiVirus 10.0 Corporate EditionStart /wait %systemdrive%\OemPreinstall\AntiVirus\AntiVirus.msi ENABLEAUTOPROTECT=1 RUNLIVEUPDATE=0 /qnecho. done!clsecho.echo. Updating Virus Protection Files -Release Date: March 22, 2006-Start /wait %systemdrive%\OemPreinstall\definitions.exe /qecho. done!clsecho.echo. Installing QuickTime 7Start /wait %systemdrive%\OemPreinstall\QuickTime\QuickTimeInstaller.exe /secho. done!clsecho.echo. Installing Internet Explorer 7 Beta 2 Preview - released on March 20, 2006Start /wait %systemdrive%\OemPreinstall\IE7B2P.exe /quiet /passive /norestartecho. done!clsecho.echo. Disable Balloon Tips - Remove Messengers from Startup - disable third-party tool bandsStart /wait reg import %systemdrive%\OemPreinstall\Registry.regecho. done!clsecho.echo. Remove Yahoo! Messenger - QuickTime Desktop iconsdel "C:\Documents and Settings\All Users\Desktop\*.*" /qecho. done!clsecho.echo. Restarting computer...shutdown -r -f -t 90 -c "restart was planned"exit
Sanjay Posted March 24, 2006 Posted March 24, 2006 I am just wondering how does IE7 beta 2 install in an unattended cd/dvd. I thought it needed to validate Windows before the installer would run, so how would it validate in an unattended cd/dvd?
rajesh.kumar Posted March 26, 2006 Posted March 26, 2006 when i included the same switch for ie7b2 in runonceex, it never installed coz it needs wga checked.when i included the same switch for ie7b2 in runonceex, it never installed coz it needs wga checked. is there other ways to bypass the check and do unattended install?
Haynes Posted March 29, 2006 Author Posted March 29, 2006 As far as the validation, i'm not sure - I do however have internet connectivity when I run the unattended DVD.Maybe validation is confirmed without my knowledge - I use a volume license copy - maybe this makes the difference?I do not know if the error above has anything to do with validation, as I said earlier, even though I receive the error, Internet explorer runs fine. I don't think the initial installation is interrupted. I belive if the pc was restarted before the installation I would not get the error.Which reminds me of a question I have been wondering about:Is there a way to run installations (batch files) after the first restart or maybe a 2nd or 3rd?
Sanjay Posted March 31, 2006 Posted March 31, 2006 Is there a way to run installations (batch files) after the first restart or maybe a 2nd or 3rd?I have never tried this but using simple logic I presume it should work, but then again you never know. On your unattended CD Make a folder called 'restart' in '$OEM$\$1\Restart' and place all the programs you want installed after the 1st restart into this folder. Make a command file and name it 'restart.cmd' and place it in '$OEM$\$1\Restart' then add the following to your 'start.cmd':ECHO.ECHO. Placing 'restart.cmd' in the startup folder to be run on 1st restart.COPY "%systemdrive%\Restart\restart.cmd" "%USERPROFILE%\Start Menu\Programs\Startup"The contents of 'restart.cmd' will ofcourse be dependent on what you want installed on 1st restart and at the end of 'restart.cmd' add the following: ECHO.ECHO Deleting 1st Restart Installation Files...RD /S /Q %systemdrive%\RestartI hope this works.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now