Examples
Submitted by Alanoll
On this page, you can see examples of the various files used in the making of my CD as well as the winnt.sif file, feel free to use snippets of these commands for your CD as well!
» Winnt.sif
[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes" [Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS FileSystem=* UnattendSwitch="yes" WaitForReboot="No" DriverSigningPolicy=Ignore OemPnPDriversPath="drivers\001_INF;drivers\002_RAID" KeyboardLayout="United Kingdom" [GuiUnattended] AdminPassword=* EncryptedAdminPassword=No OEMSkipRegional=1 TimeZone=85 OemSkipWelcome=1 [UserData] ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX FullName="Aaron" OrgName="Home" ComputerName=COMPUTER1 [Display] BitsPerPel=32 Xresolution=1280 YResolution=1024 Vrefresh=85 [TapiLocation] CountryCode=44 Dialing=Tone AreaCode=01379 [RegionalSettings] LanguageGroup=1 Language=00000809 [Identification] JoinWorkgroup=MSHOME [Networking] InstallDefaultComponents=Yes [Branding] BrandIEUsingUnattended=Yes [URL] Home_Page=http://www.msfn.org [IEPopupBlocker] BlockPopups=No FilterLevel=Low ShowInformationBar=Yes [WindowsFirewall] Profiles = WindowsFirewall.TurnOffFirewall [WindowsFirewall.TurnOffFirewall] Mode = 0 [Components] msmsgs=off msnexplr=off freecell=off hearts=off minesweeper=off pinball=off solitaire=off spider=off zonegames=off [Shell] DefaultStartPanelOff = Yes DefaultThemesOff = Yes [GuiRunOnce] %systemdrive%\install\start.cmd
» svcpack.inf (was used for Windows XP SP1)
[Version] Signature=" NT$" MajorVersion=5 MinorVersion=1 BuildNumber=2600 [SetupData] CatalogSubDir="\i386\svcpack" [ProductCatalogsToInstall] [SetupHotfixesToRun] Q330994.exe /Q:A /R:N JS56NEN.exe /Q:A /R:N mdac.cmd Q823182.exe /Q /N /Z /O Q824105.exe /Q /N /Z /O Q824141.exe /Q /N /Z /O Q825119.exe /Q /N /Z /O Q826939.exe /Q /N /Z /O Q828028.exe /Q /N /Z /O Q828035.exe /Q /N /Z /O Q832894.exe /Q:A /R:N WMP9MM2.exe Q828026.exe /Q /N /Z /O qchain.exe DX9NTopk.exe
» start.cmd (before I personally converted to the RunOnceEx method)
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 Wallpapers and Screensavers... DEL "%systemroot%\*.bmp" DEL "%systemroot%\Web\Wallpaper\*.jpg" DEL "%systemroot%\system32\dllcache\*.scr" DEL "%systemroot%\system32\*.scr" 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 Installing MSN Messenger 6.0.0602 Final ECHO Please wait... start /wait %systemdrive%\install\MSN\MsnMsgs.msi /qn ECHO. ECHO Installing TweakUI 2.10 Powertoy ECHO Please wait... start /wait %systemdrive%\install\Powertoys\TweakUI.msi /qn ECHO. ECHO Installing Task Switcher Powertoy ECHO Please wait... start /wait %systemdrive%\install\PowerToys\TaskswitchPowertoySetup.exe /s /v/qn ECHO. ECHO Applying Registry Tweaks... REGEDIT /S %systemdrive%\install\RegTweaks.reg ECHO. ECHO Deleting ASP.NET User Account created by .NET Framework 1.1... net user aspnet /delete ECHO. ECHO Starting installation of Applications ECHO. ECHO Installing Diskeeper 7.0.428 ECHO Please wait... start /wait %systemdrive%\install\Applications\diskeeper\Setup.exe /s /v/qn ECHO. ECHO Installing Flashget 1.4 ECHO Please wait... start /wait %systemdrive%\install\Applications\flashget\fgf140.exe /S ECHO. ECHO Registering Flashget 1.4... REGEDIT /S %systemdrive%\install\Applications\flashget\register.reg ECHO. ECHO Installing Kerio Personal Firewall 2.1.5 ECHO Please wait... start /wait %systemdrive%\install\Applications\kpf\Setup.exe -s ECHO. ECHO Registering Nero Burning ROM... REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg ECHO. ECHO Installing Nero Burning ROM v5.5.10.42 ECHO Please wait... start /wait %systemdrive%\install\Applications\Nero\Nero551042.exe /silent /noreboot ECHO. ECHO Installing Symantec Antivirus Corporate 8.1 ECHO Please wait... start /wait %systemdrive%\install\Applications\sav\sav810b821.exe /qn ECHO. ECHO Updating Symantec Antivirus Virus Definitions (May 14th 2003)... COPY "%systemdrive%\install\Applications\sav\vd155c08.xdb.xdb" "%systemdrive%\ Documents and Settings\All Users\Application Data\Symantec\ Norton AntiVirus Corporate Edition\7.5\" 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 it\'s ready to restart!" ECHO. ECHO Deleting Temp Installation Files... RD /S /Q %systemdrive%\Drivers RD /S /Q %systemdrive%\install EXIT
» RunOnceEx.cmd
cmdow @ /HID @echo off SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f REG ADD %KEY%\005 /V 1 /D "%systemdrive%\apps\AdobeReader6\AR6.msi /qn" /f REG ADD %KEY%\015 /VE /D "Alcohol 120" /f REG ADD %KEY%\015 /V 1 /D "%systemdrive%\apps\alcohol\setup.exe /qn" /f REG ADD %KEY%\015 /V 2 /D "REGEDIT /S %systemdrive%\apps\alcohol\register.reg" /f REG ADD %KEY%\025 /VE /D "Diskeeper 8" /f REG ADD %KEY%\025 /V 1 /D "%systemdrive%\apps\DiskeeperPro_8.0.459.exe /s /v/qn" /f REG ADD %KEY%\030 /VE /D "DU Meter 3" /f REG ADD %KEY%\030 /V 1 /D "%systemdrive%\apps\dumeter3.exe /VERYSILENT /SP-" /f REG ADD %KEY%\035 /VE /D "Flashget 1.4" /f REG ADD %KEY%\035 /V 1 /D "%systemdrive%\apps\flashget\fgf140.exe /S" /f REG ADD %KEY%\035 /V 2 /D "REGEDIT /S %systemdrive%\apps\flashget\register.reg" /f REG ADD %KEY%\037 /VE /D "IsoBuster 1.5" /f REG ADD %KEY%\037 /V 1 /D "%systemdrive%\apps\IsoBuster1.5.exe /VERYSILENT /SP-" /f REG ADD %KEY%\037 /V 2 /D "taskkill /F /IM isobuster.exe" /f REG ADD %KEY%\040 /VE /D "Kerio Personal Firewall 2.1.5" /f REG ADD %KEY%\040 /V 1 /D "%systemdrive%\apps\KPF\Setup.exe -s" /f REG ADD %KEY%\047 /VE /D "MSN Messenger 6.1" /f REG ADD %KEY%\047 /V 1 /D "%systemdrive%\apps\MSN_Messenger_6.1.0202.msi /qn" /f REG ADD %KEY%\050 /VE /D "Nero Burning ROM 5.5" /f REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\apps\nero\register.reg" /f REG ADD %KEY%\050 /V 2 /D "%systemdrive%\apps\Nero\Nero551054.exe /silent /noreboot" /f REG ADD %KEY%\053 /VE /D ".NET Framework 1.1" /f REG ADD %KEY%\053 /V 1 /D "%systemdrive%\apps\dotnetfw.exe" /f REG ADD %KEY%\055 /VE /D "TweakUI Powertoy" /f REG ADD %KEY%\055 /V 1 /D "%systemdrive%\apps\Powertoys\TweakUI.msi /qn" /f REG ADD %KEY%\060 /VE /D "Task Switcher Powertoy" /f REG ADD %KEY%\060 /V 1 /D "%systemdrive%\apps\Powertoys\TaskswitchPowertoySetup.exe /s /v/qn" /f REG ADD %KEY%\065 /VE /D "Sun Java 1.4.2" /f REG ADD %KEY%\065 /V 1 /D "%systemdrive%\apps\SunJava\j2re-1_4_2_01-windows-i586.exe /s /v/qn" /f REG ADD %KEY%\065 /V 2 /D "REGEDIT /S %systemdrive%\apps\SunJava\RemoveSunJavaUpdateCheck.reg" /f REG ADD %KEY%\070 /VE /D "Symantec AV Corp 8.1.1" /f REG ADD %KEY%\070 /V 1 /D "%systemdrive%\apps\SAVCorp8.1.1.314.exe /qn" /f REG ADD %KEY%\075 /VE /D "WinRAR 3.20" /f REG ADD %KEY%\075 /V 1 /D "%systemdrive%\apps\WinRAR320.exe /s" /f REG ADD %KEY%\080 /VE /D "Importing Registry Tweaks" /f REG ADD %KEY%\080 /V 1 /D "REGEDIT /S %systemdrive%\apps\regtweaks.reg" /f REG ADD %KEY%\085 /VE /D "Cleaning Up and Rebooting" /f REG ADD %KEY%\085 /V 1 /D "%systemdrive%\apps\cleanup.cmd" /f EXIT
» cleanup.cmd (used with RunOnceEx.cmd)
cmdow @ /HID shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..." net user aspnet /delete RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing" RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start" DEL "%systemroot%\*.bmp" DEL "%systemroot%\Web\Wallpaper\*.jpg" DEL "%systemroot%\system32\dllcache\*.scr" DEL "%systemroot%\system32\*.scr" DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk" DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk" DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk" DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk" DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk" DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk" DEL "%UserProfile%\Desktop\Flashget.lnk" DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk" DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk" DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk" RD /S /Q "%systemroot%\Cache\Adobe Reader 6\" RD /S /Q %systemdrive%\drivers\ RD /S /Q %systemdrive%\apps\ EXIT
Last updated 2007-12-02 15:22:25 by Idontwantspam [Edit]



