Jump to content

replacing hosts in system32\drivers\etc


ctpooon

Recommended Posts

hi,

If I want to put a modified hosts file under system32\drivers\etc, where should I put the modified file in hfslip directory?

I have read the manual, there is some places I think it is suitable

1. HFEXPERT\WIN\system32\drivers\etc\hosts

2. REPLACE\I386\HOSTS

3. HFEXPERT\APPREPLACEMENT\drivers\etc\hosts

4. FIX\system32\drivers\etc\hosts

which one should be the correct place to placing the files?

thanks

Link to comment
Share on other sites


>> 1. HFEXPERT\WIN\system32\drivers\etc\hosts

HFEXPERT\WIN is not intended to replace existing files in the source; you could run into problems with floppy or network-based installs. This should work for CD installs, but it will cause Windows setup to copy your file twice since it already exists in the source and is handled by TXTSETUP.SIF through a different destination folder ID (17). The REPLACE folder is better suited for this.

From the HFSLIP guide: "New entries are created in TXTSETUP.SIF and DOSNET.INF so only use this for NEW binaries."

>> 2. REPLACE\I386\HOSTS

This should work.

>> 3. HFEXPERT\APPREPLACEMENT\drivers\etc\hosts

It should be placed in HFEXPERT\APPREPLACEMENT; HFSLIP doesn't look in subfolders.

This is only necessary if Windows setup complains about an invalid file.

>> 4. FIX\system32\drivers\etc\hosts

This won't work as this folder structure doesn't exist on your CD. The proper location is FIX. But this won't work in the future when HFSLIP won't automatically move items from FIX to REPLACE\I386 any longer.

Edited by Tomcat76
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...