<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>My personal blog about pre-installation and other topics : DPinst</title><link>http://blogs.technet.com/svengruenitz/archive/tags/DPinst/default.aspx</link><description>Tags: DPinst</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Driver installation and updating made easy: DPInst.exe</title><link>http://blogs.technet.com/svengruenitz/archive/2008/07/02/driver-installation-and-updating-made-easy-dpinst-exe.aspx</link><pubDate>Wed, 02 Jul 2008 15:02:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3082335</guid><dc:creator>svengru</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/svengruenitz/comments/3082335.aspx</comments><wfw:commentRss>http://blogs.technet.com/svengruenitz/commentrss.aspx?PostID=3082335</wfw:commentRss><description>&lt;p&gt;Installing or updating drivers on a system does always take a long time since you need to run many different driver installers to get all the devices in a system running. How about just running one installer and all your drivers are installed afterwards? A dream? Stop dreaming and do it right now with the Driver Package Installer (DPinst).&lt;/p&gt;  &lt;p&gt;The details are here: &lt;a title="http://msdn.microsoft.com/en-us/library/ms791049.aspx" href="http://msdn.microsoft.com/en-us/library/ms791049.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms791049.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;DPInst is part of the Windows Driver Kit (WDK). More details here: &lt;a title="http://www.microsoft.com/whdc/devtools/WDK/default.mspx" href="http://www.microsoft.com/whdc/devtools/WDK/default.mspx"&gt;http://www.microsoft.com/whdc/devtools/WDK/default.mspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;So, how can you use this tool?&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Download the WDK in order to get the latest version of DPInst (can be found under the “DIFx” tools) &lt;/li&gt;    &lt;li&gt;Create a new directory e.g. “c:\drivers” and copy DPInst.exe to that directory     &lt;br /&gt;Note: There is a different version for x86 and x64&lt;/li&gt;    &lt;li&gt;Create a dpinst.xml file to control DPinst.     &lt;br /&gt;All possible settings can be found here: &lt;a title="http://msdn.microsoft.com/en-us/library/ms791067.aspx" href="http://msdn.microsoft.com/en-us/library/ms791067.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms791067.aspx&lt;/a&gt;      &lt;br /&gt;An example can look like this:&lt;/li&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;       &lt;br /&gt;&amp;#160; &amp;lt;dpinst&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;suppressAddRemovePrograms/&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;!-- The following search and subDirectory elements direct       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; DPInst to search all subdirectories (under the DPInst working directory) to locate driver        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; packages. --&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;search&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;subDirectory&amp;gt;*&amp;lt;/subDirectory&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/search&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;!-- The following language element localizes its child elements       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for the English (Standard) language. The child elements        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; customize the text that appears on the DPInst wizard pages. --&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;language code=&amp;quot;0x0409&amp;quot;&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;dpinstTitle&amp;gt;Device Driver Updater&amp;lt;/dpinstTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;welcomeTitle&amp;gt;Welcome to the Device Installer!&amp;lt;/welcomeTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;welcomeIntro&amp;gt;This wizard will walk you through updating the drivers for your device.&amp;lt;/welcomeIntro&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;installHeaderTitle&amp;gt;Installing the software for your device...&amp;lt;/installHeaderTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;finishTitle&amp;gt;Congratulations! You finished installing your device drivers.&amp;lt;/finishTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/language&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;scanHardware/&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;/dpinst&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;li&gt;Create sub directories for drivers and place the driver files (.inf, .sys, cat, .dll, etc.) into these directories.     &lt;br /&gt;My example looks like this:      &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_2.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="156" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_thumb.png" width="454" border="0" /&gt;&lt;/a&gt;&amp;#160;&lt;/li&gt;    &lt;li&gt;Copy the complete directory to an external storage drive or network location and execute DPInst.exe to install / update the drivers     &lt;br /&gt;on that machine. This dialogue will be displayed and pressing “Next” will start the installation…      &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_4.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="249" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_thumb_1.png" width="323" border="0" /&gt;&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Done. :-) This will save a lot of your time.   &lt;br /&gt;    &lt;br /&gt;I created a sample package that contains all necessary files for x86 and x64. You can get it here:    &lt;br /&gt;&amp;#160;&lt;iframe style="border-right: #dde5e9 1px solid; padding-right: 0px; border-top: #dde5e9 1px solid; padding-left: 0px; padding-bottom: 0px; margin: 3px; border-left: #dde5e9 1px solid; width: 240px; padding-top: 0px; border-bottom: #dde5e9 1px solid; height: 66px; background-color: #ffffff" marginwidth="0" marginheight="0" src="http://cid-68b7c02646a1899d.skydrive.live.com/embedrowdetail.aspx/Public/DPinstsamples.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/p&gt;  &lt;p&gt;This sample also contains a script “installdrvs.cmd” which shows you how to use DPInst in silent mode.   &lt;br /&gt;    &lt;br /&gt;Using DPInst in silent mode as part of your Windows XP or Windows Vista installation does work very well and is faster than using     &lt;br /&gt;a “Driver Path” in an unattend file as it will only install the drivers that match your hardware and not all drivers present in the driver directory.    &lt;br /&gt;So one example would be to add a driver folder containing DPinst,the dpinst.xml file and all drivers to the $OEM$\$1\ folder     &lt;br /&gt;(This will be on the C:\ driver after the installation) and then call installdrvs.cmd as “RunSynchronousCommand” during “Audit User” phase of     &lt;br /&gt;the Windows Vista setup.&amp;#160; Looks like this in System Image Manager:    &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_6.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="310" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_thumb_2.png" width="723" border="0" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;Have fun.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3082335" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/svengruenitz/archive/tags/OPK/default.aspx">OPK</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/Vista/default.aspx">Vista</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/DPinst/default.aspx">DPinst</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/XP/default.aspx">XP</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/Drivers/default.aspx">Drivers</category></item></channel></rss>