Topic: Using DPInst.exe Tool

Using DPInst.exe Tool



It is a nice big  project you've done thank you for your
effort

i tried DriverPacks with your DPs_BASE.exe for my unattended
Windows Pro Sp3 install
everything worked well for my pc except
the long time waiting for DPsFnshr.exe to complete its job
iam using method 2 with KTD all the  packages include 3rd party ones & my own ones
because of that i costomizd the way DriverPacks works
i removed ROE.exe entry from CMDLINES.TXT that is responsible
for running DPsFnshr.exe during login
to save time indeed
i used the Localized DPInst.exe for my arabic Windows
i ran this batch code instead of DPsFnshr.exe
*******************
@echo off
color 4f
echo                     *** Written by Faraj Ali ***
echo.
echo.
RD /S /Q %systemdrive%\D
%systemdrive%
For %%a in (*.xls *.ini *.exe *.txt *.ins) do del %systemdrive%\"%%a"

if not Exist %systemDrive%\Ali md %systemDrive%\Ali
SET TAGFILE=\OEM
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) DO IF EXIST "%%i:%TAGFILE%" SET CDDRIVE=%%i:& GOTO DPsFound
:DPsFound
md Ali\DriverPacks
copy /y %CDDRIVE%\OEM\DP*.7z %systemDrive%\Ali\DriverPacks
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
reg delete %KEY% /V DevicePath /f
reg add %KEY% /V DevicePath /t REG_EXPAND_SZ /D %systemRoot%\inf /f
set KEY=
*********************
so that when any new hardware added after installation completetd
i open Ali's folder which is reside in the %systemDrive%
& click on this Batch file "DriverInstall.cmd"
**********************
@echo off
Mode Con: Lines=90 Cols=90
color 1f
echo off
for  /f "tokens=1,* delims==" %%a in ('type Re') do echo %%b
set /P NUMB=Select suitable Package No^>


for  /f "tokens=1,2,3 delims== " %%a in ('type Re') do if %NUMB%==%%c set SS=%%a
 
color 4f
un7zip.exe "%systemDrive%\Ali\DriverPacks\%SS%" "%~dp0"

DPInst.exe
RD /S /Q D
For %%a in (*.xls *.ini *.txt *.ins) do del %%a
exit
************************************
Re file is

DPC902.7z = Chipset= 1
DPCP804.7z = CPU= 2
DPM901.7z = MassStorage= 3
DP_HID_w.7z = HumanInterfaceDevice= 4
DPGA8121.7z = Graphics_A= 5
DPGB8121.7z = Graphics_B= 6
DPGC8121.7z = Graphics_C= 7
DP_Monit.7z = Monitors= 8
DPSA805.7z = Sound_A= 9
DPSB805.7z = Sound_B= 10
DP3P0001.7z = PrintersCanonLaserjet= 11
DP3P0002.7z = PrintersHP= 12
DP_Print.7z = PrintersCanonInkjet= 13
DPL8121.7z = LAN= 14
DPW806.7z = WireLessLan= 15
DP_Modem.7z = Modems= 16
DP_Broad.7z = Broadband= 17
DP_Bluet.7z = Bluetooth= 18
DP_Mine_.7z = N70+Tp-Link+CMDA= 19
DP_USB_w.7z = USBDivces= 20
DP_Phone.7z = Phones= 21
DP_Scann.7z = Scanners= 22
DP_TV_wn.7z = TVs= 23
DP_WebCa.7z = WebCams= 24

************************************
All required files & the folder will be copied during text-mode installation
from $OEM$\$1\Ali

