Topic: Is there a more updated version of "DPs_fnsh.cmd" available?

Hi there,

I've been using a version of DPs_fnsh.cmd for over a year now and i can't remember where i got it from (i certainly didn't write it!) ... its the code that finishes the WINNT.SIF method of driverpacks installation, in particular, it seems to set up all the graphic driver control panel stuff and a few other housekeeping tasks. I'm asking if its still relevant because i'm getting some weirdness here and there but its mainly to do with leftover files rather than big problems. I know a little about batch files and it seems the file i'm using is pretty specific and if there have been any major changes in the method in the last year or so then my file is out of date.

I'm using the file inside this archive:
http://soporific.dsleague.com/downloads/DPs_fnsh.zip

or you can see the code below

Any help much appreciated.

Soporific.

CMDOW @ /HID
REM +==========================================================================+
REM |                                                                          |
REM | Only edit this file if you know what you're doing!                       |
REM |                                                                          |
REM +==========================================================================+



REM +==========================================================================+
REM |   Editable variables.                                                    |
REM |--------------------------------------------------------------------------|
SET DriverPacks=%SystemDrive%\D
SET D=%SYSTEMROOT%\system32\drivers
SET S=%SYSTEMROOT%\system32
SET DPS_TMP=%SYSTEMROOT%\DPs_temp



REM +==========================================================================+
REM |   DriverPack Graphics A control panels.                                  |
REM |--------------------------------------------------------------------------|
SET C=%DriverPacks%\G

IF NOT EXIST %C%\A\1 GOTO DP_GA_2
IF EXIST %S%\atioglx1.dll (

IF EXIST %SystemDrive%\ATICCC.ins (
%C%\A\1\ATICCC.exe -y -o%DPS_TMP%
MSIEXEC /i %DPS_TMP%\ISScript9.Msi /qn /norestart
MSIEXEC /i %DPS_TMP%\ATICCC.msi /qn /norestart
RD /S /Q %DPS_TMP%
)

IF EXIST %SystemDrive%\ATICCP.ins (
%C%A\1\ATICCP.exe -y -o%DPS_TMP%
START /WAIT %DPS_TMP%\Setup.exe /K
RD /S /Q %DPS_TMP%
)

)

:DP_GA_2



REM +==========================================================================+
REM |   DriverPack Graphics B control panels.                                  |
REM |--------------------------------------------------------------------------|
SET C=%DriverPacks%\G

IF NOT EXIST %C%\3\1 GOTO DP_GB_2
IF EXIST %S%\3dfxV2ps.dll (
%C%\3\1\V2_OC_control_panel.exe
)

:DP_GB_2
IF NOT EXIST %C%\S\1 GOTO DP_GB_3
IF EXIST %D%\sisgrp.sys (
%C%\S\1\UVGA3.exe -y -o%DPS_TMP%
START /WAIT %DPS_TMP%\setup.exe -s
RD /S /Q %DPS_TMP%
)

:DP_GB_3



REM +==========================================================================+
REM |   DriverPack Graphics C control panels.                                  |
REM |--------------------------------------------------------------------------|
SET C=%DriverPacks%\G

IF NOT EXIST %C%\A\3 GOTO DP_GC_2
IF EXIST %S%\atioglgl.dll (
%C%\A\3\CPanel.exe -y -o%DPS_TMP%
START /WAIT %DPS_TMP%\Setup.exe /K
RD /S /Q %DPS_TMP%
)

:DP_GC_2



REM +==========================================================================+
REM |   DriverPack Sound A control panels.                                     |
REM |--------------------------------------------------------------------------|

SET C=%DriverPacks%\S

IF NOT EXIST %C%\CR GOTO DP_SA_2
IF EXIST %D%\ha10kx2k.sys (

IF EXIST %D%\ha20x2k.sys IF EXIST %C%\CR\1\Ctzapxx.ini (
EXPAND -R %C%\CR\1\*.* %C%\CR
EXPAND -R %C%\CR\1\common\*.* %C%\CR\1\common
EXPAND -R %C%\CR\1\common\i386\*.* %C%\CR\1\common\i386
EXPAND -R %C%\CR\1\lang\*.* %C%\CR\1\lang
EXPAND -R %C%\CR\1\lang\i386\*.* %C%\CR\1\lang\i386
EXPAND -R %C%\CR\1\win2k_xp\*.* %C%\CR\1\win2k_xp
EXPAND -R %C%\CR\1\win2k_xp\data\*.* %C%\CR\1\win2k_xp\data
EXPAND -R %C%\CR\1\win2k_xp\i386\*.* %C%\CR\1\win2k_xp\i386
DEL /Q %C%\CR\1*.??_
DEL /Q %C%\CR\1\common\*.??_
DEL /Q %C%\CR\1\common\i386\*.??_
DEL /Q %C%\CR\1\lang\*.??_
DEL /Q %C%\CR\1\lang\i386\*.??_
DEL /Q %C%\CR\1\win2k_xp\*.??_
DEL /Q %C%\CR\1\win2k_xp\data\*.??_
DEL /Q %C%\CR\1\win2k_xp\i386\*.??_
COPY /Y %C%\CR\1\common\i386\CtCtlPan.cpl %S%\ > NUL
COPY /Y %C%\CR\1\common\i386\CtPanel.exe %S%\ > NUL
START %C%\CR\1\CTZAPXX.exe /S
GOTO DP_SA_2
)

IF EXIST %C%\CR\2\Ctzapxx.ini (
EXPAND -R %C%\CR\2\*.* %C%\CR
EXPAND -R %C%\CR\2\common\*.* %C%\CR\2\common
EXPAND -R %C%\CR\2\common\i386\*.* %C%\CR\2\common\i386
EXPAND -R %C%\CR\2\lang\*.* %C%\CR\2\lang
EXPAND -R %C%\CR\2\lang\i386\*.* %C%\CR\2\lang\i386
EXPAND -R %C%\CR\2\win2k_xp\*.* %C%\CR\2\win2k_xp
EXPAND -R %C%\CR\2\win2k_xp\data\*.* %C%\CR\2\win2k_xp\data
EXPAND -R %C%\CR\2\win2k_xp\i386\*.* %C%\CR\2\win2k_xp\i386
DEL /Q %C%\CR\2*.??_
DEL /Q %C%\CR\2\common\*.??_
DEL /Q %C%\CR\2\common\i386\*.??_
DEL /Q %C%\CR\2\lang\*.??_
DEL /Q %C%\CR\2\lang\i386\*.??_
DEL /Q %C%\CR\2\win2k_xp\*.??_
DEL /Q %C%\CR\2\win2k_xp\data\*.??_
DEL /Q %C%\CR\2\win2k_xp\i386\*.??_
COPY /Y %C%\CR\2\common\i386\CtCtlPan.cpl %S%\ > NUL
COPY /Y %C%\CR\2\common\i386\CtPanel.exe %S%\ > NUL
START %C%\CR\2\CTZAPXX.exe /S
)

)

:DP_SA_2
IF NOT EXIST %C%\CR\3 GOTO DP_SA_3
IF EXIST %D%\P17.sys (
IF EXIST %C%\CR\3\Ctzapxx.in_ (
EXPAND -R %C%\CR\3\*.* %C%\CR\3
EXPAND -R %C%\CR\3\AddOn\*.* %C%\CR\3\AddOn
EXPAND -R %C%\CR\3\Common\*.* %C%\CR\3\Common
EXPAND -R %C%\CR\3\Lang\i386\*.* %C%\CR\3\Lang\i386
EXPAND -R %C%\CR\3\Win2K_XP\*.* %C%\CR\3\Win2K_XP
EXPAND -R %C%\CR\3\Win2K_XP\i386\*.* %C%\CR\3\Win2K_XP\i386
DEL /Q %C%\CR\3\*.??_
DEL /Q %C%\CR\3\AddOn\*.??_
DEL /Q %C%\CR\3\Common\*.??_
DEL /Q %C%\CR\3\Lang\i386\*.??_
DEL /Q %C%\CR\3\Win2K_XP\*.??_
DEL /Q %C%\CR\3\Win2K_XP\i386\*.??_
)
START %C%\CR\3\CTZapxx.Exe /S
)

:DP_SA_3
IF NOT EXIST %C%\N\AudioUtl.exe GOTO DP_SA_4
IF EXIST %D%\nvapu.sys (
START /WAIT %C%\N\AudioUtl.exe -y -o%DPS_TMP%
START /WAIT %DPS_TMP%\Setup.exe -s -f1
RD /S /Q %DPS_TMP%
)

:DP_SA_4
IF NOT EXIST %C%\T\2\Setup.ex_ GOTO DP_SA_5
IF EXIST %D%\FM801.SYS (

IF EXIST %C%\T\2\Setup.ex_ (
EXPAND -R %C%\T\2\*.* %C%\T\2
DEL /Q %C%\T\2\*.??_
)

START %C%\T\2\Setup.exe /S
)

:DP_SA_5
IF NOT EXIST %C%\V\1\V_ENVY.exe GOTO DP_SA_6
IF EXIST %D%\envysens.sys START %C%\V\V_ENVY.exe -y -o%S%\

:DP_SA_6
IF NOT EXIST %C%\V\2\CPL.exe GOTO DP_SA_7
IF EXIST %D%\vinyl97.sys START /WAIT %C%\V\2\CPL.exe -y -o%S%\
REN %S%\ADeck.ex ADeck.exe

:DP_SA_7



REM +==========================================================================+
REM |   DriverPack Sound B control panels.                                     |
REM |--------------------------------------------------------------------------|
SET C=%DriverPacks%\S

IF NOT EXIST %C%\T\3\T_3.exe GOTO DP_SB_2
IF EXIST %D%\cmaudio.sys START %C%\T\3\T_3.exe

:DP_SB_2
IF NOT EXIST %C%\T\4\T_SSU.exe GOTO DP_SB_3
IF EXIST %D%\TT1724ht.sys START %C%\T\4\T_SSU.exe

:DP_SB_3
IF NOT EXIST %C%\T\5\T_DMX.exe GOTO DP_SB_4
IF EXIST %D%\dmxsens.sys START %C%\T\5\T_DMX.EXE

:DP_SB_4
IF NOT EXIST %C%\S\U GOTO DP_SB_5
IF EXIST %D%\sthda.sys (
COPY /Y %C%\S\U\stlang.dll %SystemRoot%\system32 > NUL
COPY /Y %C%\S\U\stacgui.dll %SystemRoot%\system32 > NUL
COPY /Y %C%\S\U\stacgui.cpl %SystemRoot%\system32 > NUL
MD "%ProgramFiles%\Sigmatel\C-Major Audio\STACGUI"
COPY /Y %C%\S\U\sttray.exe "%ProgramFiles%\Sigmatel\C-Major Audio\STACGUI" > NUL
COPY /Y %C%\S\U\stlang.dll "%ProgramFiles%\Sigmatel\C-Major Audio\WDM" > NUL
)

:DP_SB_5
IF NOT EXIST %C%\SI\1\SI_7012.exe GOTO DP_SB_6
IF EXIST %D%\sis7012.sys (
START %C%\SI\1\SI_7012.exe x -y -o%S%\
)

:DP_SB_6
IF NOT EXIST %C%\SI\2\SI_7018.exe GOTO DP_SB_7
IF EXIST %D%\sis7018.sys (
START %C%\SI\2\SI_7018.exe x -y -o%S%\
)

:DP_SB_7
GOTO EXCEPTIONS



:EXCEPTIONS
SET T=%SystemDrive%\tmp.txt

REM +==========================================================================+
REM |   Workaround for AMD Athlon 64 X2 CPU's lagging issues.                  |
REM |--------------------------------------------------------------------------|
devcon find ACPI\AUTHENTICAMD_-_X86_FAMILY_15_MODEL_* >> %T%
agrep -s -ci "AMD Athlon(tm) 64 X2 Dual Core" %T%
IF %errorlevel% GEQ 1 (
addUsepmtimer.exe
)
DEL /F /Q %T%


REM +==========================================================================+
REM |   Workaround for nVidia nForce 3 ethernet.                               |
REM |--------------------------------------------------------------------------|
devcon find "PCI\VEN_10DE&DEV_00DF" >> %T%
agrep -s -ci "SUBSYS_E0001458&REV_A2" %T%
IF %errorlevel% GEQ 1 (
devcon update "%DriverPacks%\L\NV\123\nvnetbus.inf" "PCI\VEN_10DE&DEV_00DF&SUBSYS_E0001458&REV_A2" > NULL
devcon update "%DriverPacks%\L\NV\123\nvnetfd.inf" "{1a3e09be-1e45-494b-9174-d7385b45bbf5}\NVNET_DEV*" > NULL
)
DEL /F /Q %T%


REM +==========================================================================+
REM |   Workaround for Hercules Fortissimo, Game Theater and Digifire APU's.   |
REM |--------------------------------------------------------------------------|
devcon find "PCI\VEN_1013&DEV_6003*" >> %T%
agrep -s -ci "SUBSYS_005014AF" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_005014AF"
)
agrep -s -ci "SUBSYS_00501681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_00501681"
)
agrep -s -ci "SUBSYS_00521681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_00521681"
)
agrep -s -ci "SUBSYS_00531681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_00531681"
)
agrep -s -ci "SUBSYS_00541681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_00541681"
)
agrep -s -ci "SUBSYS_A0111681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_A0111681"
)
agrep -s -ci "SUBSYS_A0121681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_A0121681"
)
agrep -s -ci "SUBSYS_00511681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_00511681"
)
agrep -s -ci "SUBSYS_A0101681" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "PCI\VEN_1013&DEV_6003&SUBSYS_A0101681"
)
DEL /F /Q %T%
devcon find "HERCULES\*" >> %T%
agrep -s -ci "GTXP_WDM_INTERFACE" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "HERCULES\GTXP_WDM_INTERFACE"
)
agrep -s -ci "GF3_WDM_INTERFACE" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "HERCULES\GF3_WDM_INTERFACE"
)
agrep -s -ci "GF2_WDM_INTERFACE" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "HERCULES\GF2_WDM_INTERFACE"
)
agrep -s -ci "DFIRE_WDM_INTERFACE" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "HERCULES\DFIRE_WDM_INTERFACE"
)
agrep -s -ci "GTXP71_WDM_INTERFACE" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "HERCULES\GTXP71_WDM_INTERFACE"
)
agrep -s -ci "PNPB02F" %T%
IF %errorlevel% GEQ 1 (
devcon install "%DriverPacks%\S\H\2\wdmaherc.inf" "HERCULES\*PNPB02F"
)
DEL /F /Q %T%



