A custom 'hosts' on my Win7 ISO?

Discussion in 'Windows 7' started by LQQL, May 7, 2010.

  1. LQQL

    LQQL MDL Addicted

    Apr 21, 2009
    773
    120
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,089
    60
    What I did was to mount the install.wim with DISM and make the changes to the internal copy.
     
  3. LQQL

    LQQL MDL Addicted

    Apr 21, 2009
    773
    120
    30
    #3 LQQL, May 7, 2010
    Last edited: May 7, 2010
    (OP)
    Hm, thank you.

    Will try this right away!

    Edit: Hm, I did try it but unfortunately I don't see how. How did you do it? Can you please give me a lil step-by-step tutorial after mounting the install.wim?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,256
    670
    60
    #5 MasterDisaster, May 7, 2010
    Last edited by a moderator: Apr 20, 2017
    Here are the steps on how to do it.

    Code:
    dism /Mount-Wim /Wim-File:D:\DVD\install.wim Index:5 /MountDir:D:\mount
    1. Go to D:\mount\Windows\system32\drivers\etc
    2. Replace the hosts file with your custom hosts
    Code:
    dism /Unmount-Wim /MountDir:D:\mount /commit
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Mr Been

    Mr Been MDL Member

    Feb 24, 2008
    229
    61
    10
    OR place it in this folder on your Install-DVD:

    $OEM$\$$\System32\Drivers\etc\HOSTS

    and it will be replaced during installation
     
  6. LQQL

    LQQL MDL Addicted

    Apr 21, 2009
    773
    120
    30
    Will do that! Thank you very much!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. LQQL

    LQQL MDL Addicted

    Apr 21, 2009
    773
    120
    30
    To report back; It works just flawlessly and I wanna say another 'thank you' to you guys! It helped me a lot!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...