MSFN Forum: The Art of OEM - nLite & OEM Preinstallation - MSFN Forum

Jump to content


  • 8 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • You cannot start a new topic
  • You cannot reply to this topic

The Art of OEM - nLite & OEM Preinstallation Part 6: Windows Deployment Services / Server 2008 Rate Topic: -----

Poll: Your opinion goes here (138 member(s) have cast votes)

Would you like for Windows Designer Studio to perform most of the operations described in this guide?

  1. Yes, and I want more features too! (67 votes [73.63%])

    Percentage of vote: 73.63%

  2. Yes (13 votes [14.29%])

    Percentage of vote: 14.29%

  3. No, I'd rather stick with the plain old Windows Setup routine. (4 votes [4.40%])

    Percentage of vote: 4.40%

  4. No, it's just a waste of time; nLite/vLite will always be enough for my needs. (7 votes [7.69%])

    Percentage of vote: 7.69%

Now that this guide is complete, are you happy with its contents?

  1. Yes, it's a great idea! (61 votes [67.03%])

    Percentage of vote: 67.03%

  2. Somewhat, I used some of the things described here. (19 votes [20.88%])

    Percentage of vote: 20.88%

  3. Probably, but it is too complex for me to handle. (7 votes [7.69%])

    Percentage of vote: 7.69%

  4. No (4 votes [4.40%])

    Percentage of vote: 4.40%

Which of these should benefit you the most and you'd like to see first in Windows Designer Studio? (more details soon)

  1. Windows Setup SDK (Panther Engine) - WIM capture, Setup customization and ISO making, like in Parts 3 and 4 (43 votes [56.58%])

    Percentage of vote: 56.58%

  2. VKEY Explorer - an advanced tool to design the registry of the OS you are designing (5 votes [6.58%])

    Percentage of vote: 6.58%

  3. Package Designer - a set of diff and compression tools to allow you to author/create/add/remove windows components and preinstalled apps (18 votes [23.68%])

    Percentage of vote: 23.68%

  4. VM Workbench - an extension for the free VMware Player product to test the results of your work before finalizing (10 votes [13.16%])

    Percentage of vote: 13.16%

Vote Guests cannot vote

#121 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 31 March 2008 - 12:27 PM

Part 6 - Heroes Happen Here
Spotlight on Server 2008 Deployment Services.

This month's event @ Microsoft, "Heroes Happen Here" turned out to be a great success. A lot of resources were available for me since I started working for a gold-certified Microsoft partner.

In this part, I will extend my guide onto the latest technology available: Windows Server 2008.


#122 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 05 April 2008 - 03:05 PM

6.1. Server Configuration

This is the current network configuration. External/Internal are Gigabit LANs, VMnet #1 and #8 are the NAT and Local-Only from VMware, and WiFi is the local intranet wireless connection. There is also a proxy that supplies internet from External to Internal.

Posted Image

This is the Server Manager with the current configuration for the DHCP role:

Posted Image

The 192.168.1.x and 2002:4d51:c06c:: scopes are running binded on Internal and WiFi. Your ISP might get upset if you start to give IPs to other customers using your own "rogue" DHCP.

As for Windows Deployment Services, in this case I can configure PXE Response Settings like this to speed up things:

Posted Image

Also, be careful to disable listening on port 67 for your WDS Server.

Posted Image

This is the Add Image Wizard:

Posted Image

Posted Image

Posted Image

And my configuration looks like this:

Posted Image

I will use this WDS to install a Ultimate SP1 vLited image in my eeePC:

Posted Image





#123 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 05 April 2008 - 03:58 PM

If you're using virtualization, you must know your bindings. In this case, VMnet #2 is bridged to Internal.
You must also have a connected cable on it, the DHCP server does not bind to disconnected networks.

Posted Image


This is my test machine booting from the bridge on Internal:

Posted Image
Posted Image
And I chose Windows Setup

