Nov 18 2006, 09:18 PM Post
#1 | |
| Member ![]() ![]() Group: Members Posts: 124 Joined: 22-April 06 From: Vancouver, Canada Member No.: 94394 OS: Vista Ultimate x64 |
Ok I really disliked the fact that during driver decompression using the drivers from CD or driverpacks.net method the screen would stay blank for up to 5 minutes. It looks like the installation is frozen. The solution is here. If you use a self extracting 7zip file with the right switches it will display a progress bar during extraction. code for the self extracting archive is DPdriverpack-name.exe x -y -aoa -o"%SystemDrive%" put the command FOR %%h IN (%CDDRIVE%\OEM\Drivers\DP*.exe) DO "%%h" x -y -aoa -o"%SystemDrive%" in your presetup.cmd file and the driverpacks will extract showing a progress bar. no more blank screen. Make sure the path reflects the path to your files. Note: Your driverpack files must begin with "DP" for it to work. Or change the batch file. To take it one step further I wrote a batch file to convert your driverpacks (.7z files) to sfx files (.exe). It modifies the dialog for each file so it will say "Extracting 3 of 10 > DP_driverpack_name..." Example ![]() How it works is... 1) makes a list of all the .7z archives in the current folder 2) counts them 3) creates a resource script (.rc) based on file number and name 4) compiles the resource script (.rc) into a resource file (.res) 5) uses reshacker to update the .sfx file with the new dialog (.res file) 6) converts the .7z file to a .exe self extracting file (via copy. NO recompression) 7) repeats 3-6 until all files are converted The original .7z files are not deleted and the creation of the .exe files is very quick. Note: NO recompression is done to the driverpacks. All it does is add the sfx module via the copy command. It runs as fast as your PC can copy a file. About 10 seconds or so for the 10 archives I used (223mb). After conversion just put the .exe files in your OEM\drivers folder and add the above line to your presetup.cmd file and that's it. Download the DP_files.zip file and extract it. put the files in the folder with your .7z driver files. you will have the modify.bat file and the bin folder in there. Run the modify.bat file. You no longer need the .7z files, just the .exe files. Download files modify.bat CODE @echo off set x=1 set z=0 dir /b /a-d DP*.7z > temp.txt for /F "tokens=* delims= " %%h in (temp.txt) do call :count for /F "tokens=* delims= " %%J in (temp.txt) do call :sub %%J del /q temp.txt del /q bin\ResHacker.ini del /q bin\ResHacker.log goto :eof :sub >diag.rc echo 500 DIALOG 0, 0, 195, 30 >>diag.rc echo STYLE DS_FIXEDSYS ^| DS_MODALFRAME ^| DS_CENTER ^| WS_POPUP >>diag.rc echo CAPTION "Extracting" >>diag.rc echo LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US >>diag.rc echo FONT 8, "MS Shell Dlg" >>diag.rc echo { >>diag.rc echo CONTROL "Extracting %x% of %z% > %~n1", 69, STATIC, SS_LEFT ^| WS_CHILD ^| WS_VISIBLE, 5, 2, 185, 8 >>diag.rc echo CONTROL "Progress1", 1000, "msctls_progress32", PBS_SMOOTH ^| WS_CHILD ^| WS_VISIBLE ^| WS_BORDER, 5, 12, 185, 13 >>diag.rc echo } bin\gorc.exe /r diag.rc bin\ResHacker.exe -addoverwrite bin\custom.sfx, bin\custom.sfx, diag.res,,, copy /b bin\custom.sfx + %~nx1 %~n1.exe del /q diag.rc del /q diag.res set /A x=%x%+1 goto :eof :count set /A z=%z%+1 goto :eof Tested works with Pyron's, ile5's and BTS's setup.ex_ I use the program gorc.exe to compile the .rc files to .res files from below Source The background in my pic is achieved with this method here Any feedback would be great. Thanks. :EDIT: I removed the underscore "_" from the batch file to match the way BTS renames the files. This post has been edited by jaws75: Dec 2 2006, 04:46 AM |
| | |
jaws75 [solution] Progress bar while extracting driver packs Nov 18 2006, 09:18 PM
Sonic Good job ! Nov 19 2006, 02:19 PM
jaws75 Thanks for the feedback.
If anyone has any ideas ... Nov 19 2006, 02:45 PM
Gyppie Hey!
I realy love this. Great job!
I als... Nov 19 2006, 06:53 PM
jaws75 QUOTE (Gyppie @ Nov 19 2006, 05:53 PM) I ... Nov 19 2006, 07:07 PM
jaws75 For some reason I write my batch file with...
STY... Nov 21 2006, 11:02 PM
gospeed QUOTE (jaws75 @ Nov 18 2006, 10:18 PM) No... Dec 2 2006, 12:02 AM
jaws75 QUOTE (gospeed @ Dec 1 2006, 11:02 PM) QU... Dec 2 2006, 12:16 AM
gospeed WOW! now that is fast service!
I will ... Dec 2 2006, 12:21 AM
gospeed Well, I guess I should ask, what method if driverp... Dec 2 2006, 03:14 AM
jaws75 I use the driverpacks from BTS as well as the fake... Dec 2 2006, 03:37 AM
gospeed Yes to all
My Presetup wording is exactly that.... Dec 2 2006, 04:00 AM
Camarade_Tux @jaws75, have you posted this on DP's forum ? Dec 2 2006, 04:11 AM
jaws75 QUOTE (Camarade_Tux @ Dec 2 2006, 03:11 A... Dec 2 2006, 04:35 AM
gospeed works perfectly now, thank you so much! No mor... Dec 2 2006, 04:41 AM
jaws75 QUOTE (gospeed @ Dec 2 2006, 03:41 AM) Th... Dec 2 2006, 04:59 AM![]() ![]() |
| Lo-Fi Version | Time is now: 22nd November 2009 - 10:12 AM |