jaclaz Posted February 11, 2008 Share Posted February 11, 2008 btw, can you post me a txtsetupfile.sif here?i dont have one on me...Here you can find in the attachment a very small one (for RC):http://www.911cd.net/forums//index.php?sho...20983&st=18jaclaz Link to comment Share on other sites More sharing options...
damian666 Posted February 13, 2008 Share Posted February 13, 2008 ok man, thanx, i did try te program... i hate shareware!!!but i did see your point, so tell me .should i make it for .sif only? which will be easyer.or a lot of files? like ini inf and stuff?and, should i take the look of that program and go on from there or make one from scratch?and some help would be great dude.i never have wrestled with this stuff so...damian666 Link to comment Share on other sites More sharing options...
kickarse Posted February 13, 2008 Share Posted February 13, 2008 Now if only I could adapt this setupldr.bin to change the hal on a syspreped machine! Link to comment Share on other sites More sharing options...
jaclaz Posted February 13, 2008 Share Posted February 13, 2008 @damian666Actually, .ini, .inf and .sif files present the same "basic" structure, i.e.:[Section]Item=valuewith just a few minor changes, for example the linked to .ini viewer seems not to "like" items inside double quotes, but I guess that can be easily fixed, in other words, if it will work for .sif files then it will work also for .ini and .inf ones .About helping you, I am afraid I am the latest person on this board with programming knowledge, exception made for a few small batches........ but I know AutoIt has a treeview feature, so it should be possible to write this thingie in AutoIt language.jaclaz Link to comment Share on other sites More sharing options...
damian666 Posted February 14, 2008 Share Posted February 14, 2008 well, then i will just try some stuff man.check back next week or so to see if i ave made a start ok?see yadamian666 Link to comment Share on other sites More sharing options...
jaclaz Posted February 17, 2008 Share Posted February 17, 2008 @allIt seems like the other day was "wish" day on boot-land and Nuno Brito has started working on this app, there is already a fully working (but still missing some asked for features) release here, ninf 1.1, enjoy:http://www.boot-land.net/forums/index.php?...ic=3960&hl=@damian666It seems like there is not anymore need for your work, but thank you very much for your offer to do it , I am sure I can find some other interesting project for you , should you still be willing to write something for the community , again, thanks for your kind offer. jaclaz Link to comment Share on other sites More sharing options...
damian666 Posted February 18, 2008 Share Posted February 18, 2008 hi jaclaz, well, ok man, they beat me to it its ok, we will find another project soon!!thanx for the support and see you around man.damian666 Link to comment Share on other sites More sharing options...
Arie Posted February 18, 2008 Share Posted February 18, 2008 I'm trying to write a batch script which extracts all installation files (I will later change this to only the ones used during the whole installation process) and which changes my TXTSETUP.SIF. So far I've come up with the following, for use with HFSLIP.HFSLIP_POST_SPEEDUP_ALPHA.CMD@ECHO OFFIF NOT DEFINED HFSVER ( SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION IF NOT EXIST HFTOOLS CD.. IF NOT EXIST HFTOOLS\HFSPEEDUP.INI ( ECHO.&ECHO Please make sure you are running this program ECHO from the HFSLIP or the HFSLIP\HFTOOLS folder. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF ) IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF ( ECHO.&ECHO Unable to find SOURCESS\I386\TXTSETUP.SIF. ECHO Please make sure to run HFSLIP first. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF ) IF NOT EXIST HFTOOLS\MUNGE.EXE ( ECHO.&ECHO Unable to find HFTOOLS\MUNGE.EXE. ECHO Please verify that the file exists. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF ) IF EXIST SOURCESS\I386\TXTSETUP.BAK ( DEL /F/Q SOURCESS\I386\TXTSETUP.BAK ))IF NOT DEFINED HFSVER CLSECHO.&ECHO Expand compressed setup files to speed up boot process...FOR /F %%I IN ('DIR SOURCESS\I386\*.*_') DO EXPAND -R SOURCESS\I386\%%IFOR /F %%I IN ('DIR SOURCESS\I386\*.*_') DO DEL /F/Q SOURCESS\I386\%%IECHO.&ECHO Do not load unnessary setup files during boot process...MUNGE HFTOOLS\HFSPEEDUP.INI -i -a SOURCESS\I386\TXTSETUP.SIFGOTO :EOF:EOFHFSPEEDUP.INI"fat = fastfat.sys" "fat = fastfat.sys,,noload""mps_up = halapic.dll" "mps_up = halapic.dll,,noload""mps_mp = halapic.dll" "mps_mp = halapic.dll,,noload""syspro_mp = hal.dll" "syspro_mp = hal.dll,,noload""cpqarray = cpqarray.sys,4" "cpqarray = cpqarray.sys,4,noload""aha154x = aha154x.sys,4" "aha154x = aha154x.sys,4,noload""sparrow = sparrow.sys,4" "sparrow = sparrow.sys,4,noload""symc810 = symc810.sys,4" "symc810 = symc810.sys,4,noload""aic78xx = aic78xx.sys,4" "aic78xx = aic78xx.sys,4,noload""i2omp = i2omp.sys,4" "i2omp = i2omp.sys,4,noload""dac960nt = dac960nt.sys,4" "dac960nt = dac960nt.sys,4,noload""ql10wnt = ql10wnt.sys,4" "ql10wnt = ql10wnt.sys,4,noload""amsint = amsint.sys,4" "amsint = amsint.sys,4,noload""asc = asc.sys,4" "asc = asc.sys,4,noload""asc3550 = asc3550.sys,4" "asc3550 = asc3550.sys,4,noload""mraid35x = mraid35x.sys,4" "mraid35x = mraid35x.sys,4,noload""ini910u = ini910u.sys,4" "ini910u = ini910u.sys,4,noload""ql1240 = ql1240.sys,4" "ql1240 = ql1240.sys,4,noload""aic78u2 = aic78u2.sys,4" "aic78u2 = aic78u2.sys,4,noload""symc8xx = symc8xx.sys,4" "symc8xx = symc8xx.sys,4,noload""sym_hi = sym_hi.sys,4" "sym_hi = sym_hi.sys,4,noload""sym_u3 = sym_u3.sys,4" "sym_u3 = sym_u3.sys,4,noload""asc3350p = asc3350p.sys,4" "asc3350p = asc3350p.sys,4,noload""abp480n5 = abp480n5.sys,4" "abp480n5 = abp480n5.sys,4,noload""cd20xrnt = cd20xrnt.sys,4" "cd20xrnt = cd20xrnt.sys,4,noload""ultra = ultra.sys,4" "ultra = ultra.sys,4,noload""adpu160m = adpu160m.sys,4" "adpu160m = adpu160m.sys,4,noload""dpti2o = dpti2o.sys,4" "dpti2o = dpti2o.sys,4,noload""ql1080 = ql1080.sys,4" "ql1080 = ql1080.sys,4,noload""ql1280 = ql1280.sys,4" "ql1280 = ql1280.sys,4,noload""ql12160 = ql12160.sys,4" "ql12160 = ql12160.sys,4,noload""perc2 = perc2.sys,4" "perc2 = perc2.sys,4,noload""hpn = hpn.sys,4" "hpn = hpn.sys,4,noload""cbidf2k = cbidf2k.sys,4" "cbidf2k = cbidf2k.sys,4,noload""dac2w2k = dac2w2k.sys,4" "dac2w2k = dac2w2k.sys,4,noload""toside = toside.sys" "toside = toside.sys,,noload""lbrtfdc = lbrtfdc.sys" "lbrtfdc = lbrtfdc.sys,,noload""floppy = sfloppy.sys" "floppy = sfloppy.sys,,noload"The problem is that the expand section in the batch script doesn't work. I'm doing something wrong, probably something stupid even, but I can't figure out what. The second problem is that the MUNGE command doesn't quite work; it stops half way through, so it doesn't change all my entries above and another thing is that it changes something like "floppy = sfloppy.sys,blah,blah" to "floppy = sfloppy.sys,,noload,blah,blah", whereas it should only change the exact sentence "floppy = sfloppy.sys" to "floppy = sfloppy.sys,,noload".Stuck here, so I hope that someone can help me on my way again a bit. Link to comment Share on other sites More sharing options...
Yzöwl Posted February 18, 2008 Share Posted February 18, 2008 First of all I'd suggest you at least try using the /b switch with your dir command.<Edit>Also I hope you realise that if any file fails to correctly expand it would be deleted in the next step!@ECHO OFFIF NOT DEFINED HFSVER ( IF NOT EXIST HFTOOLS CD.. IF NOT EXIST HFTOOLS\HFSPEEDUP.INI ( ECHO.&ECHO Please make sure you are running this program ECHO from the HFSLIP or the HFSLIP\HFTOOLS folder. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF) IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF ( ECHO.&ECHO Unable to find SOURCESS\I386\TXTSETUP.SIF. ECHO Please make sure to run HFSLIP first. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF) IF NOT EXIST HFTOOLS\MUNGE.EXE ( ECHO.&ECHO Unable to find HFTOOLS\MUNGE.EXE. ECHO Please verify that the file exists. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF) IF EXIST SOURCESS\I386\TXTSETUP.BAK ( DEL/F SOURCESS\I386\TXTSETUP.BAK) CLS)ECHO.&ECHO Expand compressed setup files to speed up boot process...PUSHD SOURCESS\I386FOR /F %%I IN ('DIR/B/A-D *_') DO ( EXPAND -R %%I>NUL 2>&1&&DEL/F %%I)POPD<snip></Edit> Link to comment Share on other sites More sharing options...
Arie Posted February 18, 2008 Share Posted February 18, 2008 First of all I'd suggest you at least try using the /b switch with your dir command.Thank you, forgot all about that <Edit>Also I hope you realise that if any file fails to correctly expand it would be deleted in the next step!@ECHO OFFIF NOT DEFINED HFSVER ( IF NOT EXIST HFTOOLS CD.. IF NOT EXIST HFTOOLS\HFSPEEDUP.INI ( ECHO.&ECHO Please make sure you are running this program ECHO from the HFSLIP or the HFSLIP\HFTOOLS folder. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF) IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF ( ECHO.&ECHO Unable to find SOURCESS\I386\TXTSETUP.SIF. ECHO Please make sure to run HFSLIP first. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF) IF NOT EXIST HFTOOLS\MUNGE.EXE ( ECHO.&ECHO Unable to find HFTOOLS\MUNGE.EXE. ECHO Please verify that the file exists. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF) IF EXIST SOURCESS\I386\TXTSETUP.BAK ( DEL/F SOURCESS\I386\TXTSETUP.BAK) CLS)ECHO.&ECHO Expand compressed setup files to speed up boot process...PUSHD SOURCESS\I386FOR /F %%I IN ('DIR/B/A-D *_') DO ( EXPAND -R %%I>NUL 2>&1&&DEL/F %%I)POPD<snip></Edit>I thought about it, yes, but didn't know how to solve it. Thank you for pointing it out and for posting a solution My current code is as follows, but it now lacks the part which is supposed to change the TXTSETUP.SIF file. I don't know how to change certain strings in that file automatically. Do you have any idea how I can do this? MUNGE.EXE doesn't seem to be a good solution unfortunately.@ECHO OFFIF NOT DEFINED HFSVER ( SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION IF NOT EXIST HFTOOLS CD.. IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF ( ECHO.&ECHO Unable to find SOURCESS\I386\TXTSETUP.SIF. ECHO Please make sure to run HFSLIP first. ECHO Press any key to quit.&PAUSE >NUL&GOTO :EOF ))IF NOT DEFINED HFSVER CLSECHO.&ECHO Expanding compressed setup files to speed up boot process...PUSHD SOURCESS\I386FOR /F %%I IN ('DIR/B/A-D *_') DO ( EXPAND -R %%I>NUL 2>&1&&DEL /F/Q %%I)POPDGOTO :EOF:EOF Link to comment Share on other sites More sharing options...
Arie Posted February 18, 2008 Share Posted February 18, 2008 Changed some things again...@ECHO OFFIF NOT DEFINED HFSVER ( SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION IF NOT EXIST HFTOOLS CD.. IF NOT EXIST HFTOOLS\HFSPEEDUP.INI GOTO :EOF IF NOT EXIST HFTOOLS\MUNGE.EXE GOTO :EOF IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF GOTO :EOF IF EXIST SOURCESS\I386\TXTSETUP.BAK ( DEL /F/Q SOURCESS\I386\TXTSETUP.BAK ))IF NOT DEFINED HFSVER CLSECHO.&ECHO Expanding compressed setup files to speed up boot process...PUSHD SOURCESS\I386FOR /F %%I IN ('DIR/B/A-D *_') DO ( EXPAND -R %%I>NUL 2>&1&&DEL /F/Q %%I)POPDECHO.&ECHO Do not load unnessary setup files during boot process...MUNGE HFTOOLS\HFSPEEDUP.INI -i -a SOURCESS\I386\TXTSETUP.SIFGOTO :EOF:EOFAnd the input file for the MUNGE command..."cpqarray = cpqarray.sys,4" "cpqarray = cpqarray.sys,4,noload""aha154x = aha154x.sys,4" "aha154x = aha154x.sys,4,noload""sparrow = sparrow.sys,4" "sparrow = sparrow.sys,4,noload""symc810 = symc810.sys,4" "symc810 = symc810.sys,4,noload""aic78xx = aic78xx.sys,4" "aic78xx = aic78xx.sys,4,noload""i2omp = i2omp.sys,4" "i2omp = i2omp.sys,4,noload""dac960nt = dac960nt.sys,4" "dac960nt = dac960nt.sys,4,noload""ql10wnt = ql10wnt.sys,4" "ql10wnt = ql10wnt.sys,4,noload""amsint = amsint.sys,4" "amsint = amsint.sys,4,noload""asc = asc.sys,4" "asc = asc.sys,4,noload""asc3550 = asc3550.sys,4" "asc3550 = asc3550.sys,4,noload""mraid35x = mraid35x.sys,4" "mraid35x = mraid35x.sys,4,noload""ini910u = ini910u.sys,4" "ini910u = ini910u.sys,4,noload""ql1240 = ql1240.sys,4" "ql1240 = ql1240.sys,4,noload""aic78u2 = aic78u2.sys,4" "aic78u2 = aic78u2.sys,4,noload""symc8xx = symc8xx.sys,4" "symc8xx = symc8xx.sys,4,noload""sym_hi = sym_hi.sys,4" "sym_hi = sym_hi.sys,4,noload""sym_u3 = sym_u3.sys,4" "sym_u3 = sym_u3.sys,4,noload""asc3350p = asc3350p.sys,4" "asc3350p = asc3350p.sys,4,noload""abp480n5 = abp480n5.sys,4" "abp480n5 = abp480n5.sys,4,noload""cd20xrnt = cd20xrnt.sys,4" "cd20xrnt = cd20xrnt.sys,4,noload""ultra = ultra.sys,4" "ultra = ultra.sys,4,noload""adpu160m = adpu160m.sys,4" "adpu160m = adpu160m.sys,4,noload""dpti2o = dpti2o.sys,4" "dpti2o = dpti2o.sys,4,noload""ql1080 = ql1080.sys,4" "ql1080 = ql1080.sys,4,noload""ql1280 = ql1280.sys,4" "ql1280 = ql1280.sys,4,noload""ql12160 = ql12160.sys,4" "ql12160 = ql12160.sys,4,noload""perc2 = perc2.sys,4" "perc2 = perc2.sys,4,noload""hpn = hpn.sys,4" "hpn = hpn.sys,4,noload""cbidf2k = cbidf2k.sys,4" "cbidf2k = cbidf2k.sys,4,noload""dac2w2k = dac2w2k.sys,4" "dac2w2k = dac2w2k.sys,4,noload""4,noload,noload" "4,noload""toside = toside.sys" "toside = toside.sys,,noload""lbrtfdc = lbrtfdc.sys" "lbrtfdc = lbrtfdc.sys,,noload""floppy = sfloppy.sys" "floppy = sfloppy.sys,,noload"",,noload,,noload" ",,noload"Haven't tested the above yet. Need to get some sleep now, so will give it a try tomorrow. Hope it'll work, but I still need to add the following to the above script somehow..."fat = fastfat.sys" "fat = fastfat.sys,,noload""mps_up = halapic.dll" "mps_up = halapic.dll,,noload""mps_mp = halapic.dll" "mps_mp = halapic.dll,,noload""syspro_mp = hal.dll" "syspro_mp = hal.dll,,noload" Link to comment Share on other sites More sharing options...
Yzöwl Posted February 19, 2008 Share Posted February 19, 2008 Just a quick rant, because it's one of those things which really does get me riled.I gave the correct switches for the DEL command in my example! There is no /Q switch needed or required in any case throughout your script.As for the munge stuff, I really don't know anything about this tool . If all you wanted was a method of replacing lines in a file there are many tools available to do this which look better than the one you chose. Link to comment Share on other sites More sharing options...
Arie Posted February 19, 2008 Share Posted February 19, 2008 As for the munge stuff, I really don't know anything about this tool . If all you wanted was a method of replacing lines in a file there are many tools available to do this which look better than the one you chose.I'm looking for a simple, free of charge command line tool which can do this for me. Munge belongs to the Windows NT 4.0 Resource Kit and does exactly this... but as I've found out now it can't handle files as large as TXTSETUP.SIF, so I need to look for a different tool. If you know of any command line tool which could do this, please let me know. Link to comment Share on other sites More sharing options...
Arie Posted February 19, 2008 Share Posted February 19, 2008 Seems like I've got it all working now @ECHO OFFIF NOT DEFINED HFSVER ( SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION IF NOT EXIST HFTOOLS CD.. IF NOT EXIST HFTOOLS\SED.EXE GOTO :EXPAND IF NOT EXIST HFTOOLS\HFSPEEDUP.SED GOTO :EXPAND IF NOT EXIST SOURCESS\I386\TXTSETUP.SIF GOTO :EXPAND)IF NOT DEFINED HFSVER CLS:NOLOADECHO.&ECHO Do not load unnessary setup files during boot process...PUSHD SOURCESS\I386IF EXIST TXTSETUP.BAK DEL /F TXTSETUP.BAKCOPY /Y TXTSETUP.SIF TXTSETUP.BAKPOPDPUSHD HFTOOLSSED -f HFSPEEDUP.SED ..\SOURCESS\I386\TXTSETUP.BAK > ..\SOURCESS\I386\TXTSETUP.SIFPOPDGOTO :EXPAND:EXPANDECHO.&ECHO Expanding compressed setup files to speed up boot process...PUSHD SOURCESS\I386FOR /F %%I IN ('DIR/B/A-D *_') DO ( EXPAND -R %%I>NUL 2>&1&&DEL /F %%I)POPDGOTO :EOF:EOFI'm using SED now for replacing the lines I would like to have changed. The following is my input file.# [FileSystems.Load]s/fat = fastfat.sys/fat = fastfat.sys,,noload/g# [Hal.Load]/,2,hal.dll/!s/mps_up = halapic.dll/mps_up = halapic.dll,,noload/gs/mps_mp = halapic.dll/mps_mp = halapic.dll,,noload/gs/syspro_mp = hal.dll/syspro_mp = hal.dll,,noload/g# [SCSI.Load]s/cpqarray = cpqarray.sys,4/cpqarray = cpqarray.sys,4,noload/gs/aha154x = aha154x.sys,4/aha154x = aha154x.sys,4,noload/gs/sparrow = sparrow.sys,4/sparrow = sparrow.sys,4,noload/gs/symc810 = symc810.sys,4/symc810 = symc810.sys,4,noload/gs/aic78xx = aic78xx.sys,4/aic78xx = aic78xx.sys,4,noload/gs/i2omp = i2omp.sys,4/i2omp = i2omp.sys,4,noload/gs/dac960nt = dac960nt.sys,4/dac960nt = dac960nt.sys,4,noload/gs/ql10wnt = ql10wnt.sys,4/ql10wnt = ql10wnt.sys,4,noload/gs/amsint = amsint.sys,4/amsint = amsint.sys,4,noload/gs/asc = asc.sys,4/asc = asc.sys,4,noload/gs/asc3550 = asc3550.sys,4/asc3550 = asc3550.sys,4,noload/gs/mraid35x = mraid35x.sys,4/mraid35x = mraid35x.sys,4,noload/gs/ini910u = ini910u.sys,4/ini910u = ini910u.sys,4,noload/gs/ql1240 = ql1240.sys,4/ql1240 = ql1240.sys,4,noload/gs/aic78u2 = aic78u2.sys,4/aic78u2 = aic78u2.sys,4,noload/gs/symc8xx = symc8xx.sys,4/symc8xx = symc8xx.sys,4,noload/gs/sym_hi = sym_hi.sys,4/sym_hi = sym_hi.sys,4,noload/gs/sym_u3 = sym_u3.sys,4/sym_u3 = sym_u3.sys,4,noload/gs/asc3350p = asc3350p.sys,4/asc3350p = asc3350p.sys,4,noload/gs/abp480n5 = abp480n5.sys,4/abp480n5 = abp480n5.sys,4,noload/gs/cd20xrnt = cd20xrnt.sys,4/cd20xrnt = cd20xrnt.sys,4,noload/gs/ultra = ultra.sys,4/ultra = ultra.sys,4,noload/gs/adpu160m = adpu160m.sys,4/adpu160m = adpu160m.sys,4,noload/gs/dpti2o = dpti2o.sys,4/dpti2o = dpti2o.sys,4,noload/gs/ql1080 = ql1080.sys,4/ql1080 = ql1080.sys,4,noload/gs/ql1280 = ql1280.sys,4/ql1280 = ql1280.sys,4,noload/gs/ql12160 = ql12160.sys,4/ql12160 = ql12160.sys,4,noload/gs/perc2 = perc2.sys,4/perc2 = perc2.sys,4,noload/gs/hpn = hpn.sys,4/hpn = hpn.sys,4,noload/gs/cbidf2k = cbidf2k.sys,4/cbidf2k = cbidf2k.sys,4,noload/gs/dac2w2k = dac2w2k.sys,4/dac2w2k = dac2w2k.sys,4,noload/g# [BusExtenders.Load]s/toside = toside.sys/toside = toside.sys,,noload/gs/lbrtfdc = lbrtfdc.sys/lbrtfdc = lbrtfdc.sys,,noload/g# [ScsiClass.Load]s/floppy = sfloppy.sys/floppy = sfloppy.sys,,noload/g# FIX ANY ERRORS WHICH MAY OCCURs/4,noload,noload/4,noload/gs/,,noload,,noload/,,noload/gI doubt that I need the "fix" entries above, but this was a problem which could occur when using MUNGE.EXE. I need to test all this somewhat further, see if I can clean up my code some more, et cetera. Any input is welcome! And Yzöwl, thank you for your advice! Link to comment Share on other sites More sharing options...
Arie Posted February 27, 2008 Share Posted February 27, 2008 I've finished the initial release of my post-HFSLIP scripts based on this topic.Click here for the dedicated thread for this little project. 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