Captain Obvious Posted February 17, 2006 Posted February 17, 2006 (edited) Here's my WINNT.SIF:[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes" AutomaticUpdates=yes[unattended] Repartition=Yes UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS WaitForReboot="No" UnattendSwitch="Yes"[GuiUnattended] AdminPassword="XXXX" EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=1 OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1[GuiRunOnce] %systemdrive%\install\start.cmd[userData] ProductKey=XXXXX FullName="Information Systems" OrgName="Ohio Wesleyan University" ComputerName=*[TapiLocation] AreaCode=614[Networking] InstallDefaultComponents=YesAnd here's the start.cmd:CLS@ECHO OFFTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, windows updates, and registryECHO tweaks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"ECHO.ECHO Installing Microsoft Office 2003 SP2...START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Office2003\Office2003.exeECHO.ECHO Installing Microsoft .NET Framework 1.1 SP1...START /WAIT %SYSTEMDRIVE%\INSTALL\Hotfixes\dotnet11sp1.exeECHO.ECHO Installing Microsoft .NET Framework 2.0...START /WAIT %SYSTEMDRIVE%\INSTALL\Hotfixes\dotnet2.exeECHO.ECHO Installing Adobe Reader 7...START /WAIT %systemdrive%\INSTALL\Applications\AReader\reader705.exeECHO.ECHO Installing Mozilla Firefox 1.5...START /WAIT %systemdrive%\INSTALL\Applications\Firefox\OWUFFv2.exeECHO.ECHO Installing Flash 8...START /WAIT %systemdrive%\INSTALL\Applications\Flash\flash_player.exeECHO.ECHO Installing Microsoft Anti-Spyware...START /WAIT %systemdrive%\INSTALL\Applications\MSSpy\MSpyware.exe /S /v/qn reboot=suppressECHO.ECHO Installing Sun Java 5...START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Java\jre506.exeECHO.ECHO Installing Lavasoft Ad-Aware SE...START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\AdAware\adaware.exe /sECHO.ECHO Installing Shockwave Player 10...START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Shockwave\shockwav.exe /sECHO.ECHO Installing Spyboy Search & Destroy 1.4...START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Spybot\spybotsd14.exe /verysilentECHO.ECHO Installing Quick Time...START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Quicktime\quicktime652.exeECHO.ECHO Deleting Temp Installation Files...RD /S /Q %SYSTEMDRIVE%\INSTALLECHO.ECHO Restarting the PC in 1 minute...shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"EXITWindows goes thru all those commands, even deletes the folder at the end, but it doesn't shutdown. While it's installing, the taskbar isn't at the bottom, but the blue background is there so it must be logged in. Edited February 17, 2006 by Captain Obvious
Briar Posted February 17, 2006 Posted February 17, 2006 check your version of shutdown.exe, i had similar problems, and it had to do with the switches i was using behind your command, ie: shutdown.exe -r -f -t 60 -cclint
Captain Obvious Posted February 17, 2006 Author Posted February 17, 2006 No, that's not it. I tried the same command after it fully installed and it shutdown. I think it has to do with the fact that it hasn't fully logged in when using guirunonce
Lost Soul Posted February 17, 2006 Posted February 17, 2006 (edited) if your start.cmd (im assuming this is for cleanup) is in your install directory,, your deleting it, before it has a chance to run the shut down command if your start.cmd is in your install directory then just move the shut down line before the it deletes the install directory like thisECHO.ECHO Restarting the PC in 1 minute...shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %SYSTEMDRIVE%\INSTALLEXIT Edited February 17, 2006 by Lost Soul
Captain Obvious Posted February 22, 2006 Author Posted February 22, 2006 if your start.cmd (im assuming this is for cleanup) is in your install directory,, your deleting it, before it has a chance to run the shut down command if your start.cmd is in your install directory then just move the shut down line before the it deletes the install directory like thisECHO.ECHO Restarting the PC in 1 minute...shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %SYSTEMDRIVE%\INSTALLEXITOMFG!!!Thank you soooo much! ****, what a moron I am. Been looking at that script too long to see anything like that!
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