Jump to content

Recommended Posts

Posted (edited)

I am trying to make a fully functional installation disc for just windows update for windows home premium. The reason I am making this disc is for my dad who is very computer challenged so using 3rd party apps to make this work is out of the question due to him possibly screwing it up some how. What I want is to slipstream as many of the updates as I can and whats left over can install at first log on. I already got the drivers down pack so thats no issue there its just getting the updates and maybe a few things like java and adobe reader to run at first log on. Any idea how to do this using autounattend.xml file? I been looking over many different threads but its kind of hard to make sense out of some of the code that is written for the loops. Basically I need to know how to do this and what each part does so I can understand why the code is written this way.

Small Edit: Also I want to make this so it can install from dvd and or usb.

Edited by gotenks98

Posted

Ok I think I got it started but it wont launch. It does nothing at first log on. Here is my xml

<?xml version="1.0" encoding="UTF-8"?>
-<unattend xmlns="urn:schemas-microsoft-com:unattend">
-<settings pass="oobeSystem">
-<component language="neutral" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Shell-Setup"> -

<FirstLogonCommands>
-<SynchronousCommand wcm:action="add">
<Order>2</Order>
<CommandLine>IE9-Windows7-x64-enu.exe /passive /norestart /update-no</CommandLine>
<Description>%InstallDrive%\Updates\Internet Explorer 9</Description>
</SynchronousCommand>
-<SynchronousCommand wcm:action="add">
<Order>3</Order>
<CommandLine>wusa.exe %InstallDrive%\Updates\AMD64-all-ie9-windows6.1-kb2530548-x64.msu /quiet /norestart /nobackup</CommandLine>
<Description>IE9 Update kb2530548</Description>
</SynchronousCommand>
-<SynchronousCommand wcm:action="add">
<Order>4</Order>
<CommandLine>wusa.exe %InstallDrive%\Updates\AMD64-all-ie9-windows6.1-kb2559049-x64.msu /quiet /nobackup /norestart</CommandLine>
<Description>IE9 Update kb2530549</Description>
</SynchronousCommand>
-<SynchronousCommand wcm:action="add">
<Order>5</Order>
<CommandLine>wusa.exe %InstallDrive%\Updates\AMD64-all-windows6.1-kb2533552.msu /quiet /norestart /nobackup</CommandLine>
<Description>KB2533552</Description>
</SynchronousCommand>
-<SynchronousCommand wcm:action="add">
<Order>6</Order>
<CommandLine>%InstallDrive%\Updates\AMD64_X86-all-silverlight.exe /q</CommandLine>
<Description>Silverlight</Description>
</SynchronousCommand>
-<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Setup Media Drive</Description>
<CommandLine>cmd /c FOR %%i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %%i:\Autounattend.xml SETX InstallDrive %%i:\ -m</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
</unattend>

Posted

For order #2 (your IE9 install) you have the path in description. Windows can't find your IE9 exe. :sneaky:

I think I got that part fixed. I just cant get order 1 to run. I get no indication that its running, nor do I see any of the others once the paths are fixed. This is turning out to be harder than I initially thought. For the for loop part which phase of the unattended file does it need to be? Like specialize or oobe? This is the updated code for the order 1 in specialize pass

cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\Autounattend.xml SETX InstallDrive %i:\ -m"

This is for order 1 in Oobe pass

cmd /c %InstallDrive%\Updates\IE9-Windows7-x64-enu.exe /passive /norestart /update-no

This is the code for order 2

cmd /c wusa.exe %InstallDrive%\Updates\AMD64-all-ie9-windows6.1-kb2530548-x64.msu /quiet /norestart /nobackup

This is for order 3

cmd /c wusa.exe %InstallDrive%\Updates\AMD64-all-ie9-windows6.1-kb2559049-x64.msu /quiet /nobackup /norestart

This is for order 4

cmd /c wusa.exe %InstallDrive%\Updates\AMD64-all-windows6.1-kb2533552.msu /quiet /norestart /nobackup

This is for order 5

cmd /c %InstallDrive%\Updates\AMD64_X86-all-silverlight.exe /q

Posted

i vote throwing it all in setupcomplete.cmd, if the title was asking a preference. The error(s), if any, should be visible and its equally as functional.

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