DriverInstall.cmd
7-zip32.dll
Data
DPInst.exe
DPInst.xml
Re
un7zip.exe
Data folder
**********************
this is my costomizd DPInst.xml
<?xml version="1.0" ?>
  <dpinst>
    <search>
      <subDirectory>*</subDirectory>
    </search>

    <language code="0x0401">
      <dpinstTitle>xxxxx</dpinstTitle>
      <welcomeTitle>xxxxx</welcomeTitle> xxxxx</welcomeIntro>
      <eulaHeaderTitle>xxxxx</eulaHeaderTitle>
      <eulaYesButton>&xxxxx</eulaYesButton>
      <eulaNoButton>&xxxxx</eulaNoButton>
      <installHeaderTitlxxxxx</finishTitle>
      <finishText>xxxxx</finishText>
      <eula type="txt" path="Data\Eula401.txt"/>
    </language>

    <icon>Data\SETUP11.ICO</icon>
    <headerPath>Data\Header.bmp</headerPath>
    <watermarkPath>Data\Water.bmp</watermarkPath>
    <scanHardware/>
    <promptIfDriverIsNotBetter/>
    <enableNotListedLanguages/>
    <suppressAddRemovePrograms/>
    <legacyMode/>
  </dpinst>
*******************
i want your opinion pls if something
i forget or missed
i tried install just one Tpl-link wireless
adaptor & installed well
thank you again

Last edited by FarajAli (2009-04-03 02:24:10)

Libyan Mate

Re: Using DPInst.exe Tool

Um... what you have done is already a DriverPacks BASE feature...

we call it SAD...

but thanks for playing

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: Using DPInst.exe Tool

***but thanks for playing***

thank you for ur reply
you are not the only kid how who play with Microsoft stuff
SDK WDK DDK are already with me

Libyan Mate

Re: Using DPInst.exe Tool

We appreciate your hard work but we don't really support written code supplied by users. We can't really tell you if something you've written will work or not, nor allotted the time in our busy schedules.

I think testing completely your scripts and installations would be better for you than us saying yeah or nay at a quick-see overview of your batch scripting prowess.

I do agree I would have taken a little offense to "but thanks for playing". Perhaps hes miffed at the generic subject title. Or the limited explaination of what's actually going on in your batch scripts. Perhaps there's more to the Dpfnsher.exe than you know and perhaps it's been tested to play nicely with the systems and clean it up completely.

I think a great contribution is if you could work with the actual DPinstall API and find a way to code a native installer without the use of dpinst.exe but using the dll instead.

Re: Using DPInst.exe Tool

no... I meant no offense.  the thanks for playing was a genuine thank you.

and Yes I/We do not have time to troubleshoot / evaluate code that duplicates what we already provide...
I doubt i would even have the time if it was something we did not already provide.

I was put off by the fact that someone who does not help us wants us to help them...
You want help from us then you need to help us. 
When a user posts an issue about DriverPacks that helps everyone.

When you just stop by and say
"hey guys I did my own version of what you do and it is not complete will you look at it."
it's not complete because it doesn't use the finisher
I assume he did not use the finisher because he does not understand it.
his problem was the KTD not the finisher...
yet he was unable to arrive at that answer on his own...

He created a problem by useing KTD which we have been saying for years is a dead feature and was replaced by SAD.
He Should have asked for help before he started... not after he invested a bunch of time in duplicating existing work.
this indicates to me he does not do good research before or during going off an a tangent. this strains my patience.
Hey if you want to do somthing as a learning tool fine... but we don't need or want to evaluate it.
that is why i tried to keep my answer short...
I did not want to seem terse, which is something I do fall into easily without meaning to.

His post would have been better recieved had he asked for help first, before he spent days of his time reinventing the wheel. wink

He said his initial problem was the finisher took so long to complete...
that issue he created himself by enableing KTD... had he simply disabled KTD his problem would have been solved wink

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: Using DPInst.exe Tool

