Create 'new' Install.wim of win7 x64 sp1 for installation.

Discussion in 'Windows 7' started by Bobby Digital, Jun 25, 2013.

  1. Bobby Digital

    Bobby Digital MDL Novice

    Oct 25, 2009
    4
    0
    0
    Hi all,

    I have a few questions about creating a new install.wim file of a windows 7 x64 sp1.
    I am trying to create this new Install.wim file with imagex wich i deployed on the windows install cd/iso. but it suddenly cannot find a version for some reason ... When I am trying to install this cd (cd contains an autounattend.xml) it stops at a screen where it needs to choose a version of windows, but this screen is totaly empty. No version available at all ...

    Continuing (pressing next) generates an error: "Windows could not display the images available for installation"

    I am trying to figure out what im doing wrong here ...

    What i did first is creating a nice clean autounattend.xml wich works with a clean unmodified windows install.
    I integrated IE10 with all prereqs and Updates / the 2 activex updates / User & kernel Mode Drivers / DN3 Updates ...
    In my SetupComplete.cmd file i let it install silverlight, malicious software removal tool & the DotNet4.5 Package.

    After this, ofcourse, sysprep generalize, restart in winpe and cap the image with imagex ...

    I used the following line to cap the new wim:

    imagex /check /flags "Ultimate" /capture D:\ F:\install.wim "Windows 7 Ultimate" /verify​

    What am i doing wrong ... What can i do to create a nice new (integrated with updates) install.wim to deploy with a windows cd for 'installation'.

    To be clear, I do not want to apply an image to a drive, i want to make a new install.wim wich can be installed again with windows setup. From what I read so far all over the Internet this should be possible but I cannot find a good document explaining this process (only how to apply an image to a drive).

    According to this page, and looking at the flags parameter it says u need this parameter todo what i want ...
    h--p://technet.microsoft.com/en-us/library/cc749447%28v=ws.10%29.aspx

    Does anyone perhaps know what im doing wrong here ....

    Kind Regards Danny
     
  2. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,466
    990
    60
    #2 Humphrey, Jun 25, 2013
    Last edited by a moderator: Apr 20, 2017
    Run Imagex.exe /Info on it and post results.


    Here my command: Imagex.exe /INFO Install.wim 4

    Results:

    Code:
    Copyright (C) Microsoft Corp. All rights reserved.
    Version: 6.2.9200.16384
    
    Image Information:
    ------------------
    <IMAGE INDEX="4">
      <DIRCOUNT>13737</DIRCOUNT>
      <FILECOUNT>66029</FILECOUNT>
      <TOTALBYTES>12285492779</TOTALBYTES>
      <CREATIONTIME>
        <HIGHPART>0x01CB8936</HIGHPART>
        <LOWPART>0x131F339A</LOWPART>
      </CREATIONTIME>
      <LASTMODIFICATIONTIME>
        <HIGHPART>0x01CBF8F0</HIGHPART>
        <LOWPART>0x6D7F6938</LOWPART>
      </LASTMODIFICATIONTIME>
      <WINDOWS>
        <ARCH>9</ARCH>
        <PRODUCTNAME>Microsoftr Windowsr Operating System</PRODUCTNAME>
        <EDITIONID>Ultimate</EDITIONID>
        <INSTALLATIONTYPE>Client</INSTALLATIONTYPE>
        <HAL>acpiapic</HAL>
        <PRODUCTTYPE>WinNT</PRODUCTTYPE>
        <PRODUCTSUITE>Terminal Server</PRODUCTSUITE>
        <LANGUAGES>
          <LANGUAGE>en-US</LANGUAGE>
          <DEFAULT>en-US</DEFAULT>
        </LANGUAGES>
        <VERSION>
          <MAJOR>6</MAJOR>
          <MINOR>1</MINOR>
          <BUILD>7601</BUILD>
          <SPBUILD>17514</SPBUILD>
          <SPLEVEL>1</SPLEVEL>
        </VERSION>
        <SYSTEMROOT>WINDOWS</SYSTEMROOT>
      </WINDOWS>
      <NAME>Windows 7 ULTIMATE</NAME>
      <DESCRIPTION>Windows 7 ULTIMATE</DESCRIPTION>
      <FLAGS>Ultimate</FLAGS>
      <HARDLINKBYTES>4947144081</HARDLINKBYTES>
      <DISPLAYNAME>Windows 7 Ultimate</DISPLAYNAME>
      <DISPLAYDESCRIPTION>Windows 7 Ultimate</DISPLAYDESCRIPTION>
    </IMAGE>
    
    What I have in red bold should be the same for yours.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Bobby Digital

    Bobby Digital MDL Novice

    Oct 25, 2009
    4
    0
    0
    #3 Bobby Digital, Jun 25, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Hi,

    index 2 and above do not exist on this wim anymore ....

    Code:
    G:\SystemBuilder\Wim_Files\modified wim>imagex /info install.wim 2
    
    ImageX Tool for Windows
    Copyright (C) Microsoft Corp. All rights reserved.
    Version: 6.1.7601.21716
    
    The specified image [2] was not found in [G:\SystemBuilder\Wim_Files\modified wim\install.wim].
    Therefore i need index 1 to get to 'Ultimate' ....

    Code:
    G:\SystemBuilder\Wim_Files\modified wim>imagex /info install.wim 1
    
    ImageX Tool for Windows
    Copyright (C) Microsoft Corp. All rights reserved.
    Version: 6.1.7601.21716
    
    Image Information:
    ------------------
    <IMAGE INDEX="1">
      <DIRCOUNT>15343</DIRCOUNT>
      <FILECOUNT>71973</FILECOUNT>
      <TOTALBYTES>14595095518</TOTALBYTES>
      <HARDLINKBYTES>5015465828</HARDLINKBYTES>
      <CREATIONTIME>
        <HIGHPART>0x01CE71FE</HIGHPART>
        <LOWPART>0x3FB5F2E6</LOWPART>
      </CREATIONTIME>
      <LASTMODIFICATIONTIME>
        <HIGHPART>0x01CE71FE</HIGHPART>
        <LOWPART>0x420C6124</LOWPART>
      </LASTMODIFICATIONTIME>
      <WINDOWS>
        <ARCH>9</ARCH>
        <PRODUCTNAME>Microsoft® Windows® Operating System</PRODUCTNAME>
        <EDITIONID>Ultimate</EDITIONID>
        <INSTALLATIONTYPE>Client</INSTALLATIONTYPE>
        <HAL>acpiapic</HAL>
        <PRODUCTTYPE>WinNT</PRODUCTTYPE>
        <PRODUCTSUITE>Terminal Server</PRODUCTSUITE>
        <LANGUAGES>
          <LANGUAGE>en-US</LANGUAGE>
          <DEFAULT>en-US</DEFAULT>
        </LANGUAGES>
        <VERSION>
          <MAJOR>6</MAJOR>
          <MINOR>1</MINOR>
          <BUILD>7601</BUILD>
          <SPBUILD>17932</SPBUILD>
          <SPLEVEL>1</SPLEVEL>
        </VERSION>
        <SYSTEMROOT>WINDOWS</SYSTEMROOT>
      </WINDOWS>
      <NAME>Windows 7 Ultimate</NAME>
      <FLAGS>Ultimate</FLAGS>
    </IMAGE>

    Everything seems the same, except for this info wich seems to missing in mine ....

    <DISPLAYNAME>Windows 7 Ultimate</DISPLAYNAME> & <DISPLAYDESCRIPTION>Windows 7 Ultimate</DISPLAYDESCRIPTION>


    But i might have found the issue, since the autounattend wants to install the image @ index 4 ....

    Code:
    <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>2</PartitionID>
                        </InstallTo>
                        <InstallToAvailablePartition>false</InstallToAvailablePartition>
                        <WillShowUI>OnError</WillShowUI>
                        <InstallFrom>
                            <Path>install.wim</Path>
                            <MetaData wcm:action="add">
                                <Key>/IMAGE/INDEX</Key>
                                <Value>4</Value>
                            </MetaData>
                        </InstallFrom>
                    </OSImage>
                </ImageInstall>

    I did not try and change this yet tho, but it does raise another question..... since setup does not 'fallback' to 'any available' image within the wim or shows it .... is this maybe due to the fact i do not have a displayname and displaydescription field when executing imagex /info on the wimfile ..... and why do i not have a displayname and description in the first place ..... ????
     
  4. Bobby Digital

    Bobby Digital MDL Novice

    Oct 25, 2009
    4
    0
    0
    Problem solved by changing the index to 1 in the autounattend.xml ... lol

    But still that leaves me with a question tho.

    Im seeing that in the process of loading an image with dism, u need to provide an index number.
    After Integrating and Saving that to an Image You will loose the rest of the indexes/versions from that image.

    No matter if you are using dism from the commandline or powershell like i do .... orrrrrr am i missing something here :confused:

    cus it would be nice to have ofc a wim with all versions still intact and all of the standard windows updates integrated in wichever version you like to install...

    is the /generalize option on sysprep realy generalizing on a ultimate version if u catch my drift, cus the wim on the original ultimate cd contains all versions when removing the ei.cfg

    can i add the other versions manualy again "after doing all the stuff" .... or will this mess up the wim ... ?
     
  5. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,466
    990
    60
    You have to update each version and add them to the install.wim.

    Once you updated and captured your custom image it wrote that single file to a new install.wim.

    Just update, lets say home premium and then export it to the same image that is ultimate.

    Ill warn you, once you do that, the file structure is going to look VERY different. I added all the editions to my install.wim and once it was done I opened my install.wim and couldn't reconize it a what it was. I had thought something went wrong but it was correctly installing as i told it to in the setup.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. f33nix

    f33nix MDL Member

    Apr 4, 2012
    153
    84
    10
    #6 f33nix, Jun 26, 2013
    Last edited by a moderator: Apr 20, 2017
  7. Bobby Digital

    Bobby Digital MDL Novice

    Oct 25, 2009
    4
    0
    0
    thank you bothfor your info , i figured some stuff out alrdy.
    the thing what im trying todo is create a powershell script that can 'automaticly' create a new windows trough ps scripting not trough 'external' programs like 'UpdatePack7Live' ...
    lots of stuff to figure out an play with, got long way alrdy :)