Jump to content

Some Sample Script Files


 Share

Recommended Posts

Ok, I don't mean to reap the ire of the admins here, but is it permissible to request copies of ppl's files (winnt.sif, assorted .cmd's). I have run into a problem with my install, and am having a bugger of a time figuring it out. The install goes off without a hitch, but the apps do not install until i create an account. Is there a way to have my apps install before the user account creation?? Thanx in advance for any answers you all may bestow upon me.

Link to comment
Share on other sites


Here's my old apps.bat. What i do is call a silent.bat file for each program. That way silent.bat can silently install a program and do other things like register it. I call apps.bat to install software, i call reg.bat to import registry settings. Unlike most people i put everything into the windows folder.

@ECHO OFF

ECHO Please wait as applications are installed.  This may take several minutes.

@echo.

ECHO Installing Nero

start /min /wait %windir%\Apps\NERO\silent.bat

ECHO Installing Norton Corporate Edition

start /min /wait %windir%\Apps\NAV8CORP\silent.bat

ECHO Installing Raxco Perfectdisk 2000

start /min /wait %windir%\Apps\RAXCO\silent.bat

ECHO Installing ISO Recorder

start /min /wait %windir%\Apps\ISO\silent.bat

ECHO Installing R-Studio.v2.0.121

start /min /wait %windir%\Apps\RStudio\silent.bat

ECHO Installing AOL Instant Messenger (AIM)

start /min /wait %windir%\Apps\AIM\silent.bat

ECHO Installing WinDVD

start /min /wait %windir%\Apps\WinDVD\silent.bat

ECHO Installing Winrar 3.10

start /min /wait %windir%\Apps\Winrar\silent.bat

ECHO Installing Hexworks 4.0

start /min /wait %windir%\Apps\Hexworks\silent.bat

ECHO Installing Windows Media Player (WMP) 9.0 Build 2980

start /min /wait %windir%\Apps\WMP9\silent.bat

ECHO Installing DirectX 9.0a

start /min /wait %windir%\Apps\DX9\silent.bat

ECHO Installing Windows XP Support tools

start /min /wait %windir%\Apps\SupTools\silent.bat

rem ECHO Installing Recovery console and making local source

rem start /min /wait %windir%\Source.bat

REM Disable search companion

regsvr32 /u /s %windir%\srchasst\srchui.dll

REM Change the kernel in boot.ini

bootcfg /RAW /A /Kernel=OEMKrnl.exe /ID 1

bootcfg /Timeout 0

REM

REM cleanup stuffs

REM

REM Removing AIM advertising

copy /Y %windir%\Apps\AIM\aim.odl %programfiles%\AIM95\aim.odl

rem resets homepage because of aim

%windir%\System32\rundll32.exe setupapi,InstallHinfSection RestoreHomePage 132 %windir%\inf\iereset.inf

rem deletes shortcuts left by aim

regedit.exe /s %windir%\Apps\AIM\delaim.reg

rem deletes shortcuts left by aim

del "%allusersprofile%\Desktop\*.lnk"

del "%allusersprofile%\Desktop\*.url"

del "%allusersprofile%\Start Menu\Free AOL & Unlimited Internet.url"

del "%userprofile%\Desktop\Free AOL & Unlimited Internet.url"

del "%allusersprofile%\Favorites\Free AOL & Unlimited Internet.url"

del "%userprofile%\Favorites\Free AOL & Unlimited Internet.url"

rd /s /q %windir%\Apps

rd /s /q %windir%\PWRTOYS

rd /s /q %windir%\REG

del %windir%\Source.reg

Del %windir%\Source.bat

Del %tmp%

REM

REM

@echo.

ECHO Done.

@echo.

rd /s /q %windir%\Apps

-gosh

Link to comment
Share on other sites

Heres mine

Windows Registry Editor Version 5.00
Title = "Unattended CD Setup"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]
"1"="regedit.exe /s C:\\Install\\RegTweak.reg"
@="Applying Registry Tweaks"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz112]
"1"="C:\\Install\\Add.cmd"
@="Adding My Stuff"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz114]
"1"="C:\\Install\\Remove.cmd"
@="Removing Uneeded Stuff"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz116]
"1"="C:\\Install\\DirectX9b\\dxsetup.exe /opk"
@="DirectX 9b"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz118]
"1"="C:\\Install\\NetFramework\\netfx.msi /QN"
@="Dot NET Framework v1.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]
"1"="C:\\Install\\WMP9\\MPSetupXP.exe /Q:A /R:N"
@="Media Player 9"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz122]
"1"="C:\\Install\\MSN6\\MsnMsgs.msi /QN"
@="MSN Messenger 6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz124]
"1"="C:\\Install\\PowerToys\\TweakUI.vbs"
@="Tweak UI 2.10"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz126]
"1"="C:\\Install\\PowerToys\\TaskswitchPowertoySetup.exe /s /v/qn"
@="Task Switch PowerToy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz128]
"1"="C:\\Install\\ICQ\\ICQ.vbs"
@="ICQ Lite"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]
"1"="C:\\Install\\PowerToys\\ImageResizerPowertoySetup.exe /s /v/qn"
@="Image Resizer PowerToy"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz132]
"1"="C:\\Install\\PowerToys\\PowerCalcPowertoySetup.exe /s /v/qn"
@="PowerCalc"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz134]
"1"="C:\\Install\\PowerToys\\CmdHerePowertoySetup.exe /s /v/qn"
@="Open Command Window Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz136]
"1"="C:\\Install\\Hotfixes\\Hotfixes.cmd"
@="Hotfixes"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz138]
"1"="C:\\Install\\Sygate\\setup.exe -r"
@="Sygate Personal Firewall"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]
"1"="C:\\Install\\Adobe\\AR6.msi /QB"
@="Adobe Reader 6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz142]
"1"="C:\\Install\\PowerDVD\\PowerDVD.vbs"
@="PowerDVD 6.22"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz144]
"1"="C:\\Install\\WinRAR\\wrar320.exe /s"
@="WinRAR"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz146]
"1"="C:\\Install\\NVIDIA_45_23\\setup.cmd"
@="NVIDIA Graphics Drivers 45 23"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz148]
"1"="C:\\Install\\NAV\\NAVCE.MSI /QB"
@="NAV Corp v7.6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz150]
"1"="C:\\Install\\IE6\\ie6setup.exe /Q:A /R:N"
@="IE6 SP1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz152]
"1"="regedit.exe /s C:\\Install\\Sliver.reg"
@="Applying Sliver Theme"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz154]
"1"="C:\\Install\\Remove2.cmd"
@="Clean Up"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz156]
"1"="C:\\Windows\\Restart.cmd"
@="Restarting Computer"

