Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How to create an OEM folder


  • Please log in to reply
15 replies to this topic

#1
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Feel free to add information or answer ?.
I have been asked this so many times here and elsewhere I wanted to put together 1 post with all the relevant information that anyone here can add to.

Microsoft Understanding Distribution Shares and Configuration Sets

Go get the Windows 7 SP1 original iso here. straight from MS
http://www.askvg.com...bit-and-64-bit/
more languages here http://www.heidoc.ne...-download-links
As long as they are coming from msft.digitalrivercontent.net they are valid MS downloads
These are authentic Microsoft. Much better than getting from an unknown untrusted source

These are genuine and official download links. Its completely LEGAL to use them as they don't come with a product key. You'll need to use your own product key to activate Windows. The links provide an untouched Windows 7 ISO which is a fully functional 30-day trial version which can be converted into full version after entering your product key and activating it.


Now open admin cmd prompt and type slmgr -xpr | slmgr -dlv
if OEM then then under description it will say OEM_SLP channel
Attached File  slp.png   15.3KB   70 downloads
if it is installed with COA from sticker on side it most likely will say COA in the channel
This will explain that http://www.mydigital...e-product-keys/

Extract your iso to a folder on any drive like DVD. Inside \sources folder of that create $OEM$ folder and then add other folders as needed.
The main folder needed is $$\Setup\Scripts and $$\System32\OEM

DVD\sources\$OEM$
     $$ <<- C:\Windows
       	    $$\Web\Wallpaper <<- Wallpapers here
            $$\Setup\Scripts <<- setupcomplete.cmd, OOBE.CMD, OEM.reg, SLP.cmd
            $$\System32
		$$\System32\OEM <<- OEM *.xrm-ms, OEM logos. you can copy these folders from Windows\System32\OEM
		$$\SYSWOW64\OEM <<- replica of system32\oem for 64 bit systems OEM *.xrm-ms, OEM logos. you can copy these folders from Windows\System32\OEM
		$$\System32\oobe
     $1 <<- Drive Root
                $1\Drivers <<- where some OEM place driver files
                $1\Install <<- where I place most things and call from there. EX: %SystemRoot%\Install\Firstlog.cmd
                $1\ProgramData\Hewlett-Packard\images <<- example of what we are looking for

To capture your actual product key you can use this simple vb script. This captures actual key and not the one on COA sticker.
If you have installed using the COA then you will have to capture the 2 files below and add to the install.wim listed in NON OEM
http://www.mediafire...zv4bu6cn0h8bbfk

Selecting Image or Version
How to Choose Desired Windows 7 Edition / Version During Setup?
or just delete or rename the ei.cfg in \sources folder

If you have an OEM PC you can mount your recovery image install.wim and you will find most these files. Look for .cmd, .vbs in the above folders
I have used following run from a cmd prompt as Admin to gain access to recovery partition
echo y| icacls "F:\*" /grant Administrators:F /T
echo y| icacls "F:\*" /grant *S-1-5-32-544:F /T
attrib -R -A -S -H "F:\" /S /D

To activate all we really need is just add a setupcomplete.cmd in $$\Setup\Scripts with the .XRM-MS located in SYSTEM32\OEM
setupcomplete.cmd run's automatically in this location. It also run's invisible so will not show anything except applications installing. Not good to call .cmd files here
setupcomplete.cmd
cscript %windir%\system32\slmgr.vbs -ilc %windir%\SYSTEM32\OEM\*.*.XRM-MS
cscript %windir%\system32\slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

Drivers
Windows 7 has good driver support but if you have some kind of new device needed drivers then you may want to capture drivers and inject them
Driver Magician Lite free
Can use my Add Right click .wim Windows 7 for these operations.

Adding Boot critical and all other drivers to an OEM installation if you don't want to inject - tested and working in a VM today

Only .inf drivers can be added to a Windows image by using this procedure. Drivers packaged as an .exe file or other file types must be installed on a running Windows operating system.


