TUT: Make a VL Editions DVD out of Enterprise EVAL and Professional Retail/OEM

Discussion in 'Windows 7' started by Phazor, Mar 29, 2010.

  1. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,145
    517
    60
    #1 Phazor, Mar 29, 2010
    Last edited: Oct 16, 2010
    Goal of this tutorial: Create a Win7 installation DVD that contains Enterprise and Professional Volume Editions.

    Note: This tutorial assumes that you are using en-US images. If you plan to use images of other languages you may want to delete the 10 lines containing the /RemovePackage parameter from the script, otherwise you will have to adapt them to fit your needs and/or language. Failure to do so will not harm the function of the rest of script, it will however result in error messages in the console window.


    Functions included in the script:

    1) Unneeded packages removal

    2) Volume License Key integration

    3) Integrate a language pack (optional)

    4) Change the image-default TimeZone (optional)

    5) Change the image-default Input-Locale (Keyboard, Numbers, Currency, Time/Date format, etc) (optional)



    The things you need are:

    1) Windows 7 WAIK installed into the default directory (C:\Program Files\Windows AIK\)

    2) A untouched original Microsoft Windows 7 RTM Enterprise Evaluation image

    3) A untouched original Microsoft Windows 7 RTM Retail or OEM image any edition except Enterprise

    4) The language pack that you wish to integrate (optional)



    HowTo:

    To keep the paths short we will do everything directly on the C:\ drive. It should have at least 10GB of free space.

    Step0: Open C:\ and create the following 4 folders: ent, pro, mnt, new, and lp in case you wish to integrate a language pack

    Step1: Copy the install.wim from the Enterprise EVAL image into the ent folder

    Step2: Copy the install.wim from the Retail or OEM image into the pro folder

    Step3: Open the lp folder and extract (unpack) the language pack into it


    Thats the manual part, the rest we will do via a click-and-forget script that delivers us a ready-to-be-burned install.wim with Enterprise and Professional Volume Editions. On very fast machines the script should take approximately 30 minutes to complete. On slower machines it will take respectively longer.


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

    Possible script-customizations:

    Functions removal

    Remove the two lines containing the /AddPackage parameter in case you dont want to integrate a language pack

    Remove the two lines containing the /Set-TimeZone parameter in case you want to keep your images default timezone

    Remove the two lines containing the /Set Input-Locale parameter in case you want to keep your images default input-locale


    Edit functions

    The timezone and the input-locale in the below script are just an example and have to be edited to whatever you really need in case you intend to use them. They are currently set to French because that is what MS uses in their examples as well.


    Editing the TimeZone parameter:

    /Set-TimeZone:"Romance Standard Time" will result in the clock being set to (UTC+01:00) Brussels, Copenhagen, Madrid, Paris

    (UTC+08:00) Taipei on the other hand would be set with /Set-TimeZone:"Taipei Standard Time"

    To find the right TimeZone description click START / AllPrograms / Microsoft Windows AIK / Documentation and open Windows Automated Installation Kit User's Guide. Click the Search tab, check the Search titles only box at the bottom and do a search for Language Pack Default Values. There will be only one result, click it. You will find the correct string in the right hand part of the list after Registry key:. Be sure to type it exactly as it is written there, or better yet just copy and paste it.

    Example Spanish: "Romance Standard Time"

    Example Greek: "GTB Standard Time"

    Example Italian: "W. Europe Standard Time"



    Editing the Input-Locale parameter:

    /Set-InputLocale:040c:0000040c will result in a French input-locale because 040c is the code for France.

    Italian on the other hand would be 0410 so the parameter would be /Set-InputLocale:0410:00000410

    To find the right code do another search for Default Input Locales. There will be only one result, click it. The center column contains the hexadecimal values we need. The leading 0x and the leading zeroes after that can be discarded, which means you only copy and paste the last 3-5 numbers/chars into the script. The first part in the example parameter is currently 4 digits long but it can be 5 in the cases where it is required. The second part is 8 digits long and it must not be more or less. Thus be sure to copy and paste only the numbers/chars after the last leading zero. Also be sure to always set it in both parts of the parameter as it covers both keyboard and numbers/currency/date/etc in one line. Do not mix them.

    Wrong: /Set-InputLocale:040c:00000410

    Wrong: /Set-InputLocale:0410:0000040c

    Right: /Set-InputLocale:0410:00000410

    Right: /Set-InputLocale:040c:0000040c

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


    Usage:

    1) Copy and paste the code below into a empty textfile and save it as entpro.cmd

    2) Edit it as needed, doublecheck that youve made no errors and save again

    3) Move entpro.cmd into the following folder: C:\Program Files\Windows AIK\Tools\PETools (otherwise the script cant work)

    4) Run entpro.cmd as administrator, sit back and watch a soap while your new install.wim is being generated

    5) When the .wim is done click START / AllPrograms / Microsoft Windows AIK and open Windows System Image Manager

    6) Click Tools / Create Catalog..., browse to the new install.wim located in the 'new' folder and let WSIM create a set of fresh updated catalog files for both editions

    7) Open your Retail or OEM image with UltraISO, delete the existing install.wim and all the catalog files and the ei.cfg from it

    8) Put the new install.wim and the new catalog files where the deleted ones were and save the ISO


    Thats it, your install DVD with Enterprise and Professional Volume Editions is completed. :)

    Activation: KMS or MAK


    EDIT: I just noticed that the forum software messes up the script. It looks OK in the editor but when submitted there are suddenly extra spaces where only one space should be and this might break the function.

    Copy and paste would therefore be a bad idea so i removed the script-text and attached it as a ready-to-be-used CMD file instead. The CMD contains some lines with multiple spaces too, but unlike the ones the forum software wrongly added these extra spaces are intentional and wont harm the function of the script. In other words; the attached CMD is without errors.


    EDIT2: Attached new 7zip archive with scripts for 32 and 64 bit images.
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. pkaji123

    pkaji123 MDL Addicted

    Aug 22, 2009
    763
    224
    30
    Thanks for the handy tutorial..
    will try it..
    +1
     
  3. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,145
    517
    60
    I just noticed that the forum software messes up the script. It looks OK in the editor but when submitted there are suddenly extra spaces where only one space should be and this might break the function.

    Copy and paste would therefore be a bad idea so i removed the script-text and attached it as a ready-to-be-used CMD file instead. The CMD contains some lines with multiple spaces too, but unlike the ones the forum software wrongly added these extra spaces are intentional and wont harm the function of the script. In other words; the attached CMD is without errors.

    In case you have already copied and pasted the posted script, please delete it and use the attached CMD instead. Otherwise the script may not function as it should.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mspL4

    mspL4 MDL Novice

    Jun 11, 2010
    2
    0
    0
    Hey!,

    I'm trying to get this dism script to work and have copied the cmd file to the correct path as specified, however whenever I attempt to run the dism.cmd file I get the following error:

    Updating path to include dism, oscdimg, imagex

    C:\Program Files\Windows AIK\Tools\PETools\
    C:\Program Files\Windows AIK\Tools\PETools\..\x86
    C:\Program Files\Windows AIK\Tools\PETools\..\x86\Servicing;

    The input line is too long.
    The syntax of the command is incorrect.

    Is this an error with the script itself or am I doing something wrong? I'm running this on a standalone XP machine, I have Administrative privileges.

    Thanx in Advance

    mspL4
     
  5. kowal018

    kowal018 MDL Novice

    Oct 15, 2009
    18
    6
    0
    And X64?? How to make?
     
  6. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,145
    517
    60
    Same procedure.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. kowal018

    kowal018 MDL Novice

    Oct 15, 2009
    18
    6
    0
    References x86, for example in lines (6,7,9,10,14 and 15), remain so for the x64 architecture?
     
  8. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,145
    517
    60
    Now i see what you mean.

    The answer is yes and no.

    The lines above 'echo Processing Enterprise' do not have to be changed as there is an equal/not-equal check, however, all the x86 references below 'echo Processing Enterprise' would have to be replaced with amd64.

    New 7zip with scripts for both architectures in attachment.
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. kowal018

    kowal018 MDL Novice

    Oct 15, 2009
    18
    6
    0
    Thanks man!
    I'll test and post feedback.
     
  10. kowal018

    kowal018 MDL Novice

    Oct 15, 2009
    18
    6
    0
    Best script I have come across!
    Thanks for the great work!
     
  11. ozzyboy

    ozzyboy MDL Member

    May 18, 2009
    162
    5
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,145
    517
    60
    These are of course the Volume License Keys (GVLK).

    There is only one for each edition, therefore they are the only ones that can be used to make a VL Editions disk.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Danvart

    Danvart MDL Novice

    Nov 18, 2008
    2
    0
    0
    #13 Danvart, Jan 12, 2011
    Last edited: Jan 13, 2011
    hi to all,

    I have a question for the LIP.
    I have the language It:

    windows6.1-kb972813-x64-it-it_3f0f5d78202e074e17a495beec821e1d326a8e2a.exe

    To the folder LP. But I have not decompressed lp.cab
    I have decompressed it with Universal Extractor or 7z and after the folder LP contain many files and folders.
    Is right?

    But other than that, With these explanations It's not easy. I do not know if anyone has tried it. I tried and after starting the script I received many execution errors. Finally, after almost half an hour, running the script has stopped because it was not Imagex found.

    Many thanks
     
  14. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,145
    517
    60
    Yes, as the instruction says, the langpack has to be extracted (unpacked) into the lp folder.


    As for the script; originally i made this for myself so i do know that it works flawlessly if you meet all prerequisites.

    Since you got errors, some suggesting a missing ImageX, i can only assume that you didnt pay close enough attention to the items 'Note' and/or 'The things you need'.

    I therefore suggest you check those items again and adapt where necessary.

    If you have any questions, feel free to ask.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...