QUOTE (tommyp @ Oct 30 2005, 07:32 AM)

I'm running into trouble finalizing Yzöwl's code (with some mods to HFSLIPify it). Can someone help me?
Let's say your file/folder structure is this:
SOURCESS\I386\FOLDER1
SOURCESS\I386\FOLDER1\FILENAME1.FIL
SOURCESS\I386\FOLDER2
SOURCESS\I386\FOLDER2\FILENAME2.FIL
What lines does txtsetup.sif need so that it finds the files during the file copy stage? The code below doesn't do it. What am I missing?
CODE
[WinntDirectories]
1000 = "FOLDER1"
1001 = "FOLDER2"
[SourceDisksFiles]
FILENAME1.FIL = 1,,,,,,,1000,0,0
FILENAME2.FIL = 1,,,,,,,1001,0,0
Well, if the files
filename1.fi_ and
filename2.fi_ are in the <SourceDrive>:\I386 folder during setup it will work fine, but if they are located in <SourceDrive>:\I386\FOLDER1 and <SourceDrive>:\I386\FOLDER2 respectily it will not work, at least that FOLDER1 and FOLDER2 are declared in DOSNET.INF like this
CODE
[Directories]
d1 = \
d2 = \folder1
d3 = \folder2
.
.
.
[Files]
d2, FILENAME1.FIL
d3, FILENAME2.FIL
[]
I think that there's an error on Yzöwl's script, not completely sure, but in DOSNET.INF, under [Directories],
d1 = \ refers to the <SourceDrive>:\I386 folder, the files are actually there, that's why in the [Files] section you only especify the filename, in Yzöwl's script he creates the DOSNET.INF like this
CODE
[Directories]
d1 = \
d2 = \I386\folder1
d3 = \I386\folder2
.
.
.
[Files]
d2, FILENAME1.FIL
d3, FILENAME2.FIL
I think that could be the problem because WinSetup would think that FILENAME1.FIL is in <SourceDrive>:\I386\
I386\FOLDER1Personally i don't like the idea of recreating the needed folder structure under the <SourceDrive>:\I386 folder. Well imagine this situation.
You put this files under you HFEXPERT\SYSTEM32 folder...
HFEXPERT\SYSTEM32\MyDir\DllVer.dll
HFEXPERT\SYSTEM32\YourDir\DllVer.dll
and suppose that the file in <MyDir> is a newer version that the same file in <YourDir>, when those files get installed there would be 2 version of the same DLL in the system, one being older that another... I don't know if that could create problem in WinRegistry, but for me would be better just put everything you need under <SourceDrive>:\I386, there will be no need to alter DOSNET.INF with extra source folder in the [Directories] section, just throw the files with
d1, FILENAME1.FIL, there would be a more clean <SourceDrive>:\I386 folder, not those strange directories scatered all over the place... and the need structure would be recreated by TXTSETUP.SIF
as far as I know, somebody correct if I'm wrong, one of the functions of DOSNET.INF is to copy the source files on the hard disk during the textmode part of windows setup, I think is uses a folde called $WINNT$.$LS$ or something like that; after that, the final location of those files in created by the [WinntDirectories] section on TXTSETUP.SIF. So, i think that cosmetically is unncessary to recreate the custom folder structure under the sources media.
The logic in my script is just to throw the files in WORK\I386E, then let HFSLIP compress them and add them at the end of DOSNET.INF using
d1, FILANEMES.FIL, then I insert the final (and so needed) folder structure in [WinntDirectories] section in TXTSETUP.SIF along with their proper filenames declarations in then [SourceDiskFiles] section.
That way, you just end with one version of any file, the source files stay in <SourceDrive>:\I386, and the ultimate goal of all this is reached succefull.
Oh, by the way, i tested the halmacpi.dll thing, and it didn't work too, this file, I think, it's the Hardware abstraction layer (HAL.DLL) that end in system32... but this particular file (halmacpi.dll) is for multiprocessor systems kernel... that why I think that have nothing to do with my problem, cause my test system is an UniProccesor system, the proper hal.dll I think it's halaacpi.dll, cause in fact TXTSETUP.SIF rename the file properly acording to the detected system during installation, you can check out this in [Hal] section in TXTSETUP.SIF... I suppose the during the hardware detection WinSetup detect the type of system and TXTSETUP.SIF install the proper file, in my case I'm testing on "ACPI Uniprocesor PC", so setup uses the halaacpi.dll, rename it to hal.dll an install it... I compared the expanded halaacpi.dl_ that it's my in my sourcess media against my installed and running C:\winnt\system32\hal.dll and both files are the same..., that why I think that halmacpi.dll got nothing to do with the UpdateRollup problem in WU... and another clue it that in your previous HFSLIP version HFSLIP_51017 there were no problem with WU... everything worked like a charm... also, in this version there are some application which I was testing to install via a CMD file launched in SVCPACK.INF that now doesn't install, these program (Paint Shop Pro 9, and TextPad 4.7.3) I install them using MSI files and now if use the /log switch to see what happened they abort with this error in the log
DEBUG: Error 2103 : Coudl not resolve path for shell folder 26
MSI (s) (28:2C) Product JASC Paint Shop Pro 9 -- Internal error 2103, 26