Create folder on root of DVD called $WinPEDriver$
Add all your driver folders there. Drivers must be extracted. You can see from my image long path names are acceptable :thumbup

Add this to your AutoUnattend.xml in <settings pass="windowsPE">
        <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="1">
                    <Path>$WinPEDriver$</Path>
                </PathAndCredentials>
            </DriverPaths>
        </component>

2011-08-08 10:13:03, Info                         PnPIBS: Checking for pre-configured driver directory D:\$WinPEDriver$.
2011-08-08 10:13:03, Info                         PnPIBS: Found pre-configured driver directory D:\$WinPEDriver$.
2011-08-08 10:13:03, Info                         PnPIBS: Building the list of drivers in the path D:\$WinPEDriver$ ... 
2011-08-08 10:13:03, Info                         PnPIBS: Added driver D:\$WinPEDriver$\Intel(R) ICH10 Family PCI Express Root Port 1\ichacore.inf to the list of drivers.

Attached File  $WinPEDriver$.png   14.01KB   39 downloads


NON OEM
If you don't have an OEM we capture and save 2 files from your existing installation
We then mount and insert these files into the install.wim. Can use my right click .wim for these operations, it has an uninstall when you are done with it.
Add Right click .wim Windows 7
The 2 files we need
C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms
C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat
or
You can simply install and enter product key to activate.

Edited by maxXPsoft, 23 March 2013 - 10:25 PM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1


How to remove advertisement from MSFN

#2
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
If you want to add an AutoUnattend.xml then look here

When you go to select image that you will be mounting please look here
Make sure you get the right Index number

64 bit iso will contain these images normally except Windows 7 STARTER
Details for image : D:\CD DVD\en_windows_7_ultimate_with_sp1_x64_dvd_u_677332\sources\install.wim

Index : 1
Name : Windows 7 HOMEBASIC
Description : Windows 7 HOMEBASIC
Size : 11,710,161,360 bytes

Index : 2
Name : Windows 7 HOMEPREMIUM
Description : Windows 7 HOMEPREMIUM
Size : 12,222,587,449 bytes

Index : 3
Name : Windows 7 PROFESSIONAL
Description : Windows 7 PROFESSIONAL
Size : 12,122,886,417 bytes

Index : 4
Name : Windows 7 ULTIMATE
Description : Windows 7 ULTIMATE
Size : 12,285,492,779 bytes

32 bit iso will contain these images
Details for image : D:\CD DVD\en_windows_7_ultimate_with_sp1_x86_dvd_u_677460\sources\install.wim

Index : 1
Name : Windows 7 STARTER
Description : Windows 7 STARTER
Size : 8,074,968,070 bytes

Index : 2
Name : Windows 7 HOMEBASIC
Description : Windows 7 HOMEBASIC
Size : 8,127,590,116 bytes

Index : 3
Name : Windows 7 HOMEPREMIUM
Description : Windows 7 HOMEPREMIUM
Size : 8,569,006,173 bytes

Index : 4
Name : Windows 7 PROFESSIONAL
Description : Windows 7 PROFESSIONAL
Size : 8,450,188,760 bytes

Index : 5
Name : Windows 7 ULTIMATE
Description : Windows 7 ULTIMATE
Size : 8,610,128,720 bytes

Edited by maxXPsoft, 06 August 2011 - 06:33 PM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#3
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • Joined 31-January 07
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Great post, thank you.

#4
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Updated first post with this :thumbup
Adding Boot critical and all other drivers to an OEM installation if you don't want to inject - tested and working in a VM today
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#5
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • Joined 31-January 07
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

I added

<DriverPaths>
<PathAndCredentials wcm:action="add">
<Path>$WinPEDriver$</Path>
</PathAndCredentials>
</DriverPaths>



And SIM keeps saying that the "key" must have a value. Should I ignore it and proceed anyway?



#6
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
oops forgot I added that key I'll update first
<DriverPaths>
                <PathAndCredentials wcm:action="add" wcm:keyValue="1">
                    <Path>$WinPEDriver$</Path>
                </PathAndCredentials>
            </DriverPaths>

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#7
gotenks98

