webmedic Posted September 7, 2003 Author Share Posted September 7, 2003 yes you have to edit do.cmd the problem is that the hotfixes in the hotfixes2 and hotfixes3 folder have to have absolute path and will not work like so ./tmp then have to have f:/wxppro/hotfixes/tmp.You need to edit the file by hand and place the correct paths in it. There should only be two of those one for the hotfixes in hotfixes2 folder and one in hotfixes3 folder. I'm working on a way to pass variables so that this can be a little easier but for now you will have to edit the file by hand. If you can not do that there is not much I can do to help you. Link to comment Share on other sites More sharing options...
Tbone2 Posted September 7, 2003 Share Posted September 7, 2003 ok it maybe that i have not slept in a few day i don't see where to put the path.F:\wxppro\hotfixes\tmp\? would be in my caseD:\wxppro\1would that be right?wow webmedic this is a lot different then the first one Tbone2 Link to comment Share on other sites More sharing options...
leo2003 Posted September 7, 2003 Share Posted September 7, 2003 Ok obliged Webmedic for help.I already had decided the problem.But the archives dosnet.inf, winnt.sif, txtsetup.sif that before they were in folder SYS now are in folder FILES. Link to comment Share on other sites More sharing options...
webmedic Posted September 7, 2003 Author Share Posted September 7, 2003 ah ok yes I changed things around a little. I'm trying to get it set up nice to be able to be used easily by others. On side note I have added command line stuff so now you wont have to mess with the directory stuff any more. Let me test a little more and then I'll post it. Link to comment Share on other sites More sharing options...
webmedic Posted September 7, 2003 Author Share Posted September 7, 2003 ok new and improved come and get it. This one will well it wont slice and dice for you but it will automaticly figure out the directory it is being run from. No more need to edit the file also to note it will now clean up after itself better and there is more logic now to add missing directories and things if they are missing. Enjpoy guys and let me know how it goes. This is still for testing but should work ok and is much improved. CLS@echo off:: setlocal enableextensionsecho. > log.txt:: check if hotfix file existsif not exist 1\*.exe echo No hotfixes present. 2>&1 | bin\mtee/+ log.txtif not exist 1\*.exe echo Please add your hotfixes. 2>&1 | bin\mtee/+ log.txtif not exist 1\*.exe goto _end:: create folders Needed for setupecho. 2>&1 | bin\mtee/+ log.txtecho Creating directories and set up. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtSET PrepDir=if "%1" == "/prep" set PrepDir=%2IF DEFINED PrepDir goto :Make_Direcho using for to find dirFOR /F "delims=" %%i IN ('cd') DO SET PrepDir=%%i:Make_Direcho PrepDir = %PrepDir% 2>&1 | bin\mtee/+ log.txtif not exist 4 md 4 2>&1 | bin\mtee/+ log.txtif not exist 5 md 5 2>&1 | bin\mtee/+ log.txtif not exist 5\svcpack md 5\SVCPACK 2>&1 | bin\mtee/+ log.txtif not exist tmp md tmp 2>&1 | bin\mtee/+ log.txt:: delete any files in extract and final folderecho. 2>&1 | bin\mtee/+ log.txtecho Deleteing stale files. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtif exist 4\* del /s /q 4\* 2>&1 | bin\mtee/+ log.txtif exist 5\* del /s /q 5\* 2>&1 | bin\mtee/+ log.txt:: extract hotfix to extract folderecho. 2>&1 | bin\mtee/+ log.txtecho Adding hotfixes from hotfix1 folder 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtfor /f "usebackq delims==" %%i in (`dir /b 1\*.exe`) do COPY /Y "1\%%~ni.EXE" "tmp\????????.EXE" >> log.txtfor /f "usebackq delims==" %%i in (`dir /b 1\*.exe`) do del /f /q 1\%%~ni.EXE >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do Move /Y tmp\%%~ni.exe 1 >> log.txtfor /f "usebackq delims==" %%i in (`dir /b 1\*.exe`) do 1\%%~ni.exe /q /x:4 >> log.txt:: extract hotfix to extract folder thisis for newer style hot fixesecho. 2>&1 | bin\mtee/+ log.txtecho Adding hotfixes from hotfix2 folder 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtfor /f "usebackq delims==" %%i in (`dir /b 2\*.exe`) do COPY /Y "2\%%~ni.EXE" "tmp\????????.EXE" >> log.txtfor /f "usebackq delims==" %%i in (`dir /b 2\*.exe`) do del /f /q 2\%%~ni.EXE >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do MD tmp\%%~ni >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do tmp\%%~ni.exe /Q /T:%PrepDir%\tmp\%%~ni /C >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do xcopy /d /h /y tmp\%%~ni\*.* 4 >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do bin\rm.exe /fvn tmp\%%~ni >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do Move /Y tmp\%%~ni.exe 2 >> log.txtattrib -R -A -S -H tmp\* /S:: extract hotfix to extract folder thisis for newer style hot fixesecho. 2>&1 | bin\mtee/+ log.txtecho Adding hotfixes from hotfix3 folder 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtfor /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do COPY /Y "3\%%~ni.EXE" "tmp\????????.EXE" >> log.txtfor /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do del /f /q 3\%%~ni.EXE >> log.txtfor /f "usebackq delims==" %%i in (`dir /b 3\*.cmd`) do del /f /q 3\%%~ni.cmd >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do MD tmp\%%~ni >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do tmp\%%~ni.exe /Q /T:%PrepDir%\tmp\%%~ni /C >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do xcopy /d /h /y tmp\%%~ni\*.* 4 >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do del /f /q tmp\%%~ni\*.* >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do bin\rm.exe /fvn tmp\%%~ni >> log.txtfor /f "usebackq delims==" %%i in (`dir /b tmp\*.exe`) do Move /Y tmp\%%~ni.exe 3 >> log.txtecho. 2>&1 | bin\mtee/+ log.txtecho Adding cmd files to hotfix3 folder 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtfor /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do echo CLS 2>&1 | bin\mtee /+ log.txt 3\%%~ni.cmdfor /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do echo @echo off 2>&1 | bin\mtee /+ log.txt /+ 3\%%~ni.cmdfor /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do echo start /wait %systemdrive%\install\system\hotfixes3\%%~ni.exe /T:%systemdrive%\install\tmp /C:"%systemdrive%\install\tmp\dahotfix.exe /q /n" /Q 2>&1 | bin\mtee /+ log.txt /+ 3\%%~ni.cmdfor /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do echo EXIT 2>&1 | bin\mtee /+ log.txt /+ 3\%%~ni.cmd:: check extraction took placeecho. 2>&1 | bin\mtee/+ log.txtecho Checking for extracted files 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtif not exist 4\* goto _end:: move hotfix to svcpack folderecho. 2>&1 | bin\mtee/+ log.txtecho Moving hotfixes to svcpack folder. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtcopy /y 1\*.exe 5\svcpack >> log.txtcopy /y 2\*.exe 5\svcpack >> log.txtcopy /y 3\*.cmd 5\svcpack >> log.txtcopy /y 3\*.exe 5\svcpack >> log.txt:: delete unwanted files from extract folderecho. 2>&1 | bin\mtee/+ log.txtecho delete unwanted files from extract folder. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtfor /f %%i in (files\hotkill.ini) do del /f /q /s 4\%%i 2>&1 | bin\mtee/+ log.txtfor /f %%i in (files\hotkill.ini) do del /f /q /s 4\sp2\%%i 2>&1 | bin\mtee/+ log.txt:: move cat files to svcpack folderecho. 2>&1 | bin\mtee/+ log.txtecho move cat files to svcpack folder. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtfor %%i in (4\*.cat 4\update\*.cat 4\sp2\update\*.cat) do move /y %%i 5\svcpack 2>&1 | bin\mtee/+ log.txt::NEW BIT::echo. 2>&1 | bin\mtee/+ log.txtecho Updating sp1.cab. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtxcopy /d /h /u /y 4\*.* files\sp1 >> log.txtxcopy /d /h /u /y 4\sp2\*.* files\sp1 >> log.txtbin\cabarc.exe N 5\sp1.cab files\sp1\*.* >> log.txt::END:::COMPRESS:: compress files and copy to output folderecho. 2>&1 | bin\mtee/+ log.txtecho compress files and copy to output folder. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtbin\compress.exe -d -r -zx21 4\* 5 >> log.txtbin\compress.exe -d -r -zx21 4\sp2\* 5 >> log.txt:: create svcpack.inf fileecho. 2>&1 | bin\mtee/+ log.txtecho create svcpack.inf file. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtecho [Version] 2>&1 | bin\mtee /+ log.txt 5\svcpack.infecho Signature="$Windows NT$" 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho MajorVersion=5 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho MinorVersion=1 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho BuildNumber=2600 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho. 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho [SetupData] 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho CatalogSubDir="\i386\svcpack" 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho. 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho [SetupHotfixesToRun] 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.inffor /f "usebackq delims==" %%i in (`dir /b 1\*.exe`) do echo %%~ni.exe /n /q /u /z 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.inffor /f "usebackq delims==" %%i in (`dir /b 2\*.exe`) do echo %%~ni.exe /Q:A /R:N 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.inf::for /f "usebackq delims==" %%i in (`dir /b 3\*.exe`) do echo %%~ni.exe /T:C:\\install\tmp /C:"c:\\install\tmp\dahotfix.exe /q /n" /Q >> 5\svcpack.inffor /f "usebackq delims==" %%i in (`dir /b 3\*.cmd`) do echo %%~ni.cmd 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho. 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.infecho [ProductCatalogsToInstall] 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.inffor /f "usebackq delims==" %%i in (`dir /b 5\svcpack\*.cat`) do echo %%~ni.cat 2>&1 | bin\mtee /+ log.txt /+ 5\svcpack.inf:: compress svcpack.infecho. 2>&1 | bin\mtee/+ log.txtecho compress svcpack.inf file. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtbin\compress.exe -d -r -zx21 5\svcpack.inf >> log.txt:: comment out the next line if you want to examing svcpack.inf afterwards.:: del /q 5\svcpack.inf:: copy winnt.sif to output folderecho. 2>&1 | bin\mtee/+ log.txtecho copy extra files. 2>&1 | bin\mtee/+ log.txtecho __________________________________________________________________________ 2>&1 | bin\mtee/+ log.txtecho. 2>&1 | bin\mtee/+ log.txtif exist files\winnt.sif xcopy /y files\winnt.sif 5 >> log.txt:: copy dosnet.inf to output folderif exist files\dosnet.inf xcopy /y files\dosnet.inf 5 >> log.txt:: copy TXTSETUP.SIF to output folderif exist files\TXTSETUP.SIF xcopy /y files\TXTSETUP.SIF 5 >> log.txtif exist files\sys\*.sys xcopy /y files\sys\*.sys 5 >> log.txt:: clean up:: if exist 1\* del /s /q 1\*:: if exist 2\* del /s /q 2\*:: if exist 3\* del /s /q 3\*:: attrib -R -A -S -H tmp\* /S:: rd /s /q tmpgoto _end:_endman this is turning into a much larger project than at first I thought it would be. Link to comment Share on other sites More sharing options...
Bachus Posted September 7, 2003 Share Posted September 7, 2003 Well, I'm thinking my earlier problem had to do with me slipstreaming the wrong hotfix version into the setup. Silly me. Link to comment Share on other sites More sharing options...
webmedic Posted September 7, 2003 Author Share Posted September 7, 2003 That could be. I know it's hard to keep track of them all. Have you tried the new script yet. It would be nice to have some feedback on it. Link to comment Share on other sites More sharing options...
DarkPhantasmo Posted September 7, 2003 Share Posted September 7, 2003 I just used your new script made my new iso image and am in the process of installing in Virtual PC as i type this. Right now its in the GUI portion of setup (on the Installing Windows) Link to comment Share on other sites More sharing options...
webmedic Posted September 8, 2003 Author Share Posted September 8, 2003 if you get an error about not finding a directory correcty it's the stupid mdac hotfix. I have yet to find a way to impliment it this way. I may have to do some things a little differently. I will most likely have to laod it through cmdlines.txt or at some other palce but at lest the files are still slipstreamed into the installer. Link to comment Share on other sites More sharing options...
Tbone2 Posted September 8, 2003 Share Posted September 8, 2003 ok this is what i get after removing KB822964 the install works ...but i have no IE or networking anyone have any ideas on this?with KB822964 i get a kernal32 error when gui starts.Tbone2 Link to comment Share on other sites More sharing options...
webmedic Posted September 8, 2003 Author Share Posted September 8, 2003 I'm not sure about this exactly here is a list of the hotfixes that I use. KB820291.exe /n /q /u /z KB821253.exe /n /q /u /z KB821557.exe /n /q /u /z KB823559.exe /n /q /u /z KB823980.exe /n /q /u /z Q322011.exe /n /q /u /z Q323255.exe /n /q /u /z Q327979.exe /n /q /u /z Q328310.exe /n /q /u /z Q329048.exe /n /q /u /z Q329115.exe /n /q /u /z Q329170.exe /n /q /u /z Q329390.exe /n /q /u /z Q329834.exe /n /q /u /z Q810565.exe /n /q /u /z Q810833.exe /n /q /u /z Q811493.exe /n /q /u /z Q814033.exe /n /q /u /z Q814995.exe /n /q /u /z Q815021.exe /n /q /u /z Q815485.exe /n /q /u /z Q817606.exe /n /q /u /z js56nen.exe /Q:A /R:N KB822964.exe /Q:A /R:N q330994.exe /Q:A /R:N Q810577.exe /Q:A /R:N q818529.exe /Q:A /R:N q822925.exe /Q:A /R:N Q823718_.cmd right of fhand the hot fix belongs in the second directory because it was the ie fix and requires different switches than the others but it works fine here. On another note make sure you dont aply the hot fix for windows media player 9.0 as it will not be installed at this point in the install. also send me a copy of your log.txt which is created by the new do.cmd. It dumps much info out which is very usable for me to figure things out with.bah at webmedic dot net Link to comment Share on other sites More sharing options...
ceez Posted September 8, 2003 Share Posted September 8, 2003 wow...so if i read that correctly, instead of using one command line for each of the 36 hotfixes that i downloaded, I can just one line and it will install all the exe's in that particular folder, waiting for each one to finish and starting the next one.if so, pretty good! Link to comment Share on other sites More sharing options...
Tbone2 Posted September 8, 2003 Share Posted September 8, 2003 how do you want this txt file Tbone2 Link to comment Share on other sites More sharing options...
webmedic Posted September 8, 2003 Author Share Posted September 8, 2003 @ceez well no it modifyies the installer and slipstreems the hotfixes into the installer. So you will never see this stuff.@tbone2 jsut email it to me at the address bah at webmedic dot net Link to comment Share on other sites More sharing options...
Tbone2 Posted September 8, 2003 Share Posted September 8, 2003 off to ya SIR Tbone2 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