MR kickarse i thank u so much
i just put my scripts and everything i did to show the experts here
am i going right or no & not teaching others how batch works
i think my scripts are easer than the need to explain them
i know already that Dpfnsher.exe is better but what to as iam greedy to include all of the Driverpacks in my CD which
is suppoesd to give it to my companions
as i told before with KTD feature more than
2 hours for the Dpfnsher.exe to finish its job
i used many tools to Monitor the Function Calls & activity
of Dpfnsher.exe but still not  succeeded
At the end
I tell u that what u have done is really
great
supplying us just the Driverpacks with its tools
is good thing

Last edited by FarajAli (2009-04-04 03:07:26)

Libyan Mate

Re: Using DPInst.exe Tool

@OverFlow thank u for spending ur time to look around my scribbles
do not worry, the offense cuased by jsut talk
will be suppressed by another talk
i think the aim of my post is to get help from experts
but the title i had put was wrong i think due to the rare
of participating in forums
if you think that selecting KTD is the trouble for the public
i wonder why u give it as an option then
**************************************
i try to pick two birds by one rock
i need the hardware devices be installed during installation
and after but i shoud do it manually
with out using DPsFnshr.exe
this is the goal of my playing

Last edited by FarajAli (2009-04-04 03:45:36)

Libyan Mate

Re: Using DPInst.exe Tool

no you must use the finisher to succeed...

you must not use the KTD function as this is what takes forever...

I did not release the KTD function... that was done before i was here...

I wrote SAD and it is the replacement for KTD wink ..

in order for you to get what you were trying to do,
just copy the OEM folder to the HDD... simple...
then run DP_Inst_Tool.cmd when you add new hardware....
does the same thing you were trying to do
and it uses the finisher, which is critical to installing many drivers successfully big_smile

Yes i belive you have hit on something that must be done
I am REALLY tired of wasting my breath telling people not to use KTD
I should jsut eliminate it.
That would certainly solve the problem for all the people who refuse to read the many posts about it in the forums.

Normaly i am reluctant to remove existing features from base but...
in this case i am running out of patience arguing the point with people who don't even know what the finisher does.

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: Using DPInst.exe Tool

Mr OverFlow iam very thankfull
this what iam looking for (the help from you)
What is the real job for the finisher
i tried to decompile it but failed
i think it was compressed with Armadillon

you said what i've done is the same as SAD which is not indeed
i tell you why
first
i integrate DriverPacks to my CD with M2 i removed KTD this time
(remoing it or keeping it will give no difference for my job)
i need Windows Setup install devices at T35 like sound & graphics & so on
this will saves more time
at the stage where Runonceex entries runs to install applications i used this code to remove %systemDrive%\D & all related files
to safe space that happen at early stage of GUI mode by your presetup.cmd 
**********************
RD /S /Q %systemdrive%\D
%systemdrive%
For %%a in (*.xls *.ini *.exe *.txt *.ins) do del %systemdrive%\"%%a"
************************
instead of using more than 2Gb for DriverPacks i used only 670MB
by making new folder %systemDrive%\Ali\Dpa & copy all compressed packages inside so as to save space as i told before
by running this code
**************
f not Exist %systemDrive%\Ali md %systemDrive%\Ali
SET TAGFILE=\OEM
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) DO IF EXIST "%%i:%TAGFILE%" SET CDDRIVE=%%i:& GOTO DPsFound
:DPsFound
md Ali\DriverPacks
copy /y %CDDRIVE%\OEM\DP*.7z %systemDrive%\Ali\DriverPacks
*************************
i clear Device Path entry value in the registry that you make early by running your DEVPATH.EXE
************
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
reg delete %KEY% /V DevicePath /f
reg add %KEY% /V DevicePath /t REG_EXPAND_SZ /D %systemRoot%\inf /f
set KEY=
*************************
by executing the DriverInstaller CMD then i give a menu to the user to select his appropriate package No
from %systemDrive%\Ali\DriverPacks
************
@echo off
Mode Con: Lines=90 Cols=90
color 1f
echo off
for  /f "tokens=1,* delims==" %%a in ('type Re') do echo %%b
set /P NUMB=Select suitable Package No^>
******************
so only the selected package will be exrtacted then
initiating the DPInst.exe to search only the extracted one to save more time than SAD does
Second
the  Ms  DPInst.exe tool u provide is not localized so i downloaded the
localized one for my ararbic users so they know what the wizard instruct them to do
i think According MS White paper after you install ur HD by using this tool noting else is needed
so i wonder why u insist on using finisher afterwards
*****************
to be more clear for my job this my CMD file instead of using DP_Inst_Tool.cmd that will loss our time
& people will hate waiting about an hour to install
just one device
**********************
My CMD file i call it DriverInstaller.cmd