and here is my winnt.sif file

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

[Unattended]
  UnattendMode=FullUnattended
  OemSkipEula=Yes
  OemPreinstall=Yes
  TargetPath=*
  UnattendSwitch="Yes"
  DriverSigningPolicy=Ignore
  OemPnPDriversPath="drivers\modem\;drivers\muse\;drivers\soundcard\"

[GuiUnattended]
  AdminPassword=*
  EncryptedAdminPassword=NO
  AutoLogon=Yes
  AutoLogonCount=100
  OEMSkipRegional=1
  TimeZone=85
  OemSkipWelcome=1

[UserData]
  ProductKey=*
  FullName="Dave"
  OrgName=*
  ComputerName=HOME

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

[TapiLocation]
  CountryCode=44

[RegionalSettings]
  LanguageGroup=1
  SystemLocale=00000809
  UserLocale=00000809
  InputLocale=0809:00000809

[Identification]
  JoinWorkgroup=*

[Networking]
  InstallDefaultComponents=Yes

[Components]
 msmsgs=off
 msnexplr=off
 zonegames=off
 fax=off
 autoupdate=off
 WMAccess=off
 AccessOpt=off

[URL]
 Home_Page = [URL=http://www.MSFN.org/]http://www.MSFN.org/[/URL]
 Quick_Link_1_Name = "MSFN.ORG.url"
 Quick_Link_1      = "http://www.MSFN.org/"

 Quick_Link_2_Name = "WinBeta.url"
 Quick_Link_2      = "http://www.winbeta.org"

 Quick_Link_3_Name = "<<spam>>.url"
 Quick_Link_3      = "http://www.<<spam>>.net/"

 Quick_Link_4_Name = "Windows Update.url"
 Quick_Link_4      = "http://v4.windowsupdate.microsoft.com/en/default.asp?corporate=true/"

 Quick_Link_5_Name = "BetaPlace.url"
 Quick_Link_5      = "http://www.betaplace.com/"

 Quick_Link_6_Name = "Theme XP"
 Quick_Link_6      = "http://www.themexp.org/"

 Quick_Link_7_Name = "OEM System Builder"
 Quick_Link_7      = "http://oem.microsoft.com/"

[FavoritesEx]
 Title1="MSFN.org.url"
 URL1="www.MSFN.org=IStart"
 
[Branding]
 BrandIEUsingUnattended = Yes

[Shell]
  DefaultStartPanelOff=No
  DefaultThemesOff=No

Hope this helps

Link to comment
Share on other sites

It does, but a main question i have is do the apps install before or after you have created an account? Or is that what the autologon is for?? I have read through the guide mind you, and I'm willing to admit I may have overlooked something. Thanx again!!

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...