Posted Image
As it seems there's no driver in boot.wim for the VMware network, it must be offline-serviced into it

Posted Image
Use Windows AIK like in KB923834. Here's my console output:

Be sure to have your boot image offline in WDS while you do this.

 
C:\Program Files\Windows AIK\Tools\PETools>md temp

C:\Program Files\Windows AIK\Tools\PETools>imagex /mountrw i:\remoteinstall\boot
\x86\images\boot.wim 2 temp

ImageX Tool for Windows
Copyright © Microsoft Corp. All rights reserved.


Mounting (RW): [i:\remoteinstall\boot\x86\images\boot.wim, 2] ->
               [C:\Program Files\Windows AIK\Tools\PETools\temp]

Successfully mounted image (RW).



C:\Program Files\Windows AIK\Tools\PETools>peimg /?
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.

PEIMG {Command} {Image} [Flags]

Command     /import | /inf | /install | /lang | /list | /prep | /uninstall |
            /scratchspace | /targetpath | /timezone

Flags       /verbose | /quiet | /f

Image       Specifies the path to the Windows directory within the base
            Windows PE image.  The image must first be applied or mounted
            to a local directory using ImageX.  This can also be specified
            as /image=path.

Commands:

/import=

  Imports a package from a .CAB file or directory structure.  The
  package will be made available for installation.

/inf=

  Installs an INF package (typically a driver) to a Windows PE image.
   is the path to the .INF file.  You can perform this on a
  Windows PE image that was previously prepared with /prep.

/install=

  Installs a package, where  denotes the package name.  A list of
  available packages and their names can be obtained using the /list
  command.  Wildcards can be used when specifying a package name.  Any
  packages with matching long names will be installed.

/lang= [/layerdriver=]

  Sets the locale and the UI language of a Windows PE image.  The
   value is the culture name of the specified language.  A
  language pack for the specified language must already be installed.
  For the ja-JP or ko-KR cultures, the /layerdriver option can be used
  to specify which keyboard layer driver should be installed.  Values
  for  are integers in the range 1..6 and are described in the
  documentation.  You can perform this on a Windows PE image that
  was previously prepared with /prep.

/list

  Displays a list of packages in the current image.  Packages are
  displayed in short name form.  In the INS column, (+) denotes
  installed packages and (-) denotes not installed.  /verbose will
  display the full package names.

/prep

  Optimizes the Windows PE image for size. This operation cannot be
  reverted, and after /prep is issued, the /install, /uninstall,
  /import, and /list commands will not function. The /lang, /inf and
  /targetpath commands will continue to function. The tool will prompt
  the user to confirm the command.  To suppress this prompt for
  scripting, specify the /f flag.

/uninstall=

  Uninstalls a package, where  denotes the package name.  A list
  of installed packages and their names can be obtained by using the
  /list command.  In the INS column, (+) denotes installed packages.
  Wildcards can be used when specifying a package name.  Any packages
  with matching long names will be uninstalled.

/scratchspace=

  Sets the amount of scratch space available, in megabytes.  Valid
  values are 32, 64, 128, 256 and 512.

/timezone=

  Sets the default time zone of a Windows PE image.  The time zone can
  be specified either by a culture name or by a time zone name.
  Please consult the documentation for more details. You can perform this
  on a Windows PE image that was previously prepared with /prep.

/targetpath=X:\...

  For harddisk boot scenarios, sets the location where the Windows
  PE image will reside on the disk.  This path must be equal to or
  a subdirectory of X:\ (which is the default).  You can only perform
  this on a Windows PE image that was previously prepared with /prep.

Flags:

/verbose

  Display long names for packages.  Only short names are displayed by
  default.

/quiet

  Suppress the progress bar.

/f

  Suppress prompts for use in scripts.  This flag is ignored for
  operations that would not normally prompt.

