NuVanDibe Posted April 6, 2006 Share Posted April 6, 2006 (edited) I came up with two ideas for installing Daemon Tools 4, integrating it into Windows XP. Unfortunately, I have neither the time nor the resources to test either. Can someone help me out? I'll only post the first method for now.Method 1:Add the following code to cmdlines.txt:[COMMANDS]"dtools.cmd"Create a file "dtools.cmd" in $OEM$ and insert the following:SetLocal enableextensionsSET CDROM=%~d0start /wait %CDROM%\INSTALL\dtools.exeEndLocalEXITAdd the following code to RunOnceEx.cmd:REG ADD %KEY%\205 /VE /D "Daemon Tools 4.03" /fREG ADD %KEY%\205 /V 1 /D "%CDROM%\INSTALL\dtools.exe" /fUsing AutoIT 3, compile the following code (or download the .au3 attached to the post) into dtools.exe and place the file inside (CDROOT\INSTALL):; ----------------------------------------------------------------------------;; AutoIt Version: 3.1.0; Author: Alex Parrish <nuvandibe@yahoo.com>;; Script Function:; Template AutoIt script.;; ----------------------------------------------------------------------------; Script Start - Add your code below here$a=0run("daemon403-x86.exe")winwait("DAEMON Tools 4.03HE (32 bit)")controlclick("DAEMON Tools 4.03HE (32 bit)","",1)winwait("DAEMON","License Agreement")controlclick("DAEMON","",1)winwait("DAEMON","Already Installed",1) if winexists("DAEMON","Already Installed") Then controlclick("DAEMON","Already Installed",2) winwait("DAEMON","Are you sure") controlclick("DAEMON","Are you sure",6) Exit EndIfwinwait("SPTD setup","",5) If winexists("SPTD setup") Then controlclick("SPTD setup","",1) endIfwinwait("DAEMON Tools 4.03HE (32 bit)","Setup")while $a=0 if winexists("DAEMON Tools 4.03HE (32 bit)","Setup must restart Windows") Then controlclick("DAEMON Tools 4.03HE (32 bit)","Setup must restart Windows",2) Exit endIf if winexists("DAEMON Tools 4.03HE (32 bit)","Choose Components") Then controlclick("DAEMON Tools 4.03HE (32 bit)","Choose Components",1) $a=1 endIf sleep(1000)WEndwinwait("DAEMON Tools 4.03HE (32 bit)","Choose Install Location")controlclick("DAEMON","",1)WinWait("DAEMON Tools 4.03HE (32 bit)","DAEMON Tools has been installed on your computer.")controlclick("DAEMON","",1203)controlclick("DAEMON","",1)Place daemon403-x86.exe into (CDROOT\INSTALL).dtools.au3 Edited April 6, 2006 by NuVanDibe Link to comment Share on other sites More sharing options...
clavicle Posted April 6, 2006 Share Posted April 6, 2006 Possible will work, I am going to try it.But first change the linestart /wait %CDROM\INSTALL\dtools.exeto start /wait %CDROM%\INSTALL\dtools.exeYou may submit the script in autoit script's thread. Link to comment Share on other sites More sharing options...
NuVanDibe Posted April 6, 2006 Author Share Posted April 6, 2006 Possible will work, I am going to try it.But first change the linestart /wait %CDROM\INSTALL\dtools.exetostart /wait %CDROM%\INSTALL\dtools.exeLOL omg........ Ok, i fixed it. X3 Link to comment Share on other sites More sharing options...
MHz Posted April 6, 2006 Share Posted April 6, 2006 (edited) Not sure about intregrating, but a scripted installation is what I have done previously. Have a look at the bottom of this post for some instructions given based on my installation method. Other threads cover the subject if searched for.I do not see how your script will handle the forced reboot when you install SPTD at the same time ?You can substitute the use of $a by just using ExitLoop to jump out of the While loop as needed. I would recommend using @ScriptDir in your Run function, incase the working directory is not @ScriptDir for any reason.Run(@ScriptDir & "\daemon403-x86.exe")The above line will help ensure success.A nice effort you have on the instructions.Edit:Added linkEdit2:Just remembered, as it is not the reboot msgbox that is the problem but that DT4 wants to reboot again to start the install of DT4 when the SPTD service is actually running. Edited April 6, 2006 by MHz Link to comment Share on other sites More sharing options...
NuVanDibe Posted April 6, 2006 Author Share Posted April 6, 2006 I do not see how your script will handle the forced reboot when you install SPTD at the same time ?dtools.cmd installs w/o rebooting, then windows reboots, and at the first login, dtools.exe finishes the installation. Link to comment Share on other sites More sharing options...
owikh84 Posted April 6, 2006 Share Posted April 6, 2006 i used autoit method to install DAEMON Tools as posted in AutoIt thread pinned above. Link to comment Share on other sites More sharing options...
MHz Posted April 6, 2006 Share Posted April 6, 2006 dtools.cmd installs w/o rebooting, then windows reboots, and at the first login, dtools.exe finishes the installation.Yep, you handle DT4 installer twice, excuse my ignorance . The major difference is between our methods is that running just the SPTD installer alone from Cmdlines.txt saved some grief of any hang instead of using the SPTD installer from within the DT4 installer.The script I posted in the AutoIt thread can be executed twice also, though using the SPTD installer alone from Cmdlines.txt save running the same DT4 installer a second time.The choice of automation functions is very good. Nice script. Link to comment Share on other sites More sharing options...
clavicle Posted April 6, 2006 Share Posted April 6, 2006 @NuVanDibeIs this package of daemontools studded with "WhenUSaveNow"? Mine is !You can also append the script to skip the installation of:"%programfiles%\DaemonTools_WhenUSaveNow_Installer\DaemonTools_WhenUSaveNow_Installer.exe" This will make installation easy for subsequent click and nos. Link to comment Share on other sites More sharing options...
NuVanDibe Posted April 7, 2006 Author Share Posted April 7, 2006 @MHzLol, nobody's perfect, especially not me. Although, I only became aware of the concept of unattended/silent stuff about 6 days ago, so I'm really really new to this kind of thing. Not to coding, but to unattended. Stuff.@clavicleI don't think mine has savenow... *goes and checks*...No, I don't think it does, and savenow isn't running in my processes. I downloaded it directly from the dtools website. It's the latest x86 version. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now