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

XP to Wim

- - - - -

  • Please log in to reply
27 replies to this topic

#1
engert100

engert100

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 23-June 08
I have another topic here: http://www.msfn.org/...es-t120835.html but i think no one visits that category.

I now have a unattended dvd of Windows Xp. How do i covert this into a .wim file for Windows Deployment.

Can someone point me into the right direction?

Thanks.

Edited by engert100, 24 July 2008 - 06:22 AM.

My signature


How to remove advertisement from MSFN

#2
Altruist

Altruist

    Newbie

  • Member
  • 14 posts
  • Joined 02-July 08
Is this what you're looking for?
http://technet.micro...s/aa905070.aspx

#3
engert100

engert100

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 23-June 08
Yes, that is helpful but i can't convert my c:\xpcd directory structure to a .wim file using imagex /capture command.
What would you suggesst i try next? Or if you could give me a hand with some of the imagex commands.
Does this actually work though? Using imagex to convert a dir structure to a .wim file?
My signature

#4
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,252 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
What exactly are you trying to do?

WIM is not an installation method, it is an imaging technology. So if you were to create a WIM containing your UA and deploy it to a system all the system would have on it is an exact copy of your UA.

#5
engert100

engert100

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 23-June 08
I think i've figured it out but i've got to test it.

Here's the scenario.
I have a customized copy of Windows XP sitting in C:\xpcd .
This copy has all the updates and some applications.
I can convert this to .iso and boot a pc, and it will work fine.

What i wanted to do is convert this Directory into a .wim format so i can deploy it with WDS.

By using this command from the WAIK tool: imagex /capture c:\xpcd c:\xpsp3.wim "Windows XP" it has converted the dir structure to a .wim file.
Now, i just have to upload this file into my WDS and see if it actually works.
Will keep you updated.
My signature

#6
engert100

engert100

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 23-June 08
No dice.

When i try to add this .wim image to WDS i get: This file does not contain a valid install image.

What does it mean by valid? Are there any special switches in WAIK to make this a 'valid' image?
My signature

#7
Innocent Devil

Innocent Devil

    Senior Member

  • Member
  • PipPipPipPip
  • 632 posts
  • Joined 04-February 05
u might need to provide /NOPREFIX switch to imagex

Edited by Innocent Devil, 25 July 2008 - 12:21 PM.

"The level of security that Vista is trying to achieve to protect video and audio is more extreme than anything the US government has ever considered necessary for protecting its most sensitive classified data."

Read Full Article @ [A Cost Analysis of Windows Vista Content Protection]

Don't be lame [Linux is NOT Windows]

#8
engert100

engert100

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 23-June 08
I tried it and it didn't work.
This is driving me insane for the past week.
Are there any WinPe experts here?

What's a valid .wim image? Are there any special files or directories that .wim is looking for?
If there are, i can manually create these files or folders into my c:\xpcd folder and capture it again.
If my supervisor approves it, then i'll call microsoft for $150 an hour.
Don't know if that's going to happen though.
My signature

#9
Innocent Devil

Innocent Devil

    Senior Member

  • Member
  • PipPipPipPip
  • 632 posts
  • Joined 04-February 05
usually the wim technology needs a system directory in th root of drive in order to consider it as a system image (AFAIK) like C:\windows etc.

or u need another switch /BOOT ?? dunno

or try following IcemanND's XP WIM deployment guide

only syspreped images are used for deploying through wim technology.
doing from the install DVD/CD require winPE to copy the files and start install wia WDS
in RIS i dunno the procedure how to do that.

by converting a install source dir to wim might not going to help or work with wim
"The level of security that Vista is trying to achieve to protect video and audio is more extreme than anything the US government has ever considered necessary for protecting its most sensitive classified data."

Read Full Article @ [A Cost Analysis of Windows Vista Content Protection]

Don't be lame [Linux is NOT Windows]

#10
engert100

engert100

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 23-June 08
I've tried all the switches of /capture command even tried /flag which is not listed in help /?

