Jump to content

Recommended Posts

Posted

I have no idea why I can't find this. Maybe I'm just tired at the moment.

I'm looking for the command line switches for XP SP2. Basically I'm just trying to automate the installing of SP2 and post-SP2 hotfixes onto a CD. I can do that with a batch file without any problems. I just can't find the switches for the SP2 installer.

Any help is greatly appreciated.


Posted (edited)

Right, but what I'm actually trying to do is make a CD with SP2 and all the hotfixes and nothing else.

This CD is going out to users with computers in a remote location that already have XP SP1 installed.

EDIT: I got it. I just used the regular Windows Installer switches with the update.msi package in the extracted i386\update folder. :)

Edited by Asin
Posted
Right, but what I'm actually trying to do is make a CD with SP2 and all the hotfixes and nothing else.

This CD is going out to users with computers in a remote location that already have XP SP1 installed.

EDIT: I got it.  I just used the regular Windows Installer switches with the update.msi package in the extracted i386\update folder.  :)

try : search

Posted (edited)

Actually, I think that I got it.

I used WinRAR to extract the i386 folder in the SP2 file for IT Professionals and just worked with it from there.

Like I said, there's an update.exe and update.msi file in the i386\update folder.

From there, a simple

%CDROM%\i386\update\update.msi /quiet /noreboot

should do what I want. I haven't tested this yet as it takes time to install a SP1 XP installation in VMware (not at work right now).

After that's done, a copied batch file to the current user's startup folder will do the rest after a restart. It'll also include a couple of port openings that I need for Funk Software's Proxy Host.

Edited by Asin
Posted

Yes... you will end up with SP2 installed afterwards... but it's still installing it after having installed XP. By integrating SP2 into your CD, you'll save time during the install process and future testing.

I would highly recommend looking into the links I provided or using nLite to integrate your SP2 and hotfixes. You'll end up saving time and space on your CD (meaning more room for other apps once you get into full UACDs... :P).

XP Gold + SP2 = 484MB + 266MB = 750MB (dunno how you get that on the CD in the first place)

XP SP2 (integrated) = 582MB

XP SP1 is even bigger than the gold version, and it will still end up being the same size in the end with SP2 integrated. It's definately the easiest way to do things in the long run.

Posted

What I'm saying is that I am creating a standalone CD for just upgrading an XP SP1 machine to SP2 with the latest critical patches, nothing more.

There is software that is currently installed and I don't want to disturb that. I also do not know what other personal data is on those Home User computers, so I definitely don't want to delete any of that.

I already have discs with SP2 slipstreamed into them from the Volume Licensing program that we have here.

Posted

Would some thing like this be what you want

For VBS Script

  '''' SCRIPT BY GUNSMOKINGMAN DO WHAT EVER WITH IT.

  Dim Act, Fso, SD, Drv

  Dim Act : Set Act = CreateObject("Wscript.shell")

  Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")

  Dim Sd : Sd = Act.ExpandEnvironmentStrings("%systemdrive%")

  strComputer = "."

'''' Array For Service Pack 2 and 29 updates

KbL = Array(_

  "WindowsXP-KB835935-SP2-ENU","WindowsXP-KB887742-x86-ENU","WindowsXP-KB885626-v2-x86-ENU","WindowsXP-KB873339-x86-ENU",_

  "WindowsXP-KB885835-x86-ENU","WindowsXP-KB834707-x86-ENU","WindowsXP-KB885836-x86-ENU","WindowsXP-KB886185-x86-ENU",_

  "WindowsXP-KB890175-x86-ENU","WindowsXP-KB873333-x86-ENU","WindowsXP-KB888113-x86-ENU","WindowsXP-KB891781-x86-ENU",_

  "WindowsXP-KB888302-x86-ENU","WindowsXP-KB883939-x86-ENU","WindowsXP-KB890046-x86-ENU","WindowsXP-KB893066-v2-x86-ENU",_

  "WindowsXP-KB896358-x86-ENU","WindowsXP-KB896422-x86-ENU","WindowsXP-KB896428-x86-ENU","WindowsXP-KB890047-x86-ENU",_

  "WindowsXP-KB890859-x86-ENU","WindowsXP-KB890923-x86-ENU","WindowsXP-KB903235-x86-ENU","WindowsXP-KB901214-x86-ENU",_

  "WindowsXP-KB896423-x86-ENU","WindowsXP-KB899587-x86-ENU","WindowsXP-KB899591-x86-ENU","WindowsXP-KB893756-x86-ENU",_

  "WindowsXP-KB899588-x86-ENU","WindowsXP-KB896727-x86-ENU" )

Set Drv = Fso.Drives

For Each strD In Drv '''' CHECK FOR THE CDROM

If strD.DriveType = 4 Then

'''' This Can be Removed It Just Popup The drive Letter

Act.Popup "This Is CDROM, " & strD , 3,"CD Test", 0 + 32

If Fso.FileExists(StrD & "\YOUR_CHECK_FILE_NAME" Then '''' Confirm It The Correct CD

For Each StrKB In KbL '''' For The Array If The 2 Above Checks Pass

'''' EXAMPLE THIS IS THE ONE I USE TO INTERGRATE THE SERVICE

'''' PACK 2 AND THE UPDATES

''''Act.run (Loc1  & "\" & StrKB & ".exe"  & " /passive /norestart /L /o -s:%systemdrive%\XPCD"),1,true

'''' USER PLACE WHAT EVER YOU NEED IN THE -> ACT.RUN(),1,TRUE

''''Act.run ("PLACE WHATEVER SWITCHES AND INSTALL CMD HERE"),1,true

End If

Next

Else

Act.Popup "This Is The Wrong CD", 3, "Error Missing CD", 0 + 32

End If

The above script may need fine tuning as it from a larger script that I am

working on. I have it so it will check for the CDROM, but you will have to

fill in the check file for it. The Array is set for long names for the updates.

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