Examples:

   REM Import a feature/update in a .CAB file
   peimg c:\winpe\windows /import=feature.cab

   REM List the installed and available packages
   peimg /list /image=c:\winpe\windows

   REM Install all available scripting packages
   peimg /install=*Scripting* c:\winpe\windows

If this help text scrolls off of your screen, please run "peimg /? | more"


C:\Program Files\Windows AIK\Tools\PETools>peimg /inf="A:\Installs\Drivers\eeePC
 4G 701\Network\l260x86.inf" temp\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.

Installing INF package: A:\Installs\Drivers\eeePC 4G 701\Network\l260x86.inf

PEIMG completed the operation successfully.

C:\Program Files\Windows AIK\Tools\PETools>peimg /inf="P:\program files\VMware\V
Mware Tools\Drivers\vmxnet\win2k\vmxnet.inf" temp\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.

Installing INF package: P:\program files\VMware\VMware Tools\Drivers\vmxnet\win2
k\vmxnet.inf

PEIMG completed the operation successfully.

C:\Program Files\Windows AIK\Tools\PETools>peimg /inf="P:\program files\VMware\V
Mware Tools\Drivers\vmxnet\win2k\vmware-nic.inf" temp\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright © Microsoft Corporation. All rights reserved.

Installing INF package: P:\program files\VMware\VMware Tools\Drivers\vmxnet\win2
k\vmware-nic.inf

PEIMG completed the operation successfully.

C:\Program Files\Windows AIK\Tools\PETools>imagex /unmount /commit temp

ImageX Tool for Windows
Copyright © Microsoft Corp. All rights reserved.


Unmounting: [C:\Program Files\Windows AIK\Tools\PETools\temp]...

Successfully unmounted image.
 


Another thing to take into consideration is network traffic caused by WDS. If you don't have 1 Gbps LAN, you can easily clug the domain controller functionality if running on the same interface:

Posted Image

Get WDS Client network drivers for "e1000" in VMware here.

This post has been edited by dexter.inside: 05 April 2008 - 05:02 PM


#124 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 28 May 2008 - 05:51 PM

Hi to all in the msfn...
i see your work for a long time.
And now i can try it..i have a free time...i
i will comment on them if I manage she is still successfully the guide.
txnks dexter.inside

#125 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 29 May 2008 - 12:27 PM

well isaid " i try it" and i do...
when i use sysprep its erros appear.

error to reseal.
error to update registry

what id o wrong?
sorry for my bad english

#126 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 30 May 2008 - 02:30 AM

Hi guys.
Dexter.inside
I tryed the guide and solved my previous problems whit sysprep section, the err0r was some MassStorages drivers
now i pased of this part.
After its i mount and imaging the partition, copy to sources folder of longhorn,but whe i try
to install all its fine, before begin the copy files then the setup
sendme this error...
Setup cant copy files

....
tanks in advance
i wait fr your helpdexter plz.

#127 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 30 May 2008 - 07:59 AM

Are you using sysprep -bmsd to populate sysprep.inf ?

Try this to make sure it's not something else causing it -

in HKLM\SYSTEM\Setup add or modify:

Cmdline:REG_SZ:setup -newsetup -mini
MiniSetupInProgress:REG_DWORD:0x1
SetupType:REG_DWORD:0x1
SystemSetupInProgress:REG_DWORD:0x1

and

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SetupExecute:REG_MULTI_SZ:setupcl.exe