REM +==========================================================================+
REM |   KTD (Keep The Drivers) commands.                                       |
REM |--------------------------------------------------------------------------|
:KTD_M2
SET tagfile=\OEM\bin
FOR %%i IN (c d e f g h i j k l m n o p q r s t u v w x y z) DO IF EXIST "%%i:%tagfile%" SET CDDRIVE=%%i:
IF '%CDDRIVE%'=='' GOTO KTD_M1
SET method=2
IF EXIST %CDDRIVE%\OEM\bin\makePNF.exe (

REM 1st sublevel
SET ktd=yes
IF EXIST %CDDRIVE%\OEM\bin\KTDpaths.cmd (
%CDDRIVE%\OEM\bin\KTDpaths.cmd
) ELSE (
START %CDDRIVE%\OEM\bin\WatchDSP.exe
START %CDDRIVE%\OEM\bin\CloseDSP.exe
START %CDDRIVE%\OEM\bin\hideMakePNF.exe
START /WAIT %CDDRIVE%\OEM\bin\makePNF.exe %DriverPacks%
TASKKILL /F /IM CloseDSP.exe /IM hideMakePNF.exe /IM WatchDSP.exe
)

) ELSE (

REM 1st sublevel
IF EXIST %CDDRIVE%\OEM\bin\KTDpatterns.cmd (
%CDDRIVE%\OEM\bin\KTDpatterns.cmd
REM 2nd sublevel
) ELSE (
REM 2nd sublevel
SET ktd=no
%CDDRIVE%\OEM\bin\DevPath.exe %SystemRoot%\Inf
)

)
GOTO 3PSCRIPT