@echo off
Mode Con: Lines=90 Cols=90
color 1f
echo off
for  /f "tokens=1,* delims==" %%a in ('type Re') do echo %%b
set /P NUMB=Select suitable Package No^>


for  /f "tokens=1,2,3 delims== " %%a in ('type Re') do if %NUMB%==%%c set SS=%%a
 
color 4f
un7zip.exe "%systemDrive%\Ali\DriverPacks\%SS%" "%~dp0"

DPInst.exe
RD /S /Q D
For %%a in (*.xls *.ini *.txt *.ins) do del "%%a"
exit
**************************************
after the device get installed
all extracted stuff will be removed to save space
again
**********
you see now that SAD is not the same my job

Last edited by FarajAli (2009-04-04 22:50:05)

Libyan Mate

Re: Using DPInst.exe Tool

dpinst is not localized...
you are not using the SAD's DP_Inst_tool because if you did you would find it is setup for multilingual.

Finisher is required (please search the forum)
I am not going to explain this again here in this thread...
it has been explained 1000 times...
several hundred by me... use search.

select DriverPacks during install is already done and has a GUI...
http://forum.driverpacks.net/viewtopic.php?id=2936
- I am really starting to get annoyed that you will not use the search feature of our forum.
- I am one step away from closing this thread...
start reading the existing material that is already posted here or i will close this thread.

SAD m2 only uses 350 meg for the main packs... not 2 gig or even 600 meg...

add these two lines in presetup.cmd and your done...

SET TAGFILE=\OEM
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) DO IF EXIST "%%i:%TAGFILE%" SET CDDRIVE=%%i:& GOTO DPsFound
:DPsFound

 COPY /Y %CDDRIVE%\OEM\*.* %SystemDrive%\OEM\
 SET CDDRIVE=%SystemDrive%

you don't need to make it any harder than that...
KISS method (Keep It Simple Stupid method)
If you insist on renaming the folder, you can do that from guirunonce or runonceex (before or after the finisher)

optionally include the - "[Add-on] Select desired DriverPacks during M2 install or after install" - I linked to above

You must be running this on a 386 machine if it is taking an hour...
it takes about 10 min for me (with all the main packs) on a slow P4 with an IDE HDD. (no KTD)
If it is taking an hour you have horribly screwed something up...

Yes you're right I can see that SAD is NOT the same as your tool.
- SAD is much better, and so is the pack selection GUI.

Perhaps you should try that AND using the search feature before you post again.

PS I am not a Kid as you refered to me above...
I have been involved with computers since 1968...
My kids are probably older than you are wink

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: Using DPInst.exe Tool

see the Mr.OverFlow if u like to close thread
just do it, i am not going to be frustrated
i know that every human likes to be the big boss
& when he did someting thinks that the others can  do noting & thinks
he knows what the paradise looks like
see if you want us to clap the hands for ur project we
do, but we won't allow u to diminish what we are doing

here is noting should get u annoyed.

i search the site before even started using the base
to get info about the finisher but failed to get find something

at the last i will tell you that
THE SAD IS BAD
close thread PLS ,i realized that i am going right
i do have a copy of this thread to put in the eyes who says
to me you can't do sometihg
Special thanks to whom invent the Base project.

