<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[DriverPacks.net Forum - [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
	<link rel="self" href="http://forum.driverpacks.net/extern.php?action=feed&amp;tid=2751&amp;type=atom"/>
	<updated>2008-06-01T01:38:02Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.driverpacks.net/viewtopic.php?id=2751</id>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21242#p21242"/>
			<content type="html"><![CDATA[<p>I deliberately used the simplest form of all commands and layout...</p><p>It was/is my intention to make it EASY to edit for anyone with even the most basic skills.</p><p>Obviously i could have written this much differently and made it hundreds of lines long.<br />if i had then only advanced programers could read and modify it.<br />as it is advanced programmers can take it where ever they like and weekenders can read and tweak it too.</p><p>again - This is not meant to be an exercise in demonstrating my programing ability it is meant to be an outline... <br />as such only sugestions that simplify it are appropriate <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>I do however encourage you guys to compare notes and your personal versions with each other.<br />I am sure with our userbase that you guys will post some awsome ideas. i probably will not implement them for the reasons i stated. much as i will not implement the logging example/idea above. it was just a simplest form example. I belive it is best to target the users with beginner skills, the advanced users are on their own <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-06-01T01:38:02Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21242#p21242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21229#p21229"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>OverFlow wrote:</cite><blockquote><p>I am not positive without looking it up... <br />i think dpinst automatically creates a log</p><p>even if it doesnt i am quite certain&nbsp; setupapi.log&nbsp; IS updated <br />so there is a full log available if needed.<br />as far as a log of the script... <br />it logs to the active window so if it hangs, you know where... <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />(ummm unless you &gt;null all the output! <img src="http://forum.driverpacks.net/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> )</p><p>perhaps it would be easy enough to add somthing like...</p><div class="codebox"><pre><code>@Echo off
REM Written by Jeff Herre AKA OverFlow rev08.05.27
REM A Script to use MicroSofts DPinst.exe with the DriverPacks.
REM Help and Support available at http://forum.DriverPacks.net  
TITLE DriverPacks Installation Tool
Color 9f
Set LOG=%SystemDrive%\DP_Install_Tool.log

Echo.
Echo Searching current drive for the DriverPacks...
Echo fast detect. (is it the current drive?) &gt;&gt; %LOG%
FOR /f &quot;delims=: tokens=1&quot; %%i in (&quot;%~dp0&quot;) do SET CDDRIVE=%%i:
IF exist %CDDRIVE%\$OEM$\$1\D goto M1Found
IF exist %CDDRIVE%\OEM\bin\un7zip.exe GoTo M2Found

Echo.
Echo Searching all drives now...
Echo alternate detection. (is it any available drive?) &gt;&gt; %LOG% 
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 &quot;%%i:\$OEM$\$1\D&quot; SET CDDRIVE=%%i:&amp; GoTo M1Found 
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 &quot;%%i:\OEM\bin\un7zip.exe&quot; SET CDDRIVE=%%i:&amp; GoTo M2Found

Echo.
Echo The DriverPacks were not found ???
Echo The DriverPacks were not found ??? &gt;&gt; %LOG%
Pause
GoTo Done


:M2Found
Echo M2 Found &gt;&gt; %LOG%
Echo.
Echo Extracting the DriverPacks now...
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\DP*.7z %SystemDrive%\  %LOG%
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\bin\*.7z %SystemDrive%\ %LOG%
COPY /Y %CDDRIVE%\OEM\bin\DPsFnshr.ini %SystemDrive%\ &gt;&gt; %LOG%
IF EXIST %CDDRIVE%\OEM\*.ins COPY /Y %CDDRIVE%\OEM\*.ins %SystemDrive%\ &gt;&gt; %LOG%
COPY /Y %CDDRIVE%\OEM\DPINST.* %SystemDrive%\ &gt;&gt; %LOG%
GoTo Main


:M1Found
Echo M1 Found &gt;&gt; %LOG%
Echo.
Echo If you wish you may update drivers directly from the located M1 source
Echo Or you can use the DriverPacks and DP_Finisher with &quot;Keep The Driver&quot; option.
Echo If you choose Finisher and KTD then DriverPacks will be copied to &quot;SystemDrive&quot; 
Echo.
SET /p TPP=Only DriverPacks or Finisher and DriverPacks? (O or F) 
IF /I %TPP%==O Echo Running MicroSoft DPinst.exe without the DriverPacks Finisher now! &gt;&gt; %LOG%
IF /I %TPP%==O &quot;%CDDRIVE%\$OEM$\$1\DPINST.exe&quot; /c /s &amp; GoTo Done 
XCOPY /S %CDDRIVE%\$OEM$\$1\. %SystemDrive% &gt;&gt; %LOG%


:Main
Echo.
Echo Running MicroSoft DPinst.exe now!
Echo Running MicroSoft DPinst.exe now! &gt;&gt; %LOG%
%SystemDrive%\DPINST.exe /c /s
Echo.
Echo Running the DriverPacks.net Finisher now!
Echo Running the DriverPacks.net Finisher now! &gt;&gt; %LOG%
%SystemDrive%\DPsFnshr.exe



:Done
EXIT</code></pre></div></blockquote></div><p>Overflow, there is a much more efficient method for creating log files. I used it in my Presetup.cmd file that I posted here. Here is an example:</p><div class="codebox"><pre><code>@Echo Off
Set LogFile=%SystemRoot%\MYAWESOMELOGFILE.LOG

@Call :MainScriptRoutine&gt;&quot;%LogFile%&quot;
@REM * More stuff here if you want...
Goto :EOF
Exit

:MainScriptRoutine
@REM * put all of your above stuff in here (sans references to %LOG%)

Goto :EOF</code></pre></div><p>Notice that I suppress the STDOutput of the pseudo-function that is being Called and stick it into a log file?<br />I suppose if you want that information to also be echoed back to the user, you could use <em>Type %LogFile%</em>.</p><p>This method will not work if your routine requires user interaction. If user interaction is required, I would recommend breaking up the routines and appending the log file using the same method, but with user interactions between each of the Calls to the routine. Personally, I put all user interaction at the beginning of the script and call the variables as needed once the script begins running.</p><br /><p>Not saying you have to use that method, but it&#039;s a lot easier to manage than the deprecated DOS method. <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[dumpydooby]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=13</uri>
			</author>
			<updated>2008-05-31T07:06:54Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21229#p21229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21107#p21107"/>
			<content type="html"><![CDATA[<p>I am not positive without looking it up... <br />i think dpinst automatically creates a log</p><p>even if it doesnt i am quite certain&nbsp; setupapi.log&nbsp; IS updated <br />so there is a full log available if needed.<br />as far as a log of the script... <br />it logs to the active window so if it hangs, you know where... <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />(ummm unless you &gt;null all the output! <img src="http://forum.driverpacks.net/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> )</p><p>perhaps it would be easy enough to add somthing like...</p><div class="codebox"><pre><code>@Echo off
REM Written by Jeff Herre AKA OverFlow rev08.05.27
REM A Script to use MicroSofts DPinst.exe with the DriverPacks.
REM Help and Support available at http://forum.DriverPacks.net  
TITLE DriverPacks Installation Tool
Color 9f
Set LOG=%SystemDrive%\DP_Install_Tool.log

Echo.
Echo Searching current drive for the DriverPacks...
Echo fast detect. (is it the current drive?) &gt;&gt; %LOG%
FOR /f &quot;delims=: tokens=1&quot; %%i in (&quot;%~dp0&quot;) do SET CDDRIVE=%%i:
IF exist %CDDRIVE%\$OEM$\$1\D goto M1Found
IF exist %CDDRIVE%\OEM\bin\un7zip.exe GoTo M2Found

Echo.
Echo Searching all drives now...
Echo alternate detection. (is it any available drive?) &gt;&gt; %LOG% 
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 &quot;%%i:\$OEM$\$1\D&quot; SET CDDRIVE=%%i:&amp; GoTo M1Found 
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 &quot;%%i:\OEM\bin\un7zip.exe&quot; SET CDDRIVE=%%i:&amp; GoTo M2Found

Echo.
Echo The DriverPacks were not found ???
Echo The DriverPacks were not found ??? &gt;&gt; %LOG%
Pause
GoTo Done


:M2Found
Echo M2 Found &gt;&gt; %LOG%
Echo.
Echo Extracting the DriverPacks now...
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\DP*.7z %SystemDrive%\  %LOG%
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\bin\*.7z %SystemDrive%\ %LOG%
COPY /Y %CDDRIVE%\OEM\bin\DPsFnshr.ini %SystemDrive%\ &gt;&gt; %LOG%
IF EXIST %CDDRIVE%\OEM\*.ins COPY /Y %CDDRIVE%\OEM\*.ins %SystemDrive%\ &gt;&gt; %LOG%
COPY /Y %CDDRIVE%\OEM\DPINST.* %SystemDrive%\ &gt;&gt; %LOG%
GoTo Main


:M1Found
Echo M1 Found &gt;&gt; %LOG%
Echo.
Echo If you wish you may update drivers directly from the located M1 source
Echo Or you can use the DriverPacks and DP_Finisher with &quot;Keep The Driver&quot; option.
Echo If you choose Finisher and KTD then DriverPacks will be copied to &quot;SystemDrive&quot; 
Echo.
SET /p TPP=Only DriverPacks or Finisher and DriverPacks? (O or F) 
IF /I %TPP%==O Echo Running MicroSoft DPinst.exe without the DriverPacks Finisher now! &gt;&gt; %LOG%
IF /I %TPP%==O &quot;%CDDRIVE%\$OEM$\$1\DPINST.exe&quot; /c /s &amp; GoTo Done 
XCOPY /S %CDDRIVE%\$OEM$\$1\. %SystemDrive% &gt;&gt; %LOG%


:Main
Echo.
Echo Running MicroSoft DPinst.exe now!
Echo Running MicroSoft DPinst.exe now! &gt;&gt; %LOG%
%SystemDrive%\DPINST.exe /c /s
Echo.
Echo Running the DriverPacks.net Finisher now!
Echo Running the DriverPacks.net Finisher now! &gt;&gt; %LOG%
%SystemDrive%\DPsFnshr.exe



:Done
EXIT</code></pre></div>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-05-27T22:07:19Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21107#p21107</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21105#p21105"/>
			<content type="html"><![CDATA[<p>I prefer it to be silent with a few indicators of progression, it just looks cleaner! That said I haven&#039;t added any error correction so if anything went wrong the script would just sit there forever. It might be a good idea to setup some kind of logging function (a simple redirect on the script doesn&#039;t pick up DPinst output).</p><p>I wanted the &quot;Do you wish&quot; prompt encase I clicked the wrong option in my autorun menu and I also wanted the &quot;complete&quot; message for &#039;set it and forget it&#039; purposes (because I want to know it completed)!</p><p>I think this is as &quot;wild&quot; as it&#039;s going to get really and I admit I didn&#039;t check the switches for DPinst. <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[kof94]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=278</uri>
			</author>
			<updated>2008-05-27T22:00:52Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21105#p21105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21063#p21063"/>
			<content type="html"><![CDATA[<p>I just noticed something else that made no sense to me....</p><p>%SystemDrive%\DPINST.exe /c /s &gt; nul</p><p>/c means please log to console and would then seem to be in direct conflict with &gt; null</p><p>so you should have written</p><p>%SystemDrive%\DPINST.exe /s &gt; nul<br />or simply<br />%SystemDrive%\DPINST.exe /s</p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-05-26T22:25:51Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21063#p21063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21040#p21040"/>
			<content type="html"><![CDATA[<p>i already had a &quot;do you wish&quot; button <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><br /><p>I noticed you did away with the progress indicators <br />you are ok with the periods of no feedback you created? <br />I like to be aware of the progress - just my personal preference.</p><p>Anybody else think the script is too chatty?</p><p>-----------------</p><p>I deliberately did not make this an executeable so it could be edited <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /> <br />that was / is the idea <img src="http://forum.driverpacks.net/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />(normaly i try to see how much code i can fit on one line <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /> but that is hard to read and edit...)</p><p>I dont see me adding the additional pauses in the released copy... <br />i deliberately wrote it to be automated and I tout it as a &quot;One Click&quot; solution <br />(you added 200% more clicking <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /> ) <br />this is in keeping with our forums unattended theme and our primary goals.</p><p>But as you have discovered i wrote it to be easy to read by anyone. intentionaly</p><p>feel free to get as wild as you want with your version!!! and to post it as a reference for others.</p><p>not all submissions will be included - but your first edit made the cut anyway </p><p>I am open to making the script less chatty if it proves to be a popular suggestion.</p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-05-26T03:02:31Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21040#p21040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21030#p21030"/>
			<content type="html"><![CDATA[<p>Ok, one last thing.</p><p>This is my final edit. I&#039;ve added a title with a &quot;Do you wish to continue?&quot; question (because this suits my situation) and an &quot;Operation Complete&quot; message at the end (because I think it needed it) as well as some other cosmetic changes.</p><p>Here you go:</p><div class="codebox"><pre><code>@Echo off
REM Written by Jeff Herre AKA OverFlow rev08.04.21
REM A Script to use MicroSofts DPinst.exe with the DriverPacks.
REM Help and Support available at http://forum.DriverPacks.net  
Color 9f

Echo.
Echo You are about to install or update Windows XP device drivers.
Echo.
SET /p YN=Do you wish to continue? (Y/N) 
IF /I %YN%==N GoTo Done
cls

Echo.
Echo Searching current drive for the DriverPacks...
Rem fast detect. (is it the current drive?)
FOR /f &quot;delims=: tokens=1&quot; %%i in (&quot;%~dp0&quot;) do SET CDDRIVE=%%i:
IF exist %CDDRIVE%\$OEM$\$1\D goto M1Found
IF exist %CDDRIVE%\OEM\bin\un7zip.exe GoTo M2Found

Echo.
Echo Searching all drives now...
Rem alternate detection. (is it any available drive?)
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 &quot;%%i:\$OEM$\$1\D&quot; SET CDDRIVE=%%i:&amp; GoTo M1Found 
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 &quot;%%i:\OEM\bin\un7zip.exe&quot; SET CDDRIVE=%%i:&amp; GoTo M2Found

Echo.
Echo The DriverPacks were not found ???
Echo.
Pause
GoTo Done

:M2Found
Echo.
Echo Extracting the DriverPacks now...
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\DP*.7z %SystemDrive%\
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\bin\*.7z %SystemDrive%\
COPY /Y %CDDRIVE%\OEM\bin\DPsFnshr.ini %SystemDrive%\ &gt; nul
IF EXIST %CDDRIVE%\OEM\*.ins COPY /Y %CDDRIVE%\OEM\*.ins %SystemDrive%\ &gt; nul
COPY /Y %CDDRIVE%\OEM\DPINST.* %SystemDrive%\ &gt; nul
GoTo Main

:M1Found
Echo.
Echo If you wish you may update drivers directly from the located M1 source
Echo Or you can use the DriverPacks and DP_Finisher with &quot;Keep The Driver&quot; option.
Echo If you choose Finisher and KTD then DriverPacks will be copied to &quot;SystemDrive&quot; 
Echo.
SET /p TPP=Only DriverPacks or Finisher and DriverPacks? (O or F) 
IF /I %TPP%==O &quot;%CDDRIVE%\$OEM$\$1\DPINST.exe&quot; /c /s &amp; GoTo Done 
XCOPY /S %CDDRIVE%\$OEM$\$1\. %SystemDrive%

:Main
Echo.
Echo Running Microsoft DPinst.exe now...
%SystemDrive%\DPINST.exe /c /s &gt; nul
Echo.
Echo Running the DriverPacks.net Finisher now...
%SystemDrive%\DPsFnshr.exe

Echo.
Echo Operation Complete!
Echo.
pause

:Done
EXIT</code></pre></div><p>I&#039;ll stop messing with your script now <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" />.</p>]]></content>
			<author>
				<name><![CDATA[kof94]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=278</uri>
			</author>
			<updated>2008-05-25T14:21:11Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21030#p21030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21025#p21025"/>
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>NO because DPInst.exe is a microsoft file that they have graciously allowed redistribution rights on.</p><p>microsoft does not very often say that it is ok to redistribute their files so i want to make sure they get the credit.</p><p>They wrote it they provided it and i humbly submit it with our app and my thanks for the privilege.</p><p>jeff</p></blockquote></div><p>WOW <img src="http://forum.driverpacks.net/img/smilies/yikes.png" width="15" height="15" alt="yikes" />. I stand corrected then. </p><p>I&#039;ve been waiting for this for a long time so I thought you were selling this little app short by giving Microsoft all the credit.</p><p>It&#039;s nice to see MS playing ball <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[kof94]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=278</uri>
			</author>
			<updated>2008-05-25T10:50:51Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21025#p21025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21007#p21007"/>
			<content type="html"><![CDATA[<p>if a m1 install is in the same folder you could just launch dpinst.</p><p>(this works as long as the packs areextracted or cabbed to \D. where D\ is a subfolder of the location of dpinst.)<br />that is even easier and it wont try to delete the files either <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-05-24T20:51:26Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21007#p21007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21006#p21006"/>
			<content type="html"><![CDATA[<p>Another question:<br />has OEM and $OEM$ to be at root directory?</p><p>There is Flyakite&#039;s Multiboot Guide. <br /><a href="http://flyakite.msfn.org">http://flyakite.msfn.org</a>/<br /><a href="http://flyakite.msfn.org/unattended.htm">http://flyakite.msfn.org/unattended.htm</a></p><p>What about support both: root directory and subdirectory?</p><div class="codebox"><pre><code>Color 9f

setlocal EnableExtensions

Echo.
Echo Searching local directory for the DriverPacks...
pushd &quot;%~dp0..&quot;
set CDDRIVE=%cd%
popd
SET last_char=%CDDRIVE:~-1%
IF &quot;%last_char%&quot;==&quot;\&quot; set CDDRIVE=%CDDRIVE:~0,-1%
IF exist %CDDRIVE%\$OEM$\$1\D echo goto M1Found
IF exist %CDDRIVE%\OEM\bin\un7zip.exe echo GoTo M2Found

Echo.
Echo Searching all drives now...</code></pre></div><p>Debug code, remove two echo for usage.</p>]]></content>
			<author>
				<name><![CDATA[cdob]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=434</uri>
			</author>
			<updated>2008-05-24T20:39:30Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21006#p21006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=21003#p21003"/>
			<content type="html"><![CDATA[<p>NO because DPInst.exe is a microsoft file that they have graciously allowed redistribution rights on.</p><p>microsoft does not very often say that it is ok to redistribute their files so i want to make sure they get the credit.</p><p>They wrote it they provided it and i humbly submit it with our app and my thanks for the privilege.</p><p>jeff</p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-05-24T20:20:55Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=21003#p21003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=20997#p20997"/>
			<content type="html"><![CDATA[<p>No problem <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><p>Off topic...</p><p>I noticed something else that to me just seams a little miss leading:</p><div class="codebox"><pre><code>:Main
Echo.
Echo Running MicroSoft DPinst.exe now!</code></pre></div><p>I&#039;m not an advocate for Microsoft or anything but wouldn&#039;t something like this be more accurate:</p><div class="codebox"><pre><code>:Main
Echo.
Echo Running the DriverPacks.net Installer now!</code></pre></div><p>Just a thought.</p>]]></content>
			<author>
				<name><![CDATA[kof94]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=278</uri>
			</author>
			<updated>2008-05-24T16:15:00Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=20997#p20997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=20962#p20962"/>
			<content type="html"><![CDATA[<p>Thank you so much... <br />that is an excellent observation and a situation i had not considered.</p><p>i will make the suggested changes to make it resilient against this.</p><p>thanks for not only finding the problem but providing a possable solution as well.<br />I am going to tag your post as a [REQ] for you. <br />if you like you can create a &quot;bug&quot; report so i wont forget, and it is a rare opportunity <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />the bug tracker here plays cards with the maytag repairman... <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2008-05-23T22:11:28Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=20962#p20962</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[IMPLEMENTED] Edit DP_Install_Tool.cmd [Approved]]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=20959#p20959"/>
			<content type="html"><![CDATA[<p>If you currently launch DP_Install_Tool.cmd via a menu (i.e. you&#039;re not in /OEM) then DPINST.* isn&#039;t copied to %systemdrive%! Please amend the script to use defined paths. </p><div class="codebox"><pre><code>:M2Found
Echo.
Echo Extracting the DriverPacks now...
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\DP*.7z %SystemDrive%\
%CDDRIVE%\OEM\bin\un7zip.exe %CDDRIVE%\OEM\bin\*.7z %SystemDrive%\
COPY /Y %CDDRIVE%\OEM\bin\DPsFnshr.ini %SystemDrive%\
IF EXIST %CDDRIVE%\OEM\*.ins COPY /Y %CDDRIVE%\OEM\*.ins %SystemDrive%\

:: Current entries
:: COPY DPINST.exe %SystemDrive%
:: COPY DPInst.xml %SystemDrive%

:: My edit
COPY /Y %CDDRIVE%\OEM\DPINST.* %SystemDrive%\

GoTo Main</code></pre></div><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[kof94]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=278</uri>
			</author>
			<updated>2008-05-23T21:24:10Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=20959#p20959</id>
		</entry>
</feed>
