<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[DriverPacks.net Forum - Ability to add a custom command to PRESETUP.CMD]]></title>
	<link rel="self" href="http://forum.driverpacks.net/extern.php?action=feed&amp;tid=849&amp;type=atom"/>
	<updated>2006-11-18T01:10:42Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.driverpacks.net/viewtopic.php?id=849</id>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5970#p5970"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>maxximum wrote:</cite><blockquote><div class="quotebox"><blockquote><p>i have to dis-agrea here though,&nbsp; there are so many better ways.. 1 for instance is a compiled &#039; Visual basic &#039;&nbsp; program,&nbsp; i would recommend an early version like VB5 though, im not sure what versions will run this early, and in windows 2000, as it MAY lack vb-runtime files.</p></blockquote></div><p>I&#039;ve tested an compiled AutoIT script, and it works. No other files are needed other than the program itself.</p><div class="quotebox"><blockquote><p>- but i wonder if its worth this much trouble....</p></blockquote></div><p>Add 3rd party DriverPacks ... and you could wait more than 5 minutes during this blue screen asking yourself &quot;WTF is going on....&quot;.<br />So ... yes ... knowing what is going on is better ...</p></blockquote></div><p>Then I&#039;m very interested...</p><p>I&#039;ve actually written a new presetup in AutoIt, but couldn&#039;t get it to work (with fancy progress info and the functionality to add custom commands). I managed to retrieve the exact error by executing the file manually from a cmd.exe instance, called by the currently used presetup. I can look it up if anyone&#039;d like to know.</p><p>If I start it just one minute after GUI setup has started, then it works. If I start it earlier, I get an error. It&#039;s obvious that the AutoIt compiler/runtime/whatever the correct name is, relies on certain Windows API calls that aren&#039;t available yet at the presetup stage.</p><p>So please, share the knowledge.</p><p>P.S.: I AM aware of the fact that AutoIt 2.x executables do work at the presetup stage, but that syntax is completely different AND the options/AutoIt functions are much much much more limited.</p>]]></content>
			<author>
				<name><![CDATA[Wim Leers]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=2</uri>
			</author>
			<updated>2006-11-18T01:10:42Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5970#p5970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5964#p5964"/>
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>i have to dis-agrea here though,&nbsp; there are so many better ways.. 1 for instance is a compiled &#039; Visual basic &#039;&nbsp; program,&nbsp; i would recommend an early version like VB5 though, im not sure what versions will run this early, and in windows 2000, as it MAY lack vb-runtime files.</p></blockquote></div><p>I&#039;ve tested an compiled AutoIT script, and it works. No other files are needed other than the program itself.</p><div class="quotebox"><blockquote><p>- but i wonder if its worth this much trouble....</p></blockquote></div><p>Add 3rd party DriverPacks ... and you could wait more than 5 minutes during this blue screen asking yourself &quot;WTF is going on....&quot;.<br />So ... yes ... knowing what is going on is better ...</p>]]></content>
			<author>
				<name><![CDATA[maxximum]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=54</uri>
			</author>
			<updated>2006-11-17T17:49:23Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5964#p5964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5958#p5958"/>
			<content type="html"><![CDATA[<p>*</p><div class="quotebox"><blockquote><p>Why not replace completely PRESETUP.CMD with an AutoIT</p></blockquote></div><p>*<br />i have to dis-agrea here though,&nbsp; there are so many better ways.. 1 for instance is a compiled &#039; Visual basic &#039;&nbsp; program,&nbsp; i would recommend an early version like VB5 though, im not sure what versions will run this early, and in windows 2000, as it <strong>MAY</strong> lack vb-runtime files. </p><p>an other, (maybe better) way is a compiled&nbsp; batch of quickbasic&nbsp; script.&nbsp; it will run (without doubt), but it will not look as pretty, as vb5 ...&nbsp; &gt;&gt; quckbasic or compiled-batch <strong>doesn&#039;t nead runtime files</strong> so that makes it better for the job, also i&#039;d suspect it to be easier to code than auto-it scripts...&nbsp; </p><p>a thing though is that i cant think of any way to query for a status ... (like the&nbsp; ..% extracted in 7zip)<br />&gt;&gt; <strong>unless you use sfx files </strong>(self extracting archives) ... <br />with sfx-files you would be able to show a popup window with the &lt;cancel&gt; button disabled... <br />and with some resource-editing in the text&nbsp; saying...&nbsp; <br /> &quot;extracting: $file_name [1 of 6]&nbsp; &quot; /&nbsp; &quot; extracting: $file_name [2 of 6]&nbsp; etc.</p><p>- but i wonder if its worth this much trouble....</p>]]></content>
			<author>
				<name><![CDATA[-I-]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=543</uri>
			</author>
			<updated>2006-11-17T12:49:01Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5958#p5958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5947#p5947"/>
			<content type="html"><![CDATA[<p>Thanks for the code Rambo, well I&#039;m very happy with the solution, the code works great</p><p>Thanks for all you help</p>]]></content>
			<author>
				<name><![CDATA[firefox]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=982</uri>
			</author>
			<updated>2006-11-17T09:35:34Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5947#p5947</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5946#p5946"/>
			<content type="html"><![CDATA[<p>Why not replace completely PRESETUP.CMD with an AutoIT made PRESETUP.EXE which does the commands ?<br />On the splash screen we can show &quot;decompression driverpack xxx&quot;<br />I&#039;ve compiled the fake setup to show the PRESETUP (option : &quot;mySHELLEXECUTEINFO.nShow=SW_SHOW;&quot;) ... then any program ran from this fake setup is shown.</p><p>Or ... still use PRESETUP.CMD with :<br />a/ fake setup showing the PRESETUP.CMD<br />b/ but with Signet cmdow.exe remplacement <br />c/ inside PRESETUP.CMD use an AutoIT &quot;splash.exe&quot; like the one i&#039;ve coded in the other post.<br />I&#039;ve already done a/ and c/ ... I need to add b/ and test it.</p><p>AutoIT &quot;splash.exe&quot; source (message is shown depending file size, given as first parameter on the command line) :<br /></p><div class="codebox"><pre><code>If $CmdLine[0] = 1 Then
    Dim $Message, $WaitFor, $Size
    $Size = FileGetSize($CmdLine[1])
    $WaitFor = $Size / 4000
    $Message = &quot;Decompressing DP: &quot; &amp; @CRLF &amp; $CmdLine[1]
    SplashTextOn(&quot;&quot;,$Message,&quot;700&quot;,&quot;150&quot;,&quot;-1&quot;,&quot;-1&quot;,33,&quot;&quot;,&quot;20&quot;,&quot;20&quot;)
    Sleep($WaitFor)
    SplashOff()
Else
    MsgBox(4096, &quot;Information&quot;, &quot;How to use : &quot; &amp; @CRLF &amp; @ScriptName &amp; &quot;  Message_to_show&quot;, 5)
EndIf</code></pre></div>]]></content>
			<author>
				<name><![CDATA[maxximum]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=54</uri>
			</author>
			<updated>2006-11-17T08:01:09Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5946#p5946</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5945#p5945"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Rambo wrote:</cite><blockquote><p>=Would be good if the DriverPack Base had an option to run a command after detection of the CD drive letter and before beginning the extraction process. It would save me from editing the PRESETUP.CMD as below every time I make a change:</p></blockquote></div><p>These kind of things I do with Fedit.exe, more info here:<br /><a href="http://www.msfn.org/board/index.php?showtopic=48200&amp;hl=fedit.exe">http://www.msfn.org/board/index.php?sho … =fedit.exe</a></p><p>Could you email me a logo-less version ? Thanks in advance,</p>]]></content>
			<author>
				<name><![CDATA[Houz74]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=341</uri>
			</author>
			<updated>2006-11-17T07:30:17Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5945#p5945</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5942#p5942"/>
			<content type="html"><![CDATA[<p>I&#039;ve seen the earlier posts regarding splash screens and how nobody seems to be able to get it working. </p><p>Most had tried AutoIt scripts (me too!) but I found that they simply exit with no message of any sort.</p><p>Seems that something about the environment at that point in the setup means that many programs simply don&#039;t work. Since AutoIt scripts don&#039;t work, I decided to try a VB 6 program - I&#039;m not much of a coder, but wrote something quick to test. I was quite surprised when I could see my program run during the extraction.</p><p>Being VB6 this is a full GUI, but at at this time its a little &#039;dumb&#039; in that it doesn&#039;t actually detect when the extraction process is complete. It only exits under three conditions.<br />1. Manually closed<br />2. When it detects that XCOPY.EXE is running<br />3. When Windows setup completes and restarts</p><p>If there is interest I&#039;m happy to (and have just done so for firefox) send people source code. I plan to try to enhance it a bit, but don&#039;t have a huge amount of time (or great programming skills!). Just my small contribution to say a small thanks.</p><p>Rambo...</p>]]></content>
			<author>
				<name><![CDATA[Rambo]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=906</uri>
			</author>
			<updated>2006-11-17T00:44:14Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5942#p5942</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5939#p5939"/>
			<content type="html"><![CDATA[<p>i&#039;m not having much success with this, I have tried to create a splash screen using AutoIT and then adding it into presetup.cmd but it will not run / display.</p><p>It works find when executed under normal windows i.e XP hence my note to get a copy of trtprog.exe.</p><p>Will keep trying.... if I have any success will I will post a reply</p>]]></content>
			<author>
				<name><![CDATA[firefox]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=982</uri>
			</author>
			<updated>2006-11-16T22:35:29Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5939#p5939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5938#p5938"/>
			<content type="html"><![CDATA[<p>Maybe you can help, see this <a href="http://forum.driverpacks.net/viewtopic.php?id=782">post</a> about &quot;splash screen&quot; during DP extract.</p>]]></content>
			<author>
				<name><![CDATA[maxximum]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=54</uri>
			</author>
			<updated>2006-11-16T22:16:40Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5938#p5938</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5908#p5908"/>
			<content type="html"><![CDATA[<p>Rambo, just saw your note and I would be very interested in getting hold of a copy of you progress bar.... any chance you could send me a copy?</p>]]></content>
			<author>
				<name><![CDATA[firefox]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=982</uri>
			</author>
			<updated>2006-11-15T23:00:54Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5908#p5908</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Ability to add a custom command to PRESETUP.CMD]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=5728#p5728"/>
			<content type="html"><![CDATA[<p>Been playing with a program written in VB 6 that can run while the drivers are extracted (method 2).</p><p>Would be good if the DriverPack Base had an option to run a command after detection of the CD drive letter and before beginning the extraction process. It would save me from editing the PRESETUP.CMD as below every time I make a change:</p><p>*SNIP*<br />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:%TAGFILE%&quot; SET CDDRIVE=%%i:</p><p><strong>::Below added manually to show some sort of progress</strong><br /><strong>start c:\install\trtprog.exe Please wait while drivers are extracted...</strong></p><p>REM +==========================================================================+<br />REM |&nbsp; &nbsp;Decompressing the DriverPacks to the harddisk.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />*SNIP*</p><p>BTW, this program runs well and displays a progress bar and my company logo for the duration of the extraction. If someone can tell me how to attach the program and/or it&#039;s VB source to a forum message (or somewhere else) I&#039;m happy to.</p>]]></content>
			<author>
				<name><![CDATA[Rambo]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=906</uri>
			</author>
			<updated>2006-11-04T12:14:03Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=5728#p5728</id>
		</entry>
</feed>