Last edited by FarajAli (2009-04-05 21:49:53)

Libyan Mate

Re: Using DPInst.exe Tool

I think the frustration herein lies that we do not support third party scripts and your asking us to test and figure out why your scripts are or aren't working. We do however support trying to figure out issues with the programs we've created, Base and Driverpacks. So if SAD is taking forever as claimed, please, post your logs and we'll try and figure out why it's taking so long so you can use the approved method of driverpack installation. Other than that I suppose we congratulate you on a technical level your efforts in adapting the driverpacks installation to work in your specific environment and need, however duplicated in form it may be.

Besides DPinst.exe isn't supported by us, incidentally it's not even supported by Microsoft the developers. So while we use DPinst.exe to install drivers we don't support your use of it.

Last edited by stamandster (2009-04-07 01:43:28)

Re: Using DPInst.exe Tool

@kickarse
I don't like to waste ur time but
i like to tell that i don't  want u or anybody else to support my
scripts
because i testd it & worked for me very well
the only thing that iam asking is to know a little summary
about the finisher's job
i thank u for ur polite response
i hoped to know why Microsoft developers don't  support using
DPinst.exe
but no need now to know that
thanks

Last edited by FarajAli (2009-04-06 20:16:14)

Libyan Mate

Re: Using DPInst.exe Tool

We appreciate all minds and do like to see how things are done differently. We are certainly not closed minded individuals. If that were the case the initial development of the driverpacks would have never come to life.

All I ask is that you test SAD and post your logs. We'd still like to know how and why it's taking a very long time for the finisher on your your systems. And if it's happening to you perhaps it's also happening to others. And perhaps those others don't behold the same ingenuity of developing their owns scripts so they give up.

By doing so you could possibly not only help yourself but help many others by posting your findings. We'd certainly value that input!

Last edited by stamandster (2009-04-07 01:51:00)

Re: Using DPInst.exe Tool

That's what i meant to say... big_smile    Thanks KA!


----

PS my frustration lies in him not finding out what the finisher does without me typing it out... again.
IT'S IN the FAQ forum for Pete's sake! how hard is that to find... hmm
- the finisher is the core of DriverPacks
   Bâshrat the Sneaky wrote  (in that FAQ forum post you did not find) http://forum.driverpacks.net/viewtopic.php?id=364

DriverPacks Finisher: this program handles all exceptions (mainly control panels, but it also fixes some drivers that would always get installed incorrectly), KTD and the cleanup.

there are better descriptions but i am not going to spoon feed you. (any more)
you need to be able to find what is already stickied / a FAQ or in the tutorials, and otherwise well documented, on your own.
DriverPacks has always had a low tolerance for noob like behavior

I have already given you the answer (you need to use the finisher to succeed with the DriverPacks) 
If you continue to chose not to believe me then I can't, and won't try, to help you...
the finisher is how we fix many of the reported issues we get. without it many drivers will not install properly.

and now that you have forced me to explain YET AGAIN what the finisher does... Now I'm annoyed.

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: Using DPInst.exe Tool

thank u both the expert kickarse & OverFlow
Mr OverFlow i'll post something & iam sure it will
make u happy
i have problem with M2 driver install
i will adjust my scripts to include the finisher
if the problem solved then..........
wait PLZ

Libyan Mate

Re: Using DPInst.exe Tool

We appreciate your sleuthing. If you could do at least one test with just our full process without any external scripts that would be most helpful. Because it's quite possible that a script that's been written to "help" is what's causing the issue and not SAD.

Also, do you use nLite, AutoImage, HFSlip or any other program to trim and automate your installs?

Last edited by stamandster (2009-04-08 00:50:14)

Re: Using DPInst.exe Tool