gotenks98

    Member

  • Member
  • PipPip
  • 162 posts
  • Joined 02-June 05
I am getting the following error in virtual box. "Windows Setup could not install one or more boot-critical drivers. To install Windows, make sure that the drivers are valide, and restart the installation." This is when i do the $WinPEDriver$ thing.


Nevermind, I think its bad driver files. I removed a folder and it got past that step. But now for some reason its refering to wim file thats not even associated with this install.going to start it over. I guess I need a way for it to not even look for a wim file.

Edited by gotenks98, 02 September 2011 - 06:27 AM.


#8
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Did you remove or rename the ei.cfg? That will install whatever image it was intended for
[EditionID]
Professional

Without removing the ei.cfg you need to specify image to install in the xml. Look at <ImageInstall> here
http://www.msfn.org/...seven-xml-here/
<Value>Windows 7 ULTIMATE</Value>

EDIT: http://technet.micro...535(WS.10).aspx

If you use an answer file during Windows installation, Windows Setup ignores the EI.cfg file.


Edited by maxXPsoft, 02 September 2011 - 11:33 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#9
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,768 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Hi Max
Not frequented here in a while, thanks for your post have picked up some minor points missing in my UA :thumbup
I also adapted your right click install.wim for my purposes, very handy addition.

#10
Tomorrow

Tomorrow

    Advanced Member

  • Member
  • PipPipPip
  • 375 posts
  • Joined 20-December 07
  • OS:Windows 7 x64
  • Country: Country Flag
This is great when adding or replacing files. But what about removing files?
I was thinking maybe adding bogus 0 byte hidden files to replace the files i want to delete from the image.
When i mount the WIM and run the script to take ownership and force delete the said files then mostly it fails with "Access Denied".
This the delete script:
REM Take Ownership:
takeown /F "D:\7Work\WIM1" /R /D Y

REM Remove/Delete:
del /f /s /q "D:\7Work\WIM1\Windows\Help"
del /f /s /q "D:\7Work\WIM1\Windows\LiveKernelReports"
del /f /s /q "D:\7Work\WIM1\Windows\Media\*"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Ease of Access Themes\classic.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Ease of Access Themes\hc1.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Ease of Access Themes\hc2.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Ease of Access Themes\hcblack.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Ease of Access Themes\hcwhite.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Themes\architecture.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Themes\characters.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Themes\landscapes.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Themes\nature.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Resources\Themes\scenes.theme"
del /f /s /q "D:\7Work\WIM1\Windows\Web"
del /f /s /q "D:\7Work\WIM1\Windows\HelpPane.exe"
del /f /s /q "D:\7Work\WIM1\Windows\SysWOW64\ssText3d.scr"
del /f /s /q "D:\7Work\WIM1\Windows\SysWOW64\Bubbles.scr"
del /f /s /q "D:\7Work\WIM1\Windows\SysWOW64\Mystify.scr"
del /f /s /q "D:\7Work\WIM1\Windows\SysWOW64\PhotoScreensaver.scr"
del /f /s /q "D:\7Work\WIM1\Windows\SysWOW64\Ribbons.scr"
del /f /s /q "D:\7Work\WIM1\Windows\System32\wdi\LogFiles\BootCKCL.etl"
del /f /s /q "D:\7Work\WIM1\Windows\System32\wdi\LogFiles\ShutdownCKCL.etl"
del /f /s /q "D:\7Work\WIM1\Windows\System32\ssText3d.scr"
del /f /s /q "D:\7Work\WIM1\Windows\System32\Bubbles.scr"
del /f /s /q "D:\7Work\WIM1\Windows\System32\Mystify.scr"
del /f /s /q "D:\7Work\WIM1\Windows\System32\PhotoScreensaver.scr"
del /f /s /q "D:\7Work\WIM1\Windows\System32\Ribbons.scr"
del /f /s /q "D:\7Work\WIM1\ProgramData\Microsoft\User Account Pictures\Default Pictures\*"
del /f /s /q "D:\7Work\WIM1\PerfLogs"
del /f /s /q "D:\7Work\WIM1\ProgramData\Microsoft\Windows Defender"
del /f /s /q "D:\7Work\WIM1\ProgramData\Microsoft\Windows\Ringtones"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\Favorites\Links"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\Favorites\Microsoft Websites"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\Favorites\MSN Websites"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\Favorites\Windows Live"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\AppData\Local\Microsoft\Media Player\Sync Playlists\et-EE\00010C6E"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\AppData\Local\Microsoft\Windows Mail"
del /f /s /q "D:\7Work\WIM1\Users\Administrator\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Desktop.ini"
del /f /s /q "D:\7Work\WIM1\Program Files\Windows Defender"
del /f /s /q "D:\7Work\WIM1\Program Files\Windows Mail"
del /f /s /q "D:\7Work\WIM1\Program Files\Windows Media Player\wmpnetwk.exe"
del /f /s /q "D:\7Work\WIM1\Program Files\Windows Media Player\wmpnscfg.exe"
del /f /s /q "D:\7Work\WIM1\Program Files\Windows Media Player\Network Sharing"
del /f /s /q "D:\7Work\WIM1\Program Files\Windows Sidebar\Gadgets\*"
del /f /s /q "D:\7Work\WIM1\Program Files (x86)\Windows Defender"
del /f /s /q "D:\7Work\WIM1\Program Files (x86)\Windows Mail"
del /f /s /q "D:\7Work\WIM1\Program Files (x86)\Windows Sidebar\Gadgets\*"


