Jump to content

Recommended Posts

Posted

I was just doing another test of my unattended disc when I came across a problem I've never had before. Just at the end of my main.cmd and either before or as hotfixes.cmd was starting, I got an error about not finding the path c:\in (should've wrote that down I guess :)). The batch process then aborted, dumping me to the desktop. I've checked my batch files and my winnt.sif file, but nothing seems wrong. I haven't even touched the hotfixes.cmd since I first made it and it has never been a problem and the only thing I've done to the end of main.cmd was to remove a line adding some settings to the registry. In any case, here are winnt.sif, main.cmd, and hotfixes.cmd for you to look over.

;SetupMgrTag
[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   Repartition=No
   OemPreinstall=Yes
   TargetPath=\WINDOWS
   AutoActivate=No
   WaitForReboot=No
   UnattendSwitch=yes
   OemPnPDriversPath="Drivers\Catalyst3_6\2KXP_INF;Drivers\Nforce2\AudioDrv;drivers\Nforce2\AudioUtl;drivers\Nforce2\Ethernet;drivers\Nforce2\GART;drivers\Nforce2\IDE;drivers\Nforce2\MemCtl;drivers\Nforce2\SMBus;drivers\Nforce2\USB;drivers\TV_Tuner"
   DriverSigningPolicy=Ignore

[GuiUnattended]
   AdminPassword=c665c788563ce4414549de11f7e8ccc2064c23bfcf039474f84ac63d4402d4db
   EncryptedAdminPassword=Yes
   OEMSkipRegional=1
   TimeZone=40
   OemSkipWelcome=1
   ProfilesDir="D:\Documents and Settings"

[UserData]
   ProductKey=key
   FullName="Richard Bach"
   OrgName=""
   ComputerName=SHODAN

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=85

[RegionalSettings]
   LanguageGroup=1
   Language=00000409

[Shell]
   DefaultStartPanelOff = No

[Identification]
   JoinWorkgroup=HOME

[Networking]
   InstallDefaultComponents=Yes

[Components]
   AccessOpt = Off
   AutoUpdate = Off
   dialer = off
   iis_webadmin = off
   media_clips = off
   OEAccess = off
   Paint = off
   rec = off
   templates = off
   msmsgs = off
   msnexplr=off
   freecell=off
   hearts=off
   minesweeper=off
   pinball=off
   solitaire=off
   spider=off
   zonegames=off

[GuiRunOnce]
   %systemdrive%\install\main.cmd
   %systemdrive%\install\hotfixes.cmd
   %systemdrive%\install\applications.cmd

main.cmd:

CLS
@echo off
ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications, windows updates, and registry
ECHO hacks being implemented. The computer will restart automatically
ECHO once the whole process has finished!

ECHO.
ECHO Ejecting CD-ROM Drives...
start cd_eject.vbs

ECHO.
ECHO Removing Wallpapers...
DEL "%systemroot%\Blue Lace 16.bmp"
DEL "%systemroot%\Coffee Bean.bmp"
DEL "%systemroot%\FeatherTexture.bmp"
DEL "%systemroot%\Gone Fishing.bmp"
DEL "%systemroot%\Greenstone.bmp"
DEL "%systemroot%\Prairie Wind.bmp"
DEL "%systemroot%\Rhododendron.bmp"
DEL "%systemroot%\River Sumida.bmp"
DEL "%systemroot%\Santa Fe Stucco.bmp"
DEL "%systemroot%\Soap Bubbles.bmp"
DEL "%systemroot%\Zapotec.bmp"
DEL "%systemroot%\Web\Wallpaper\Crystal.jpg"
DEL "%systemroot%\Web\Wallpaper\Friend.jpg"
DEL "%systemroot%\Web\Wallpaper\Home.jpg"
DEL "%systemroot%\Web\Wallpaper\Moon flower.jpg"
DEL "%systemroot%\Web\Wallpaper\Peace.jpg"
DEL "%systemroot%\Web\Wallpaper\Power.jpg"
DEL "%systemroot%\Web\Wallpaper\Purple flower.jpg"
DEL "%systemroot%\Web\Wallpaper\Radiance.jpg"
DEL "%systemroot%\Web\Wallpaper\Ripple.jpg"
DEL "%systemroot%\Web\Wallpaper\Stonehenge.jpg"
DEL "%systemroot%\Web\Wallpaper\Vortec space.jpg"
DEL "%systemroot%\Web\Wallpaper\Ascent.jpg"
DEL "%systemroot%\Web\Wallpaper\Autumn.jpg"
DEL "%systemroot%\Web\Wallpaper\Azul.jpg"
DEL "%systemroot%\Web\Wallpaper\Follow.jpg"
DEL "%systemroot%\Web\Wallpaper\Red moon desert.jpg"
DEL "%systemroot%\Web\Wallpaper\Tulips.jpg"
DEL "%systemroot%\Web\Wallpaper\Wind.jpg"
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"
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"
ECHO.
ECHO Removing Screensavers...
DEL "%systemroot%\system32\dllcache\scrnsave.scr"
DEL "%systemroot%\system32\dllcache\ss3dfo.scr"
DEL "%systemroot%\system32\dllcache\ssbezier.scr"
DEL "%systemroot%\system32\dllcache\ssflwbox.scr"
DEL "%systemroot%\system32\dllcache\ssmarque.scr"
DEL "%systemroot%\system32\dllcache\ssmypics.scr"
DEL "%systemroot%\system32\dllcache\ssmyst.scr"
DEL "%systemroot%\system32\dllcache\sspipes.scr"
DEL "%systemroot%\system32\dllcache\ssstars.scr"
DEL "%systemroot%\system32\dllcache\sstext3d.scr"
DEL "%systemroot%\system32\scrnsave.scr"
DEL "%systemroot%\system32\ss3dfo.scr"
DEL "%systemroot%\system32\ssbezier.scr"
DEL "%systemroot%\system32\ssflwbox.scr"
DEL "%systemroot%\system32\ssmarque.scr"
DEL "%systemroot%\system32\ssmypics.scr"
DEL "%systemroot%\system32\ssmyst.scr"
DEL "%systemroot%\system32\sspipes.scr"
DEL "%systemroot%\system32\ssstars.scr"
DEL "%systemroot%\system32\sstext3d.scr"

ECHO.
ECHO Restoring Windows Activation State...
COPY "%systemdrive%\Install\Activate\wpa.dbl" "%systemroot%\system32"
ECHO Finished Restoring Windows Activation State!
ECHO Windows Should be Activated!

ECHO.
ECHO Copying patched UXTheme.dll...
REN %systemroot%\System32\dllcache\uxtheme.dll uxtheme.old
COPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\uxtheme.dll uxtheme.old
COPY "%systemdrive%\Install\uxtheme\uxtheme.dll" "%systemroot%\System32\"
ECHO.
ECHO Installing ASPI 4.6
ECHO Please wait...
start /wait %systemdrive%\install\ASPI\INSTASPI.BAT
ECHO.
ECHO Installing DirectX 9.0b
ECHO Please wait...
start /wait %systemdrive%\install\DirectX9b\dxsetup.exe /opk
start pskill.exe wscript.exe
ECHO.
ECHO Installing Windows Media Player 9
ECHO Please wait...
start /wait %systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N
ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %systemdrive%\install\RegTweaks.reg
ECHO.
EXIT

(BTW, I'm aware of an error in the beginning where the "useless shortcuts" are deleted. That will be taken care of once I decide where exactly to put the Documents and Settings directory and what to call it.)

Finally, the hotfixes.cmd:

CLS
@echo off
ECHO.
ECHO Installing Windows Update Hotfixes
ECHO.
ECHO Installing Q329115...
start /wait %systemdrive%\install\Hotfixes\Q329115_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q329048...
start /wait %systemdrive%\install\Hotfixes\Q329048_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q323255...
start /wait %systemdrive%\install\Hotfixes\Q323255_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q329834...
start /wait %systemdrive%\install\Hotfixes\Q329834_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q329170...
start /wait %systemdrive%\install\Hotfixes\Q329170_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q328310...
start /wait %systemdrive%\install\Hotfixes\Q328310_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q329390...
start /wait %systemdrive%\install\Hotfixes\Q329390_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q810833...
start /wait %systemdrive%\install\Hotfixes\Q810833_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q810577...
start /wait %systemdrive%\install\Hotfixes\Q810577_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q331953...
start /wait %systemdrive%\install\Hotfixes\Q331953_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q814995...
start /wait %systemdrive%\install\Hotfixes\Q814995_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q811630...
start /wait %systemdrive%\install\Hotfixes\Q811630_WXP_SP2_x86_ENU.exe  /Q /M /Z
ECHO.
ECHO Installing JScript 5.6...
start /wait %systemdrive%\install\Hotfixes\js56nen.exe /Q:A /R:N
ECHO.
ECHO Installing Q810565...
start /wait %systemdrive%\install\Hotfixes\Q810565_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q814033...
start /wait %systemdrive%\install\Hotfixes\Q814033_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q815021...
start /wait %systemdrive%\install\Hotfixes\Q815021_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q811493...
start /wait %systemdrive%\install\Hotfixes\Q811493_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q819639...
start /wait %systemdrive%\install\Hotfixes\WindowsMedia9-KB819639-x86-ENU.exe /Q:A /R:N
ECHO.
ECHO Installing Q817606...
start /wait %systemdrive%\install\Hotfixes\Q817606_WXP_SP2_x86_ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q823559...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB823559-x86-ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q823980...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB823980-x86-ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q821557...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB821557-x86-ENU.exe /Q /M /Z
ECHO.
ECHO Installing Q329441...
start /wait %systemdrive%\install\Hotfixes\Q329441_WXP_SP2_x86_ENU /Q /M /Z
ECHO.
ECHO Installing Q817287...
start /wait %systemdrive%\install\Hotfixes\Q817287.exe /Q:A /R:N
ECHO.
ECHO Installing Q821253 Windows Error Reporting Update...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB821253-x86-ENU.exe /Q /M /Z
ECHO.
ECHO Installing June 2003, Cumulative Patch for IE6...
start /wait %systemdrive%\install\Hotfixes\q818529.exe /Q:A /R:N
ECHO.
ECHO Installing April 2003, Cumulative Patch for OE6...
start /wait %systemdrive%\install\Hotfixes\q330994.exe /Q:A /R:N
ECHO.
EXIT

I've also got another problem. As you can see in main.cmd, I tried copying wpa.dbl to activate Windows but doing that alone didn't work. Do I need to set AutoActivate in winnt.sif to Yes?

Oh, and I've got one other tiny little problem. Setting BitsPerPixel and Vrefresh in winnt.sif doesn't do anything. Actually, to be more specific, it doesn't do anything to the primary display. The Settings tab in Display properties lists two displays (because my Radeon 9500 supports dual monitors I guess) even though only one is connected. The first is listed as "Plug and Play Monitor on Radeon 9500" and the second is listed as "[Default Monitor] on Radeon 9500 - Secondary" At any rate, the vrefresh and bitsperpixel settings get set properly on the secondary display but remain at 16 bit and 60Hz on the primary. Its really annoying and I have no idea what to do about it.


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