:KTD_M1
SET method=1
IF EXIST %SystemDrive%\KTDpaths.cmd (

SET ktd=yes
%SystemDrive%\KTDpaths.cmd

) ELSEIF EXIST %SystemDrive%\KTDpatterns.cmd (

SET ktd=yes
%SystemDrive%\KTDpatterns.cmd

) ELSEIF EXIST %SystemDrive%\makePNF.exe (

set ktd=yes
%SystemDrive%\WatchDSP.exe
%SystemDrive%\CloseDSP.exe
%SystemDrive%\hideMakePNF.exe
START /WAIT %SystemDrive%\makePNF.exe %DriverPacks%
TASKKILL /F /IM CloseDSP.exe /IM hideMakePNF.exe /IM WatchDSP.exe

)
GOTO 3PSCRIPT

:3PSCRIPT
IF EXIST %SystemDrive%\3pscript.cmd (
START /WAIT %SystemDrive%\3pscript.cmd
)
GOTO CLEANUP

:CLEANUP
IF ktd==no (
RD /S /Q %DriverPacks%
)
IF method==1 (
DEL /F /Q %SystemDrive%\CloseDSP.exe
DEL /F /Q %SystemDrive%\hideMakePNF.exe
DEL /F /Q %SystemDrive%\robocopy.exe
DEL /F /Q %SystemDrive%\WatchDSP.exe
IF EXIST %SystemDrive%\KTDpaths.cmd DEL /F /Q %SystemDrive%\KTDpaths.cmd
IF EXIST %SystemDrive%\KTDpatterns.cmd DEL /F /Q %SystemDrive%\KTDpatterns.cmd
)
DEL /F /Q %SystemDrive%\addUsepmtimer.exe
DEL /F /Q %SystemDrive%\agrep.exe
DEL /F /Q %SystemDrive%\devcon.exe
DEL /F /Q %SystemDrive%\fnsh_log.cmd
DEL /F /Q %0

Re: Is there a more updated version of "DPs_fnsh.cmd" available?

Wow, that's old!
You can update that cmd file yourself by going through each DP .ini file (which are coded similarly).
I have no idea where you could find an updated version of what you have.  Sorry.

Read BEFORE you post.  HWID tool   DriverPacks Tutorial   DONATE!
http://driverpacks.net/userbar/admin-1.png
Not all heroes wear capes, some wear Kevlar!

Re: Is there a more updated version of "DPs_fnsh.cmd" available?

thank you for the tip on how to update the file, i will do so! Cheers.

Re: Is there a more updated version of "DPs_fnsh.cmd" available?

is there a reason you are not useing the latest version of base and the newer finisher?

DP BartPE Tutorial   DP_BASE Tutorial   HWID's Tool     Read BEFORE you post    UserBars!
http://driverpacks.net/userbar/admin-1.png
The DriverPacks, the DP_Base program, and Support Forum are FREE!.

Re: Is there a more updated version of "DPs_fnsh.cmd" available?

Does the new base recognize and remove the old formats automatically?  That might be why...

~TigerC10~