Home » Discussions, Office
Slipstream Bat File
In the spirit of Mark’s recent Newsletter #72, “Making Pkgmgr Work in Vista and Server 2008 to Apply Patches Offline” I took a crack at slipstreaming as I needed to do so with XP yesterday. Next, I’m taking a crack at doing the offline patching trick to integrate Vista SP1 on Vista RTM just for proof of concept to me. Yeah, I know that may have been done already; but I want to stretch my legs scripting so here goes the slipstream bat file text: ———————————- cls @echo off set updatedir=C:\update set flatdir=C:\flats set top=REM if “”==”” set top=echo REM Credits and instructions REM ———————— REM ———————— echo ——————————————————————– echo ——————————————————————– echo Slipstream.bat for Windows 2003 R2 and Below echo Written by: Mark Minasi and Ralph T. Howarth, Jr. echo Written August 12, 2008 echo www.minasi.com echo help@minasi.com echo ——————————————————————– echo ——————————————————————– . This utility integrates a service pack to a Windows 5.x CD flat. . OUTPUTS: Integrated CD flat to a target OS flat named by the user. . REQUIRES: Before running this, a service pack must be dropped in a folder named (unless you put them somewhere else and change the value of the line “set updatedir=” at the top of the batch file). . NOTE: If the has other subfolders for supporting other scripts used for patching, this program will run OK as long as the exe in the root of the is a service pack. . Also, the installation CD must be copied in entirety to the in the intended OS target folder. Note the i386 folder is critical in the flat but the service pack may populate some utility folders. (Again, if you change the value of the “set flatdir=” line; do that.) . REM ERROR CHECKING REM ————– REM ————– if “flatdir1 md \1″ in REM echo. REM goto badend REM ) REM Check that there is a [supposed] service pack if not exist \*.exe ( echo ERROR: echo This needs at least one service pack file with an “exe” extension echo in a folder named . Please add at least one update to the echo folder. echo. goto badend ) REM Check if an i386 has been copied to the OS flat folder if not exist \1″ needs to have the installation CD files echo in the folder named “”. Please copy at least the i386 folder echo in to the updatedir1 OS flat folder. REM Service Pack Loop REM ————————– REM ————————– for f in (\*.exe) do ( echo applying service pack f… echo. start /w f /integrate:\1 apparently complete. goto realend :badend echo Service Pack not applied. :realend @echo on
Read more:
Slipstream Bat File
Tags: active-topics, management, Office, rem, scripting, security patches, service-pack, vista, Windows, windows-server

RSS FEEDS
Entries (RSS)
Leave a comment!