oldo Posted April 3, 2007 Share Posted April 3, 2007 (edited) 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:\dtools.exe\dtools.cmd:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 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 Windowcmdow @ /hid@echo off:: Define ConstantsSET 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.." /fREG ADD %KEY%10 /V 1 /D "%systemdrive%\maint\temp\dtools.exe /S /D=C:\Program Files\JONET\Daemon Tools\v4.08" /fREG ADD %KEY%20 /VE /D "Cleaning Up.." /fREG 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."EXIT:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: END OF SCRIPT ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\components\SPTD.exe\components\clean.cmd:: Hide Windowcmdow @ /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 filesRMDIR /S /Q "%systemdrive%\maint\temp".\components\config.reg(This stops daemon tools loading at windows startup. Optional.)Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]"DAEMON Tools"=-To install just run "dtools.cmd".OLDo Edited April 3, 2007 by oldo Link to comment Share on other sites More sharing options...
Steam Trout Posted April 4, 2007 Share Posted April 4, 2007 You forgot to remove %programfiles%\DaemonTools_WhenU_Installer dir which sometimes appears too. Link to comment Share on other sites More sharing options...
oldo Posted April 4, 2007 Author Share Posted April 4, 2007 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 More sharing options...
Steam Trout Posted April 4, 2007 Share Posted April 4, 2007 You are probably right because I allowed my DAEMON to run the WhenU installer. Never hurts to have an extra line just in case though Link to comment Share on other sites More sharing options...
oldo Posted April 4, 2007 Author Share Posted April 4, 2007 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? Link to comment Share on other sites More sharing options...
darks0ul Posted April 6, 2007 Share Posted April 6, 2007 there are autoit scripts with even more functionality, I even posted one. just search, those are more flexible. Link to comment Share on other sites More sharing options...
Steam Trout Posted April 6, 2007 Share Posted April 6, 2007 And what more functionality do you need here ? It installs the app, it deletes the junk. Link to comment Share on other sites More sharing options...
oldo Posted April 9, 2007 Author Share Posted April 9, 2007 Yeah.. not a fan of auto-it or similar languages myself. Seems a bit lazy to me Link to comment Share on other sites More sharing options...
planoleg Posted June 1, 2008 Share Posted June 1, 2008 Could you please break it down to easy-to-follow steps? Thanks in advance Link to comment Share on other sites More sharing options...
oskingen Posted June 1, 2008 Share Posted June 1, 2008 Nice, works fine 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