(according to http://support.micro....com/kb/321070)

This should run mini-setup without driver detection. If this fails, you should post the last stuff that failed in the setup log. If it doesn't, you are not building mass storage driver list properly.

If you have extra steps to perform (related to drivers) or you need to bypass completely the windows mini-setup driver detection (like driverpacks), append it in the REG_MULTI_SZ after setupcl.exe

Hope it helps. It did for me.

This post has been edited by dexter.inside: 30 May 2008 - 08:01 AM


#128 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 30 May 2008 - 11:25 AM

Tanks dexter. :thumbup

Sure i use Sysprep -bmsd, and for the moment i skip the aditional MassStorage Drivers and its working.
Sysprep has pased, now i mount the drive and imagining it, patch with tiny hexer.
Add Eula, etc, and work fine.
But, when its hour to copy files after select partition to install, it giveme the next error.

Error trying copy files, and after i click ok, its close

I think that its for version of imagex that i use, so i download ximagex for longhorn,
whit this versio i can see /info and manipule install.wim of longhorn,but no, its not working the error is the same

Tanks for advance, you are great man,I very interesting on your guide, but i see no much people searching or
trying it. :blushing:

#129 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 31 May 2008 - 06:21 AM

That means either your image is corrupted at editing or setup is incompatible with that WIM API.
Have you tried booting from a live cd and applying your image manually with ximage onto the target partition to see if it works?

#130 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 31 May 2008 - 01:42 PM

Hi dexter.
I am very happy for you help.
:thumbup

I try its that you sayd, and i will post when i do it.

tanks.

ooo

And dexter, do you have boths images or iso`s that you use in this guide,
and if its not problem, its are downloable?
If its yes, where i download i search for months but i dont found, i found it in the warez web`s
but someones links are dead, they are in rapidshare, megaupload, Torrents, and others but all theys
are deads, not working.

Do you giveme this iso`s?

i hope that its not offend you. :unsure:

oks tanks.

I hope have much more conversations whit you, maybe in msn.

#131 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 02 June 2008 - 01:03 AM

I list segui trying i finally it, copies the files, for some reason though it patches the install.wim with the mirkes hexer, and the/info shpwme the correct Image Index, it was not loading it, because the image inndex is not recognizes by the setup,
when i try to apply the install.wim directly whit
ximage /apply path\install.wim z: 3
it sayd that the image not exist in the install.wim

But now that I have added 2 images mas in the same install.wim, it copies the files and finishes the installation, and makes me the first boot, and after the Bootscreen, now it throws a BSOD,.

i will trying,
and post later...

#132 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 02 June 2008 - 09:57 PM

well i try all.
and already is finish it, in the virtual machine i had a BSOD an reboot inmediatly, but, in a normal machine all is work.
and i finish the instalñation proces, Driver detection and i had my desktop of the same form when i capture it,
tanks for the help,
Now i whis add more More MassStorage drivers and other driver to my instalation, so i tri it and post.

See you later dexter.inside

#133 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 03 June 2008 - 11:39 AM

dexter guruuu where are you....? :thumbup

#134 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 06 June 2008 - 05:36 AM

View Postdarkleon, on Jun 3 2008, 06:57 AM, said:

well i try all.
and already is finish it, in the virtual machine i had a BSOD an reboot inmediatly, but, in a normal machine all is work.


Quite normal, if you have a SCSI/SAS drive in the VM and no mass storage driver for it. XP usually goes with BusLogic and Server 2003 with LSI

As for the disks, they are not mine, I've used the deployment server at work for the tutorial. My employer wouldn't be very happy if I were to share their MSDN subscription :whistle:

#135 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 07 June 2008 - 01:49 AM

well its fine...
im testing the burned cd rom in diferents pcs, and its work great,
only i had problems in to virtual machine,but its fine for the moment,

Tanks for all your help and time to deply tis guide,
so i hope that you will teach us, in this proyect or others i very happy if exist more proyects that try,
well tanks. and see you later.
And it isnt a bye, is only see you later,i will try a post in msfn.and hope that you =.

:thumbup

#136 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 07 June 2008 - 10:26 AM

I've been getting quite close on a new approach of servicing drivers into images, by bypassing sysprep altogether and running the mini-setup manually. Unfortunately it's both tricky to perform manually (very complex procedure) and difficult to implement properly as code in my app. Hope to get a workable engineering sample soon, as I've overcome the "legal" aspects

I'll keep you posted.

#137 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 10 June 2008 - 11:13 AM

View Postdarkleon, on May 29 2008, 09:27 PM, said:

well isaid " i try it" and i do...
when i use sysprep its erros appear.

error to reseal.
error to update registry

what id o wrong?
sorry for my bad english


Btw, I have a better idea... :sneaky:

 
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\Setup]
"SetupType"=dword:00000001
"SystemSetupInProgress"=dword:00000001
"CmdLine"=hex(7):73,00,65,00,74,00,75,00,70,00,2e,00,65,00,78,00,65,00,20,00,\
  2d,00,6e,00,65,00,77,00,73,00,65,00,74,00,75,00,70,00,20,00,2d,00,6d,00,69,\
  00,6e,00,69,00,00,00,00,00
"MiniSetupDoPnP"=dword:00000001
"MiniSetupInProgress"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]
"SetupExecute"=hex(7):73,00,65,00,74,00,75,00,70,00,63,00,6c,00,2e,00,65,00,78,\
  00,65,00,00,00,00,00

 


Skip sysprep altogether and apply this reg. It will get you back to mini-setup.
The nasty part was to discover "MiniSetupDoPnP"=dword:00000001 , which AFAIK is undocumented.

#138 User is offline   darkleon 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 23-October 07

Posted 11 June 2008 - 11:15 PM

oks tanks
i will try it in few days...
and in Vmware and real pc`s

i`ll try to add sata massStorage drivers in new try.

i dont stop of try.

#139 User is offline   chrisf826 

  • Group: Members
  • Posts: 1
  • Joined: 12-June 08

Posted 12 June 2008 - 08:32 AM

This is the first time i have ever posted here after lurking for a couple years as a guest :)
I really enjoyed this guide and the rest of the msfn site, has given me a lot of great ideas on customizing my xp and 2003!.

I have been trying to sort out where the failure is for low memory systems on windows home server. Apparently, the WPE 2.0 environment WILL function without errors on 256 mb of ram, if you access a command prompt and create a pagefile on the hard drive, via wpeutil CreatePageFile <pagefile_name>, i had to edit winpeshl.ini and remove qs.exe and add cmd.exe in this file.

This remaining stuff i did was in Normal boot mode. did the rest in a full windows windows sbs install.

I unhid the whs optional components INF after i installed the whs component exe's and right click installed the whsoc.inf file. Then accessed cmd.exe again, then entered install.cmd from \files\install on the whs media then rebooted.

It appears qs.exe then exhibits strange behavior and bypasses the RAM check on the next reboot, the strange behavior is exhibited by using the bogus registry keys install.cmd entered, install.cmd made the assumption the media is on the drive you are booting from. The weird thing as well, that the media you called qs.exe from is now drive X: on reboot and your not even on PE!! and the install is hosed when i didnt do the previous steps before. i could NOT even logon.

I have a suspicion that whs is convertable if it can be figured out how to do this procedure without locking yourself out. or having strange drive assignments.


i would like to have otheres test this out on a non important installation.

It seems you need a good portion of the dvd directory structure and files in the root of the drive your attempting this on.

1). Unhide the windows components hidden in sysoc.inf, from your hard drive
2). install the inf from \windows\inf\whsoc.inf. from your hard drive.
3). Installed the whs components in \whs on your install media.
4). enter install.cmd from \files\install from your install media while in a normal windows session.
5). either reboot and allow the system to run qs.exe on next logon.

#140 User is offline   dexter.inside 

  • reverse engineering guru
  • PipPipPip
  • Group: Members
  • Posts: 331
  • Joined: 19-October 06

Posted 16 June 2008 - 10:38 PM

Update: for those that encountered the FLDRCLNR.DLL error in mini-setup, here is the solution: http://support.micro...om/?kbid=832978

And it is not caused by nLite.

Share this topic:


  • 8 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy