• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
dexter.inside

The Art of OEM - nLite & OEM Preinstallation

Your opinion goes here   140 members have voted

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

    • Yes, and I want more features too!
      68
    • Yes
      13
    • No, I'd rather stick with the plain old Windows Setup routine.
      5
    • No, it's just a waste of time; nLite/vLite will always be enough for my needs.
      7
  2. 3. Now that this guide is complete, are you happy with its contents?

    • Yes, it's a great idea!
      62
    • Somewhat, I used some of the things described here.
      20
    • Probably, but it is too complex for me to handle.
      7
    • No
      4
  3. 4. Which of these should benefit you the most and you'd like to see first in Windows Designer Studio? (more details soon)

    • Windows Setup SDK (Panther Engine) - WIM capture, Setup customization and ISO making, like in Parts 3 and 4
      45
    • VKEY Explorer - an advanced tool to design the registry of the OS you are designing
      5
    • Package Designer - a set of diff and compression tools to allow you to author/create/add/remove windows components and preinstalled apps
      18
    • VM Workbench - an extension for the free VMware Player product to test the results of your work before finalizing
      10

Please sign in or register to vote in this poll.

141 posts in this topic

Hmm, after re-checking the dependencies, also copying them to the sources folder, running depends again to make sure nothing's wrong (only missing is MSJAVA.dll), the setup still dies. Also downloaded the clean setup from sourceforge.net, but it still did not work... :/

What could be the problem?

-- Bas

Are you sure you got the .NET 2.0 working properly inside the PE ? There might be files with different versions and there are missing exports due to this reason... or...

Have you ran the SETUP.EXE locally (from a write-enabled folder) to see if it works properly?

If you still can't figure it out, get a evaluation for Norton Ghost 12 Recovery and add the stuff in your \SOURCES folder in their ISO. If it works there, the cause is your PE. I've also noticed that WinPE 2.0 boosts significantly the speed of the Panther SDK.

I've also had trouble with WinPE 1.x, and each time some missing export was to blame. AFAIK, the Panther run-time code requires a RAM drive, for temp folder and .NET 2.0

Hope to get Part 5 soon, I'm gathering screenshots in the mean time :sneaky:

If you discover anything else that I've forgot and should be in Part 4, let me know.

0

Share this post


Link to post
Share on other sites

Hmm, it seems like BartPE's ramdisk plugin is not using my Server 2003 ramdisk.sys, but an own ramdriv.sys. Let's see how I can solve this. :)

EDIT: Hmm, I don't see a solution... :( I guess the ramdisk plugin inf file needs to be changed too, but what?

Edited by NetworkService
0

Share this post


Link to post
Share on other sites

Try with Windows PE 2.0, it already has most stuff you need

0

Share this post


Link to post
Share on other sites

Yeah, including 1 thing I don't need: the need for 512 MB RAM... ;) Which my testing PC does not have, and I also can't have in Virtual PC/VMware, as my physical PC has just 512 MB... :(

0

Share this post


Link to post
Share on other sites

The WinPE 2.0 itself loads in 384 Mb of RAM properly, I've tested with Norton Ghost 12 which is based on it. Set MinimumMemory = 0 in DOSNET.INF in the SDK. The WIM beta 1 (as well as Longhorn 4xxx) installed with 256 Mb minimum memory, not 512.

Use in VMware: Edit -> Preferences -> Memory - Allow most virtual machine memory to be swapped

and in your VM: Options -> Advanced -> Disable memory page trimming

This cuts down some 33% out of performance, but will do the job for you

0

Share this post


Link to post
Share on other sites

dexter.inside.... i am so impressed with this guide. I can't wait to give it a try, as it is something I intend to master also. i'm sure it's a tremendous timesaver especially when used with driverpacks.

Thanks for the major contribution!!! This guide should be stickied on the msfn.org homepage along side of server 2003 -> workstation guide, as it is equally as valuable.

Jim

<edit> what software do you use for your explorer? as in picture 1?

Edited by aspenjim
0

Share this post


Link to post
Share on other sites

Total Commander 7. Been using the Norton Commander type of explorer since '93

0

Share this post


Link to post
Share on other sites

1) a much shorter guide to describe just the preinstallation of Office 2007 on XP

2) a minimal sysprep reseal scenario, no extra drivers on setup information

3) adding the WIM containing it to Norton Ghost 12 recovery CD and launching the setup routine from Symantec SRESHELL, which is the fastest install scenario I've made yet.

0

Share this post


Link to post
Share on other sites

Hi, I'm back again, with another question. :) I have just added the SOURCES folder to an Ghost 12 CD, and created an ISO with just the folders/files BOOT, EFI, SOURCES and BOOTMGR. It boots correctly to the SREShell, and I can choose an command prompt there, and start D:\Sources\Setup.exe. The first time I tried, it didn't correctly format the partition in VMware 6, and died with an error about preparing the hard drive. Restarted the setup, now manually formatted the seemingly created C:\ partition, and installed on it. The image got on the drive, but then I got an error about that writing boot.ini failed, or something like that. :) Setuperr.log shows an error about NtPathToArcPath failed for \Device\HardDisk0\Partition1.

How can this be solved? :)

-- Bas

EDIT: After reformatting a few times with the same HDD, it installed, but I got an INACCESSIBLE_BOOT_DEVICE on first boot. On VPC, where I made the image, I followed the instructions as mentioned in part 2, and sysprep.inf contains all required stuff. The setup issue still needs to be solved, as it's not useful to need to format 5 times. :P

Edited by NetworkService
0

Share this post


Link to post
Share on other sites

I think you must also update the boot code, like BOOTSECT /NT52 C:

Of course, as a long term goal, I must add to my app a wrapper for a windows setup of my own, so that I can install both XP/2003 and Vista/2008 using the same method.

0

Share this post


Link to post
Share on other sites

If the MBR did not contain the NT 5.2 boot code, it wouldn't even boot to the BSOD. ;) By the way, what cool wallpaper are you using at the end of part 2 on the Home Server box? :)

0

Share this post


Link to post
Share on other sites

easy way :

just put sources folder to WinFLPs disc

delete Setup directory

add setup.exe to run from winpeeshl.ini

load setupreg.hiv from I386\system32

and change value of SETUP\CmdLine

from "\Setup\SetupLauncher.exe" to "winpeshl.exe"

it worked like a charm.. :)

0

Share this post


Link to post
Share on other sites
easy way :

just put sources folder to WinFLPs disc

delete Setup directory

add setup.exe to run from winpeeshl.ini

load setupreg.hiv from I386\system32

and change value of SETUP\CmdLine

from "\Setup\SetupLauncher.exe" to "winpeshl.exe"

it worked like a charm.. :)

Yes, largely the same case as doing the same for Norton Ghost 12 recovery CD... the problem with using the PE from WinFLP is driver support; I doubt many of the new drivers are included there.

0

Share this post


Link to post
Share on other sites

WinFPLs PE is NT 5.2.3790 (Workstation built of 2k3 )

how can a BartPE built from srv03 sp2 std edition support Panther ?

even after satisfying the dependancies the pather setup stays at "Starting Setup ,Please wait...."

not at all progessing...

is there any workaround for 2k3 sp2 BartPE ??

XP PE is not supported at all (setup complaints requirement of a .NET capable PE)

Another weired prob:

the vmware cmount2 deosnt recognizing my virtual disk partition (which created using XP in the Virtual machine) in virtual IDE disk

Virtual disk partitions created by Panther or vista RTM PE are recognized (both IDE and SCSI on a new virtual disk disk)

:(

just only one virtual disk (on which i installed XP), all others are detected by vmount2

0

Share this post


Link to post
Share on other sites

1) it does progress, but for some reason on non-PE 2.0 it stays that way for almost 2 minutes, not sure why.

and

2) vmount2 has some flaws, you'd be better of with vmware-vmount 5.5.0. AFAIK the VMware beta team could not solve it during v6 testing. I had the same problem while coding around the vmplayer 6 SDK, and the best option is 5.5.0 build 18463.

Get it from my wdesign SVN: vmware-mount.exe, libeay32.dll, ssleay32.dll

Fortunately, it's compatible with both Workstation 6 and ESX 3.

0

Share this post


Link to post
Share on other sites

thanx

i managed to create a new scsi hd attached to ame machine and imaged ide drive from winpe to the scsi disk

then i mounted the scsi disk using vmount2 and copied the install.wim

isn't weired ??

0

Share this post


Link to post
Share on other sites
thanx

i managed to create a new scsi hd attached to ame machine and imaged ide drive from winpe to the scsi disk

then i mounted the scsi disk using vmount2 and copied the install.wim

isn't weired ??

Quite reasonable, unless you are capturing directly on a network share. Or mount the partition to be imaged as a drive on a physical machine (like V:) and capture it this way, it does work.

Edited by dexter.inside
0

Share this post


Link to post
Share on other sites

Part 5 - Quick OEM Preinstallation Guide for Workstations

Featured: Windows XP SP3 v.3180

Due to popular demand, I made Part 5 to show how to preinstall large applications in a workstation environment (Windows 2000 / XP). It is a quick guide that covers issues described in parts 1 and 2. As opposed to unattended installation, OEM preinstallation allows you to make a new setup disk with all the apps and registry tweaks you want without needing any special-made CAB packages, slipstreaming or scripting.

In this example, I used the evaluation version of Windows XP SP3 Media Center Edition in VMware Player.

T5-001.jpg

Picture 1 - Install Windows

Now, after you've passed the first boot, feel free to install all the apps and registry tweaks you want to have in your setup disk, like Office 2007, Visual Studio, Vista Transformation Pack, antivirus or whatever.

T5-002.jpg

Picture 2 - First Boot

When you are done "pre"-installing, continue. If you have a Corporate version, Windows is already activated. If not, you might want to activate it now. In my case, by not activating it, I am making a OEM preinstalled master distribution disk (Sysprep will rearm my activation back to 60 days by default when it completes).

Unpack the deployment tools (DEPLOY.CAB) to C:\sysprep

T5-003.jpg

Picture 3 - DEPLOY.CAB

T5-004.jpg

Picture 4 - C:\Sysprep

Now you need a partially unattended script for Sysprep to execute.

You can either use SETUPMGR.EXE to make your own and add [sysprepMassStorage] at the end, or you can use this:

 ;SetupMgrTag
[Unattended]
InstallFilesPath="C:\sysprep\i386"
OemSkipEula=Yes
DriverSigningPolicy=Ignore
UpdateInstalledDrivers=Yes

[GuiUnattended]
EncryptedAdminPassword=NO
AutoLogon=Yes
AutoLogonCount=0
OEMSkipRegional=1

[UserData]
FullName=""
OrgName=""

[SetupMgr]
DistFolder=c:\sysprep\i386
DistShare=windist

[Identification]
JoinWorkgroup=WORKGROUP

[Networking]
InstallDefaultComponents=Yes

[SysprepMassStorage]

Now you will need to run sysprep -bmsd to populate your driver section. The default path it scans is \WINDOWS\Inf.

T5-005.jpg

Picture 5 - sysprep.inf script

Sysprep may require some other files and settings. Thanks to JakeLD :thumbup , here they are:

(read the original topic here)

Windows Registry Editor Version 5.00

; Change source path to be c\windows instead of cd-rom
; Fix a sysprep bug
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
; Set C:\WINDOWS C:\WINDOWS\I386 C:\WINDOWS\SYSTEM32 C:\WINDOWS\SYSTEM32\DRIVERS as installation sources
"Installation Sources"=hex(7):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,\
57,00,53,00,00,00,43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,\
00,5c,00,49,00,33,00,38,00,36,00,00,00,43,00,3a,00,5c,00,57,00,49,00,4e,00,\
44,00,4f,00,57,00,53,00,5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,33,00,32,\
00,00,00,43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,00,5c,00,\
53,00,59,00,53,00,54,00,45,00,4d,00,33,00,32,00,5c,00,44,00,52,00,49,00,56,\
00,45,00,52,00,53,00,00,00,00,00
"SourcePath"="C:\\WINDOWS"
"ServicePackSourcePath"="C:\\WINDOWS"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
;"RegisteredOrganization"=""
;"RegisteredOwner"="User"
"SystemRoot"="C:\\WINDOWS"
"SourcePath"="C:\\WINDOWS\\i386"

And also copy these files to \sysprep\I386 (don't add out-of-box drivers, the folder is deleted after setup completes)

agentdp2.dll
agentdpv.dll
agt0405.dll
agt0405.hlp
agt0406.dll
agt0406.hlp
agt0407.dll
agt0407.hlp
agt0408.dll
agt0408.hlp
agt0409.dll
agt0409.hlp
agt040b.dll
agt040b.hlp
agt040c.dll
agt040c.hlp
agt040e.dll
agt040e.hlp
agt0410.dll
agt0410.hlp
agt0413.dll
agt0413.hlp
agt0414.dll
agt0414.hlp
agt0415.dll
agt0415.hlp
agt0416.dll
agt0416.hlp
agt0419.dll
agt0419.hlp
agt041d.dll
agt041d.hlp
agt041f.dll
agt041f.hlp
agt0816.dll
agt0816.hlp
agt0c0a.dll
agt0c0a.hlp
agtintl.dll
ctype.nls
c_037.nls
c_10000.nls
c_10006.nls
c_10007.nls
c_10010.nls
c_10017.nls
c_10029.nls
c_10079.nls
c_10081.nls
c_10082.nls
c_1026.nls
c_1250.nls
c_1251.nls
c_1252.nls
c_1253.nls
c_1254.nls
c_1255.nls
c_1256.nls
c_1257.nls
c_1258.nls
c_20127.nls
c_20261.nls
c_20866.nls
c_20905.nls
c_21866.nls
c_28591.nls
c_28592.nls
c_28593.nls
C_28594.NLS
C_28595.NLS
C_28597.NLS
c_28598.nls
c_28599.nls
c_28603.nls
c_28605.nls
c_437.nls
c_500.nls
c_737.nls
c_775.nls
c_850.nls
c_852.nls
c_855.nls
c_857.nls
c_860.nls
c_861.nls
c_863.nls
c_865.nls
c_866.nls
c_869.nls
c_874.nls
c_875.nls
c_932.nls
c_936.nls
c_949.nls
c_950.nls
enum1394.inf
enum1394.sys
ftdisk.sys
geo.nls
isapnp.sys
locale.nls
l_except.nls
l_intl.nls
modern.fon
mouhid.sys
roman.fon
script.fon
sortkey.nls
sorttbls.nls
streamci.dll
unicode.nls
vga.sys
wst_czec.fon
wst_engl.fon
wst_fren.fon
wst_germ.fon
wst_ital.fon
wst_span.fon
wst_swed.fon

Now that you can see the driver locations in the SysprepMassStorage section, you can start resealing your workstation.

T5-006.jpg

Picture 6 - Sysprep

T5-007.jpg

Picture 7 - Working

The virtual machine shuts down and the process is complete. Either go to Part 3 and 4 of this guide to see how to image it (you can mount the C: partition to your physical operating system and image it from there) and build a setup disk or use a 3-rd party disk imaging tool, like Norton Ghost.

Enjoy :hello:

Edited by dexter.inside
0

Share this post


Link to post
Share on other sites

Hi dexter.inside, thanks for your work.

I've created a wim file that works from command prompts, I'm just a bit confused how to implement it from the Ghost 12 Recovery CD.

I'd really like it to install like Vista or WinFLP, ie no interaction & nice GUI.

Any help appreciated.

0

Share this post


Link to post
Share on other sites
Hi dexter.inside, thanks for your work.

I've created a wim file that works from command prompts, I'm just a bit confused how to implement it from the Ghost 12 Recovery CD.

I'd really like it to install like Vista or WinFLP, ie no interaction & nice GUI.

Any help appreciated.

Okay, I will document both WinFLP (no interaction) and Norton Ghost 12 (Norton System Recovery Shell) scenarios.

0

Share this post


Link to post
Share on other sites

"WinFLP (no interaction)" would be great, I've installed WinFLP a few times and it's exactly the type of install I'm after.

0

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.