#11
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

takeown /F "D:\7Work\WIM1" /R /D Y

you probably need icacls to grant permissions to you as 'Administrators' with Administrators name in your language
I don't think it would be good to do whole WIM folder, try to get the sub folders
try instead
cmd.exe /c takeown /f "D:\7Work\WIM1\Windows\Resources" /R && icacls "D:\7Work\WIM1\Windows\Resources" /grant Administrators:F /t
should see a window with it applying

Edited by maxXPsoft, 26 January 2013 - 09:04 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#12
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • Joined 31-January 07
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Maxx, can you think of any explanation why $WinPEDriver$ method works in VM but not on real machine with exactly the same image used?

Also, are you aware of any limitations of this, like for example total amount of files in the folder or size of any subfolders that might be there?

#13
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Maxx, can you think of any explanation why $WinPEDriver$ method works in VM but not on real machine with exactly the same image used?

Also, are you aware of any limitations of this, like for example total amount of files in the folder or size of any subfolders that might be there?

Mine has worked on real install actual also. Just first test was VM. Perhaps look at setupact.log and see what happened?

Limitations of $WinPeDriver$ when used in conjunction with other driver injection methods
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#14
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • Joined 31-January 07
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

It did work for me as well, but it's acting up really weird at times.
I also suspect it of not working well with Intel chipset drivers, but I'd need to test it a lot more.

It could also be something completely else being fishy, because very often setup would show me the language and keyboard settings screen (it's not supposed to with automated installation) and freeze up at the very moment, and I have to reset the whole thing. Other times (much less often) I'd get weird error messages about no driver for the drive/controller/whatever I am installing from, and browse for files... option. There's definitely nothing wrong with my either PC or the flash drive I have. It also sometimes happened when I was still installing from a DVD. It's really annoying and I could never figure out the cause.

#15
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
I have Intel also
From a running system with updated drivers I capture with Driver Magician Lite
Only select the ones in Red that are not MS.

Windows update will sometimes offer a newer or so called newer and I update my driver folder by capturing new from C:\Windows\System32\DriverStore\FileRepository\
Example: found the c7112964.inf.xxxx folder, and copied it for use
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#16
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • Joined 31-January 07
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Oh drivers from Windows Update, that's like purposedly breaking both your legs before you go to running contest :P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users