There is another way around this (theoreticaly) which i'm going to test this week.

Here it goes.

1. Capture the directory with imagex and create a .wim file
2. Store this file somewhere in the network
3. Create a WinPe cd/dvd/flash drive
4. Boot PC with this cd/dvd/flash drive and automate the mapping of the network drive with a script, automate disk partitioning with the DISKPART command.
5. The script will create two partitions both active. Formats them both in NTFS. One is named INSTALL the other one WINDOWS
6. The script then unmounts the .wim file and lays it down in the INSTALL partiton, then the script reboots machine
7. When PC starts it will start installing Windows from the INSTALL partiotion just like if you were to install it from the CD/DVD

And all this work because i want an HAL independed Windows Xp image.
PHEW!

Like i said, this is all theoretical don't know if it'll actually work.
First i got to check that after copying windows files into a NTFS volume will setup.exe work or will i386/winnt32.exe work?
I'm getting tired with this.
My signature

#11
gotenks98

gotenks98

    Member

  • Member
  • PipPip
  • 162 posts
  • Joined 02-June 05
This isnt going to work because are not understaning how wim works. Wim is not an install method. Basically during an vista install it extracts the wim to the harddrive. It is just a faster complete vista install. In a sense a wim is a zip file. You simply cant do this with a naked xp discs. Now if you were to install xp, sysprep it and then capture the image you might have something you can distribute easily. As for it being hal independent I dont see the point in that unless you got some real old stuff that shouldnt be running xp anyways.

#12
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,792 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

Actually, there IS a way to create a WIM of the XP install, but its tricky. This is just a crazy idea I just had, and I have no clue if this will work but you can try it out.

OK so we know that when you install XP, it goes into the blue setup screen, wants you to press buttons like R and L and F8 and stuff. Then it shoots that red bar across the screen to reboot.

What happens here is that the XP CD copies the install structure of the CD onto the Hard Disk. When the computer reboots, it runs the install from the Hard Disk and not the CD. It may be possible to capture Drive C between the reboot prompt and the start of installation.

However, I do not know if the installer makes any reference to the CD during install, but it may be possible to create a RAMDRIVE with applicable files to fool the installer if this is at all possible.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#13
daniel1908

daniel1908
  • Member
  • 1 posts
  • Joined 15-March 10
  • OS:Windows 7 x64
  • Country: Country Flag
I have an idea that may work.
If you are running Server 2003 SP1, you will have the option to install RIS. During the RIS installation you will be asked for the media with the Operating System Setup Files. Insert your XP CD and allow RIS to copy the Files.
Now upgrade your Server 2003 to SP2 and Install WDS. After Installing WDS, run it and it should find all RIS OS Installation files. These would be located in the Legacy Images Folder in WDS. If you right click the XP setup file in the Legacy Images folder, there should be an option to Convert to WIM. Use this to convert the XP image to WIM. Now you should have a hardware independent XP image. You can now copy the XP Wim image to keep as a backup copy.

This is just an idea I had. I am yet to test it. If it works can someone please post here?

#14
Matt A. Tobin

Matt A. Tobin

    Newbie

  • Member
  • 14 posts
  • Joined 15-April 07
BUMP

Easy WinXP CD Install to WIM Conversion

This basically encapsulates the standard windows xp install method inside a wim file.

Because it will install completely from the hard drive the installation time is decreased significantly.

Step 1
- Boot to WinPE 2 or higher

Step 2
- Setup a regular drive or partition using diskpart

Step 3
- Use Standard Windows XP CD
- Run winnt32.exe /syspart:c: /makelocalsource
(where c is the letter of the drive)
- enter product key etc

Step 4
- use imagex to capture the drive

Step 5 - DEPLOYMENT
- boot to WinPE 2 or higher
- set up partition or drive using diskpart (be sure to assign a drive letter and make it active.. etc)
- bootsect /nt52 /force /mbr
- imagex /apply xpinst.wim 1 c:

Step 6
- reboot and run though text mode and gui setup as normal

Brought to you by Binary Outcast
- http://binaryoutcast.com/

