Jump to content

Recommended Posts

Posted (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=Yes

And here's the start.cmd:

CLS

@ECHO OFF

TITLE Windows XP SP2 - Unattended Installation

ECHO.

ECHO Over the next few minutes you will see automated installations

ECHO of various sofware applications, windows updates, and registry

ECHO tweaks being implemented. The computer will restart automatically

ECHO 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.exe

ECHO.

ECHO Installing Microsoft .NET Framework 1.1 SP1...

START /WAIT %SYSTEMDRIVE%\INSTALL\Hotfixes\dotnet11sp1.exe

ECHO.

ECHO Installing Microsoft .NET Framework 2.0...

START /WAIT %SYSTEMDRIVE%\INSTALL\Hotfixes\dotnet2.exe

ECHO.

ECHO Installing Adobe Reader 7...

START /WAIT %systemdrive%\INSTALL\Applications\AReader\reader705.exe

ECHO.

ECHO Installing Mozilla Firefox 1.5...

START /WAIT %systemdrive%\INSTALL\Applications\Firefox\OWUFFv2.exe

ECHO.

ECHO Installing Flash 8...

START /WAIT %systemdrive%\INSTALL\Applications\Flash\flash_player.exe

ECHO.

ECHO Installing Microsoft Anti-Spyware...

START /WAIT %systemdrive%\INSTALL\Applications\MSSpy\MSpyware.exe /S /v/qn reboot=suppress

ECHO.

ECHO Installing Sun Java 5...

START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Java\jre506.exe

ECHO.

ECHO Installing Lavasoft Ad-Aware SE...

START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\AdAware\adaware.exe /s

ECHO.

ECHO Installing Shockwave Player 10...

START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Shockwave\shockwav.exe /s

ECHO.

ECHO Installing Spyboy Search & Destroy 1.4...

START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Spybot\spybotsd14.exe /verysilent

ECHO.

ECHO Installing Quick Time...

START /WAIT %SYSTEMDRIVE%\INSTALL\Applications\Quicktime\quicktime652.exe

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %SYSTEMDRIVE%\INSTALL

ECHO.

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!"

EXIT

Windows 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 by Captain Obvious

Posted

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 -c

clint

Posted (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 this

ECHO.

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%\INSTALL

EXIT

Edited by Lost Soul
Posted
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 this

ECHO.

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%\INSTALL

EXIT

OMFG!!!

Thank you soooo much! ****, what a moron I am. Been looking at that script too long to see anything like that!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...