Jump to content

Create install.wim via reverse integration?


Recommended Posts

I currently use DISM to create an Unattended install image for my installs. It works fine but I would like to try a more official method possibly using reverse integration. I have found this procedure . There may be much better, or easier, procedures and I would like to have a link to such. What I would like to do is capture an install.wim that contains SP1 and IE9 (now that both are RTM) and use this as a basis to my current process which includes using DISM to add drivers and updates. I also add Registry tweaks and the Unattended install adds most of the applications I use. The reason I do not want to capture a complete image is for update purposes. I do frequent installs and do not want to have to go through the capture procedure each time there is an update. I prefer to do the whole image creation process on VMware Player. Is what I am wanting to do possible? I would appreciate any help and comments. I am using W7 Ultimate x64. Thanks and enjoy, John.

Link to comment
Share on other sites


When I first started I used VMware (Virtual PC) to install 7, boot into sysprep, install apps, generalize, then I would convert the vmdk to a vhd and finally mount/capture it

Now what I do is instead of using vmware or installing on a second partition I install to a VHD (only works with Win7 Ultimate,) then when I am finished I can boot into my primary OS and mount/capture it

My advice, if you can install it offline dont install it during sysprep (IE9, updates & drivers) and you are worried about programs being updated making your image obsolete...thats why I install only official Microsoft stuff leaving the other programs for post install to be installed via WPI

Edited by ricktendo64
Link to comment
Share on other sites

ricktendo64, thanks much, you always seem to have good ideas. I am going to do some research on VHDs and some of your other ideas. I am sure I will return with some questions. Thanks and enjoy, John.

Link to comment
Share on other sites

Thanks ricktendo64 and myselfidem. I have done some research, created a VHD and attached it (on a VM). I have also found guides on how to make it bootable (bcdedit). Is the guide I referred to in my first post a good one to use? Can you point me to one that does the whole process using a a VHD? When I am through with this procedure can I use the install.wim as I do today (running DISM to add updates, drivers etc)? If I do it under a VM will the installed image looked like it is running in a VM? One of my main problems is that I am a home user and am not familiar with terms such as sysprep, generalize, etc. ricktendo64, I do not understand what you are saying here:

My advice, if you can install it offline dont install it during sysprep
Thanks for your help. Enjoy, John.
Link to comment
Share on other sites

You can create a script for diskpart that will create/attach your VHD, look in my sig you will find some vids (also check out the links I point to, like the OPK vids and the VHD tutorial)

Edited by ricktendo64
Link to comment
Share on other sites

ricktendo64, I did a lot of experimenting and finally succeeded. It seemed that MS was trying to block me in every way. All my attempts have been using VMware Player VMs. First I installed a bare bones W7 Ultimate x64, then created a VHD using Disk Management. After booting the CD again, I tried to use Diskpart to attach the VHD I created but it said it could not find it. I then rebooted my installed VM and deleted the VHD and ran defragger. After booting the CD again, I used Diskpart to try to create a VHD, but it said it could not because there was not enough space. There was plenty of space, but the size was reduced until the Create worked (50 MB). For some reason Diskpart could not detect the true free space. I then started over and let Diskpart create the VHD from the start and it worked OK. The Generalize went OK. I then copied the VHD file to my real system (also W7 Ultimate x64) and tried to run Imagex to do a capture. Repeatedly I got Access is denied on the attached VHD. I was using the WAIK tools prompt which sets up the paths and says it is an Administrator mode prompt. Turns out it is not. When I ran Imagex.exe directly from the WAIK folder, the capture ran just fine. I do not know why I needed the true Administrator prompt - perhaps because of the way I created and copied the VHD file. It also appears that a mapped network file cannot be used because I kept getting invalid file. I watched your excellent video (capture) many times and it was very useful. I also read the tutorial concerning using a VHD. Thanks again, John.

EDIT: When I selected the VHD for my install on VM, Setup told me that Windows could not be installed on the partition because the BIOS might not be able to boot from it. I clicked Next anyway and it went just fine. It seems I remember some questions in the past when I first worked with W7 that some older MBs (BIOSs) could not boot into Audit Mode. Is this a possible problem if I try this on my HW? Might I have trouble installing on a VHD on my HW?

Edited by johnhc
Link to comment
Share on other sites

I know that only Ulitmate can boot from a vhd, when you say you are installing to a vhd are you doing it on a virtual pc or on your actual pc (dual booting)?

Only reason I am using VMware in the videos is as an example, I actually create a 20 GB vhd (instead of partitioning my hdd) and install Win7 on that, when I am done I remove it from the boot manager, mount & finally capture/delete it

Edited by ricktendo64
Link to comment
Share on other sites

ricktendo64, as stated, all testing was done using VMware Player. I used a VHD (xyz.vhd file) on the VM (also used separate partition, which worked OK). I wanted to use a VHD so when (and if) I do this for real on my HW, I will have experience on my VM using a VHD. Thanks, John.

Link to comment
Share on other sites

ricktendo64, did you get the BIOS warning on your VHD install on HW? Currently I do my installs on my HW with a dual boot (XP x64) and using a flat install (from a hard drive.) Do you think this will work for a HW install on a VHD file? Thanks, John.

Link to comment
Share on other sites

Yes I get the warning always (its standard) and yes it works perfectly fine

BTW you could create a txt with the diskpart commands to create your virtual hd

diskpart /s <path>\<name_of_file>.txt

TXT contents

create vdisk file=c:\<name_of_disk>.vhd maximum=20480
select vdisk file=c:\<name_of_disk>.vhd
attach vdisk
exit

Edited by ricktendo64
Link to comment
Share on other sites

Hey ricktendo64 can I create VHD in a drive other than C, secondly would I be able to boot into the VHD OS like we can in a multiboot system?

Actually I am little skeptical using this VDH method, I have 5 partitions (C to G), and 1 DVD drive (H) and 1 Virtual ROM (J) drive created by ultraISO, now if I create a VHD what letter would it take for VHD as I don't want my drive to formated accidentally. Can you please help me out?

Link to comment
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.
×
×
  • Create New...