Jump to content

Daemon Tools v4.**


Recommended Posts

Doesn't seem to be a decent tutorial on this one (apart from the packaged CAB version which is nice ;), but i've created my own method as described below. I run it from a network location at runonceex stage, but you could run from pretty much anywhere.

Hopefully it's of some use to someone here :)

You'll need cmdow.exe in system32 folder to hide the windows. If you don't.. just comment the line out.

Change the code where needed to reflect your own needs.

File structure:



:: START OF SCRIPT :: Written by Chris Joseph, 2007. ::
:: This script first installs SPTD drivers v142. Then adds Daemon Tools v4.08 ::
:: to RunOnceEx to execute following next reboot. ::

:: Hide Window
cmdow @ /hid
@echo off

:: Define Constants
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

:: Install SPTD Drivers.

.\components\SPTD.exe add /q

:: Make local copy of Deamon Tools installer

MD %systemdrive%\maint\temp\
COPY /Y .\dtools.exe %systemdrive%\maint\temp\
COPY /Y .\components\clean.cmd %systemdrive%\maint\temp\
COPY /Y .\components\config.reg %systemdrive%\maint\temp\

:: Add RegOnceEx entries for Dtools install.

REG ADD %KEY% /V TITLE /D "JoBase v2.1: Installing Daemon Tools.." /f

:: Change install directory to preferred location!
REG ADD %KEY%10 /VE /D "Installing Application.." /f
REG ADD %KEY%10 /V 1 /D "%systemdrive%\maint\temp\dtools.exe /S /D=C:\Program Files\JONET\Daemon Tools\v4.08" /f

REG ADD %KEY%20 /VE /D "Cleaning Up.." /f
REG ADD %KEY%20 /V 1 /D "%systemdrive%\maint\temp\clean.cmd" /f

:: Reboots machine. (Comment out if reboot is done later following further installs)
shutdown.exe -r -f -t 00 -c "Administrative shutdown will commence shortly. Setup will continue following reboot."





:: Hide Window
cmdow @ /hid
@echo off

:: Remove load on windows startup (optional, comment out if not required)
regedit /s "C:\maint\temp\config.reg"

:: Remove Spyware (change location to reflect your chosen install directory)
DEL /F /Q "%systemdrive%\Program Files\JONET\Daemon Tools\v4.08\SetupDTSB.exe"

:: Remove desktop icon (optional, comment out if not required)
DEL /F /Q "%systemdrive%\Documents and Settings\All Users\Desktop\*.*"

:: Remove temporary files
RMDIR /S /Q "%systemdrive%\maint\temp"


(This stops daemon tools loading at windows startup. Optional.)

Windows Registry Editor Version 5.00

"DAEMON Tools"=-

To install just run "dtools.cmd".


Edited by oldo
Link to comment
Share on other sites

As far as i can tell, that only appears when daemon tools is allowed to run for the first time. I remove the SetupDTSB.exe (which spawns the file you mention), before it has a chance to open.

This method worked for me atleast :)

Link to comment
Share on other sites

Tested again, on a fresh VM.. still works fine. Asside from repackaging, i can't thing of another way to do this.

Either way.. it works, and i think i can live with it :)

By all means.. add the other line as a safe guard. Wouldn't want your users complaining they have popups of the Hoff playing volleyball now, would you? :P

Link to comment
Share on other sites

  • 1 year later...

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