Posted Image


#15
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,688 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
One MAJOR drawback!!

XP images are proccesor dependant...

#16
wimb

wimb

    Senior Member

  • Developer
  • 678 posts
  • Joined 21-March 07
You can Restore a Universal XP Image file in 5 minutes.

But to create such file takes more time .....

http://www.911cd.net...showtopic=23553
http://reboot.pro/13...post__p__120249

Edited by wimb, 26 January 2011 - 04:26 AM.

USB Booting - UEFI_MULTI

MBR-Backup - Make-PE3

--------------------

#17
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,792 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

One MAJOR drawback!!

XP images are proccesor dependant...


Any XP SP2 or SP3 images created on a single core (UP HAL) and sysprepped will automatically redetect a system using a multi-proc (MP HAL). SP1 and older could not do this. Also it doesn't work backwards, so an image created on an MP will not install the UP HAL if deployed. Best way to handle this is to totally lock down your configs so you use your images appropriately.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#18
LieboOSBA

LieboOSBA
  • Member
  • 6 posts
  • Joined 23-November 11
  • OS:Vista Ultimate x86
  • Country: Country Flag

BUMP

Easy WinXP CD Install to WIM Conversion

This basically encapsulates the standard windows xp install method inside a wim file.

Because it will install completely from the hard drive the installation time is decreased significantly.

Step 1
- Boot to WinPE 2 or higher

Step 2
- Setup a regular drive or partition using diskpart

Step 3
- Use Standard Windows XP CD
- Run winnt32.exe /syspart:c: /makelocalsource
(where c is the letter of the drive)
- enter product key etc

Step 4
- use imagex to capture the drive

Step 5 - DEPLOYMENT
- boot to WinPE 2 or higher
- set up partition or drive using diskpart (be sure to assign a drive letter and make it active.. etc)
- bootsect /nt52 /force /mbr
- imagex /apply xpinst.wim 1 c:

Step 6
- reboot and run though text mode and gui setup as normal

Brought to you by Binary Outcast
- http://binaryoutcast.com/



Having trouble following this guide, anyone else used it?

#19
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,189 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Having trouble following this guide, anyone else used it?


No.
http://homepages.tes...no-answers.html

How would knowing if anyone else used it help you in following it? :unsure:

However, basically that post is about a way to deploy a XP initiated-from-hard-disk install.

The imagex and wim usage are just means to replace *any* disk/drive imaging software.

Just as an example, you could use DRIVEIMAGEXML to the same effect. (and you would note need a PE 2 or higher).

jaclaz

#20
LieboOSBA

LieboOSBA
  • Member
  • 6 posts
  • Joined 23-November 11
  • OS:Vista Ultimate x86
  • Country: Country Flag
Thanks for replying.

If anyone else has tried to use it (responding with a "yes"), they could have reported as to the success of following the instructions.

The issue with following the instructions is that the WIM is captured what I believe to be successfully, the hard drive doesn't boot and you get "Disc read error, press control + alt + delete to restart" or something to that affect. I believe the problem is the formatting/partitioning/MBR creation part of the process that isn't working.

The ultimate goal would be to have a WIM image that can be deployed via WDS of the setup files for Windows XP (the hard drive install as you put) with an unattended script including drivers and post-SP3 hotfixes slipstreamed. This is because as we all know, Windows XP images are HAL dependant and having a few different types of PC, making separate "sysprepped" images and maintaining them is unfeasible.

I know Windows FLP is basically XP with "WIM" deployment (using a version of WIM from a Longhorn build IIRC) so it must be possible to deploy HAL "independent" Windows XP via the method I quoted or similar.

#21
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,792 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

It is potentially more work to try to make one universal XP WIM instead of separate ones for each config. Have you looked into the other options like installation via Distribution Share, or using RIS or MDT/SCCM to deploy XP?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#22
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,189 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

The issue with following the instructions is that the WIM is captured what I believe to be successfully, the hard drive doesn't boot and you get "Disc read error, press control + alt + delete to restart" or something to that affect. I believe the problem is the formatting/partitioning/MBR creation part of the process that isn't working.


