jessc Posted September 13, 2004 Share Posted September 13, 2004 I was wondering if there was a way to make files using the txtsetup.txt go into the program files directory... i know an can make them go into any dir win the windows directory, but cant find a way of copying files from the i386 in program files.any help appreciated Link to comment Share on other sites More sharing options...
pthomas Posted September 13, 2004 Share Posted September 13, 2004 The way to make files and folders be copied into the Program Files dir is to use your $OEM$ folder. Make a folder called $Progs underneath it and places all files and folders here just the way you want them. Then during the install, the contents of that folder gets copied over into the Program Files dir.All you need to do iw make sure that oempreinstall = yes in your winnt.sif file. For more info see here:http://unattended.msfn.org/xp/oemfolders.htmPaul Link to comment Share on other sites More sharing options...
jessc Posted September 13, 2004 Author Share Posted September 13, 2004 thanx Pthomas, but i already new this and do it that way...but i have been playing with my xp cd, and so far have been able to move all my file that go into my windows and directories withing windows by using the txtsetup file and putting them into my i386 folder, it all work very well.. even used makecab to compress all the files... now i'm wondering how the files are allocated to the program files dir from the i386 folder.all my reg setting are in the appropriate HIVE files...all drivers go into the driver cache dir. and all files associtated with my new theme's cursors and sounds, and other stuff, including install files, go into various dirs within C:\windows.my ultimate goal is to get rid of the $OEM$ folder all together, all thats left in there are the files that go into C:\Program files. Link to comment Share on other sites More sharing options...
pthomas Posted September 13, 2004 Share Posted September 13, 2004 Ok, wasn't exactly sure what you were doing. ..alright....here's an idea...In that case, you could create a batch file that would copy the files off of the cd. Although this isn't quite its created purpose, you can use the svcpack.inf file to kick off the batch file. It's normally used for installing updates at the T-13 min or so section...if you've added any previous updates after SP1, you probably have used it a few times already. It should work fine for what you're wanting to do.Your svcpack.inf file could look like:[Version]Signature="$Windows NT$"MajorVersion=5MinorVersion=1BuildNumber=2600[setupData]CatalogSubDir="\i386"[ProductCatalogsToInstall][setupHotfixesToRun]copyStuff.batPut your copyStuff.bat file in the \i386 dir and then you can put the stuff you want in the program files dir under something like:\i386\ProgFilesthen all your batch file would need to do is copy files off the "%cdrom%\i386\progFiles" dir to "%systemdrive%\program files"the %cdrom% variable is probably wrong, there is one for it but im not sure what it is off the top of my head.-OR-You can launch the batch file off on the first logon with GuiRunOnce. Just edit the winnt.sif file with the needed stuff.Hope that helps a bit more,Paul 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