LeveL Posted September 8, 2007 Share Posted September 8, 2007 OK, this is tough to work out - I stripped a lot of stuff out of Windows...... but nevermind all that - all I want to ask is, how do these 2 folders get created when Windows installs:%ProgramFiles%\Windows Media Player%ProgramFiles%\Internet ExplorerIf the question was "How does system32 get created" the answer would be:In I386 there is a file "TXTSETUP.SIF". Open this with Notepad and VOILA! there it is under [WinntDirectories] like so:[WinntDirectories]1 = "\"2 = system323 = system32\config4 = system32\drivers5 = system7 = system32\ras9 = system32\spool10 = system32\spool\drivers11 = system32\spool\drivers\w32x86\312 = system32\spool\prtprocs13 = system32\spool\prtprocs\w32x8614 = system32\wins15 = system32\dhcp16 = repair17 = system32\drivers\etc18 = system32\spool\drivers\w32x8619 = system32\drivers\disdn20 = inf21 = Help22 = Fonts23 = Config24 = msagent\intl25 = Cursors26 = MediaThis is as the section implies "WINNT" directories (its called "WINDOWS" in XP, WINNT is from Windows 2000 but I guess Microsoft just skimped a bit here and called the section in the TXTSETUP.SIF file for XP "[WinntDirectories]")So thats it man, all this refers to is Windows directories, theres no mention of "Documents and settings" or "Program Files" so how are THOSE folders created?Totally perplexed as to how Windows makes these folders. Link to comment Share on other sites More sharing options...
ricktendo Posted September 9, 2007 Share Posted September 9, 2007 (edited) It is not possible to use txtsetup.sif to copy files to %ProgramFiles%... You have to use INF addons Edited September 9, 2007 by ricktendo64 Link to comment Share on other sites More sharing options...
Oleg_II Posted September 9, 2007 Share Posted September 9, 2007 You can define Documents and settings folder name and location in HIVESFT.INF: change the value of DEFAULT_PROFILES_DIR under the String section.I'd be interested to know about Program Files folder too. But it's not as easy. Maybe it's hardcoded in on of the system DLL files. Link to comment Share on other sites More sharing options...
gosh Posted September 10, 2007 Share Posted September 10, 2007 It's important to conceptualize this:text mode setup is dumb. It doesn't have any plug and play and no logging. Therefore everything has to be statically set. When you run test mode setup, it uses txtsetup.sif to build the windows folder, as you've noticed. Everything in txtsetup.sif is relative to the windows folder. Once text mode setup is done you only have a windows folder, not documents and settings or program files.It is in the 32 bit gui mode setup that user programs are installing using syssetup.inf. Syssetup.inf calls wmp.inf and other wmp inf's which install media player. Syssetup.inf also calls ie.inf during the inf.always phase. the file used by gui mode setup and post setup is layout.inf. This file is used to determine where the files go to.-gosh Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now