the expert kickarse
iam not using SAD
i used the "Disc" option from the Base
selected M2 for my already slipstreemed sp3 windows pro
selected all the main Driverspacks u provide plus another 3rd party DriverPacks
total of them r 24 ones
iam not using any 3rd party Progs to integrate things like nLite, AutoImage, HFSlip
i integrated all hotfixes & updates as Microsoft instructed
i want my disk to be public so i did not trim or shrink anything like kids do
iam using arabic mui installed during T13 with its up_to_date updates
i installed the familiar applications for the public like
Office with its up_to_date updates
WMP with its up_to_date updates,JAVA,YahooMess,
.Net frameworks 1 & 2 with thier up_to_date updates plus some registry tweaks approved by Microsoft away from the myths that are done without advantages

every thing is done unattended & worked properly
DriverPacks decompressed at the early stage of GUI Mode
drivers installed well as normal at T35
what i did ?
i deactivate the finisher and used my above method to install any new added HW manually

what i did now is instead of 24 packs to be decompressed at the early stage of GUI Mode i use only the main 10 packs u provide to save time
the other packs i kept them for the manual method as discribed above

now...
i got small problem that is
my machine has two display adaptors one is integrated with
the MB the other is detached
although i disabled integrated one from the Bios
but is still is recognized by windows
& both are installed during unattended installation
the problem is my desktop icons disappeared
i restore them when i disabled integrated display adaptor from
Device Manager

will this problem get corrected in my next installation when i allow the
finisher runs as normal during Runonceex stage?

iam going to test this
****
no more KTD selection
********
Mr OverFlow
from the DP_Install_Tool.cmd file
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) DO (
IF Exist "%%i:\OEM\bin\un7zip.exe" SET "DPLoc=%%i:\OEM" & Set "M=2"
IF Exist "%%i:\$OEM$\$1\D\"   SET "DPLoc=%%i:\$OEM$\$1" & Set "M=1" & %%i
****************************************
what is this command *******& %%i******** doing?

Libyan Mate

Re: Using DPInst.exe Tool

Warez are not tolerated...

Closed...

the expert kickarse
iam not using SAD
i used the "Disc" option from the Base
selected M2 for my already slipstreemed sp3 windows pro
selected all the main Driverspacks u provide plus another 3rd party DriverPacks
total of them r 24 ones
iam not using any 3rd party Progs to integrate things like nLite, AutoImage, HFSlip
i integrated all hotfixes & updates as Microsoft instructed
i want my disk to be public so i did not trim or shrink anything like kids do
iam using arabic mui installed during T13 with its up_to_date updates
i installed the familiar applications for the public like
Office with its up_to_date updates
WMP with its up_to_date updates,JAVA,YahooMess,
.Net frameworks 1 & 2 with thier up_to_date updates plus some registry tweaks approved by Microsoft away from the myths that are done without advantages

every thing is done unattended & worked properly
DriverPacks decompressed at the early stage of GUI Mode
drivers installed well as normal at T35
what i did ?
i deactivate the finisher and used my above method to install any new added HW manually

what i did now is instead of 24 packs to be decompressed at the early stage of GUI Mode i use only the main 10 packs u provide to save time
the other packs i kept them for the manual method as discribed above

now...
i got small problem that is
my machine has two display adaptors one is integrated with
the MB the other is detached
although i disabled integrated one from the Bios
but is still is recognized by windows
& both are installed during unattended installation
the problem is my desktop icons disappeared
i restore them when i disabled integrated display adaptor from
Device Manager

will this problem get corrected in my next installation when i allow the
finisher runs as normal during Runonceex stage?

iam going to test this
****
no more KTD selection
********
Mr OverFlow
from the DP_Install_Tool.cmd file
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) DO (
IF Exist "%%i:\OEM\bin\un7zip.exe" SET "DPLoc=%%i:\OEM" & Set "M=2"
IF Exist "%%i:\$OEM$\$1\D\"   SET "DPLoc=%%i:\$OEM$\$1" & Set "M=1" & %%i
****************************************
what is this command *******& %%i******** doing?

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!.