If you followed the instructions "to the T", the problematic step(s) should be this one(s):

Step 4
- use imagex to capture the drive

Step 5 - DEPLOYMENT
- boot to WinPE 2 or higher
- set up partition or drive using diskpart (be sure to assign a drive letter and make it active.. etc)
- bootsect /nt52 /force /mbr
- imagex /apply xpinst.wim 1 c:

Given for assured that Step 4 is OK, i.e. that image capture is successful, the problem might be Step 5.
Can you try describing in your own words and EXACTLY, down to the minutiae, what you did with regards to this step?
(it seems to me clear enough, but maybe I am overlooking something or the instructions can be interpreted differently :unsure: from what I do)

WINFLP is an entirely different thing/approach from the one referenced to.

And yes, it is possible to create a hardware independent XP image, a good way is to use Offline Sysprep:
http://www.911cd.net...hp?showforum=43

If you want, once solved the issue you are currently having, we may talk about it :).

jaclaz

Edited by jaclaz, 21 December 2011 - 01:49 PM.


#23
LieboOSBA

LieboOSBA
  • Member
  • 6 posts
  • Joined 23-November 11
  • OS:Vista Ultimate x86
  • Country: Country Flag
I created a WinPE disc and booted it in VMWare.
I formatted the disc and partition exactly as described.
I performed the "make local source" install of Windows XP as described.
I took an image to WIM via ImageX as described

New VMWare session, with WinPE, formatted the hard drive and run the bootsect command however had to add "C:" as one of the switches to make the command work.

i.e. "bootsect /nt52 c: /force /mbr" instead of "bootsect /nt52 /force /mbr"

Restored the WIM to the hard drive as instructed


Rebooted without WinPE mounted and it should have started the XP setup... Instead, there is a disc read error and to press control + alt + delete

There is a KB article about this but it seems to have no affect when you try the solutions: http://support.microsoft.com/kb/931760


Thanks in advanced.

#24
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,792 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

I see what you are trying to do! I've tried this and was unsuccessful at it. Correct me if I am wrong, but it sounds like you are trying to capture the phase after Text Mode and redeploy that. While I had made mention of it here, I didn't go into too much detail... :unsure:
http://www.msfn.org/...r2-x32-and-x64/
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#25
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,189 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

New VMWare session, with WinPE, formatted the hard drive

No. :(
I am pretty sure that you think you did that :), but I asked the EXACT, detailed, down to the minutiae steps you executed, just like you did for this:

and run the bootsect command however had to add "C:" as one of the switches to make the command work.
i.e. "bootsect /nt52 c: /force /mbr" instead of "bootsect /nt52 /force /mbr"

namely I suspect that you did not set the partition as Active. :unsure:

Since this is delicate matter, where each single word has a definite meaning, and I am particularly "picky" you cannot "format a hard drive".
You are actually:
  • initializing a (hard) disk (drive)
  • partitioning the disk into one or more partition(s) of which one is a primary, i.e. creating one or more drive(s) or volume(s)
  • formatting the drive (or volume) by creating a filesystem on it


Rebooted without WinPE mounted and it should have started the XP setup... Instead, there is a disc read error and to press control + alt + delete

There is a KB article about this but it seems to have no affect when you try the solutions: http://support.microsoft.com/kb/931760

Yes, it is a possibility :yes:, but the solution (changing the partition alignment settings in the Registry) has always been working.
Try again, after having applied the Registry changes to the PE.

You can use any MBR editor/disk editor/partition table viewer to check the actual alignment that was used and to check the Active status of the partition.
A standard XP will make partition start at CHS 0/1/1 LBA 63.
A standard PE2/3 will make partition start at CHS 0/32/33 LBA 2048
A PE 2/3 with the proposed mods to the Registry will behave as XP does.

How big is the partition you create?
Try doing it smaller than 128/137 Gb limit, just in case:
http://www.48bitlba.com/


jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users