Jump to content

Possible Daemon Tools 4.03 Integration Method


NuVanDibe

Recommended Posts

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 enableextensions
SET CDROM=%~d0

start /wait %CDROM%\INSTALL\dtools.exe

EndLocal
EXIT

Add the following code to RunOnceEx.cmd:

REG ADD %KEY%\205 /VE /D "Daemon Tools 4.03" /f
REG ADD %KEY%\205 /V 1 /D "%CDROM%\INSTALL\dtools.exe" /f

Using 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=0

run("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
EndIf
winwait("SPTD setup","",5)
If winexists("SPTD setup") Then
controlclick("SPTD setup","",1)
endIf
winwait("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)
WEnd
winwait("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 by NuVanDibe
Link to comment
Share on other sites


Possible will work, I am going to try it.

But first change the line

start /wait %CDROM\INSTALL\dtools.exe

to

start /wait %CDROM%\INSTALL\dtools.exe

You may submit the script in autoit script's thread.

:thumbup

Link to comment
Share on other sites

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 link

Edit2:

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 by MHz
Link to comment
Share on other sites

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

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 :blushing: . 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

@NuVanDibe

Is 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

@MHz

Lol, 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.

@clavicle

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...