MSFN Forum: Daemon Tools 4.08 (AutoIt Launcher) - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Daemon Tools 4.08 (AutoIt Launcher) Silent Installer Rate Topic: -----

#1 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 20 November 2006 - 02:19 PM

Hi,

I've created a script that will install last Daemon Tools and remove spyware. It is based on a script posted at this board (I'm just using one function of the base script).

You will be able to install Daemon to a subfolder of ProgramFiles (ie: ProgramFiles\Recorder\Daemon Tools), and the shortcuts can also be placed in a different subgroup (ie: Start Menu-> Programs -> Recorder -> Daemon Tools).

The most important thing that this script does is to remove the bundled spyware. It is very little code and RunOnceEx capable.

#cs
AutoIt 3.2 Script slightly based on an old Daemon Tools 4.0 script published at the MSFN.org boards.
Author: Guillermo Miranda Alamo
#ce

; Installer.
$Name = "DAEMON Tools"
$executable = 'daemon408-x86.exe'
; Default category folder in startmenu.
$group = 'Recorder\Daemon Tools'

; Installation folder in Program Files.
$directory = 'Recorder\Daemon Tools'


; Run the installer.

RunWait($executable & " /S /D=" & @ProgramFilesDir & "\" & $directory,@ScriptDir)


_Desktop('DAEMON Tools.lnk')

; Delete spyware installer.
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","DaemonTools_WhenUSave_Installer")

If FileExists(@ProgramFilesDir & '\' & $directory & '\SetupDTSB.exe') Then
   FileDelete(@ProgramFilesDir & '\' & $directory & '\SetupDTSB.exe')
EndIf
; Kill the spyware process
If ProcessExists("DaemonTools_WhenUSave_Installer.exe")  Then
   ProcessClose("DaemonTools_WhenUSave_Installer.exe")
EndIf
   

; Remove that... Crap
DirRemove(@ProgramFilesDir & '\' & "DaemonTools_WhenUSave_Installer",1)

; Move program menu folder
DirMove ( @ProgramsCommonDir&"\"&$Name, @ProgramsCommonDir&"\"&$group , 1 )


Exit


Func _Desktop($shortcut)
   ; Delete a Desktop shortcut.
	If FileExists(@DesktopDir & '\' & $shortcut) Then
		Return FileChangeDir(@DesktopDir) And FileDelete($shortcut)
	ElseIf FileExists(@DesktopCommonDir & '\' & $shortcut) Then
		Return FileChangeDir(@DesktopCommonDir) And FileDelete($shortcut)
	EndIf
EndFunc


Please, post any feedback.

By the way, I haven't tried if this installs SPTD Driver 1.37. I installed it previously using the silent package from the SPTD Driver thread. I'll be keeping a look out for any updates.


#2 User is offline   Solid as a rock 

  • So solid as a rock is
  • PipPipPipPipPip
  • Group: Members
  • Posts: 718
  • Joined: 30-May 04

Posted 20 November 2006 - 07:56 PM

So the only thing of this is to remove the spyware? 4.08 have already buildin unattended install support? Why dont use that and find a way to not install the spyware?

Quote

This new version supports silent setup now.
Example: daemon408-x86.exe /S /D=F:\Some Folder\
Note that no quotes must be used in installation path even if name has spaces.
All critical errros will be still displayed no matter silent or not.
Case of parameters is important, eg. /s will not work.
Reboot prompt will not be shown.

If SPTD was not present then it will be silently installed but PC will not be rebooted - it is assumed the administrator who performs unattended install will take care of reboot and restarts DT setup after reboot in this case.

It is best first to use standalone SPTD installer and install it silently this way:
sptdinst-x86.exe add /q
Note: SPTD 1.37 will not display debugger warning dialog anymore. They left this info in EULA only as this message confuses many users and also not "silent setup friendly".
Standalone SPTD 1.37 installer is released by Duplex Secure officially and can be obtained at their website http://www.duplexsecure.com Also fixed:


To prevent spyware installing:

Quote

"If you do not want to support us you can just delete SetupDTSB.exe after silent installation and it will never run."


BRON

This post has been edited by Solid as a rock: 20 November 2006 - 07:59 PM


#3 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 21 November 2006 - 09:17 AM

The default installer will run "WhenUSave" spyware, if you read the script or try yourself, you'll see that it creates a new Run entry, it will be run when windows starts. However, it would be great to indicate the setup to not install ad/spyware.

#4 User is offline   Solid as a rock 

  • So solid as a rock is
  • PipPipPipPipPip
  • Group: Members
  • Posts: 718
  • Joined: 30-May 04

Posted 21 November 2006 - 01:04 PM

View Postdarks0ul, on Nov 21 2006, 05:17 PM, said:

The default installer will run "WhenUSave" spyware, if you read the script or try yourself, you'll see that it creates a new Run entry, it will be run when windows starts. However, it would be great to indicate the setup to not install ad/spyware.

so delete SetupDTSB.exe after silent installation and there will no "WhenU" or other spyware installed.

#5 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 21 November 2006 - 02:14 PM

I don't know why but in my case it stills runs WhenU. Are u lucky?

#6 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 21 November 2006 - 11:15 PM

Nice script :D . I do not see WhenUSave after deleting SetupDTSB.exe. I updated my version in the AutoIt thread here. I based the script on using the SPTD within the installer. If you would like, then you can add the same concept into your script.

:)

#7 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 22 November 2006 - 01:38 PM

View PostMHz, on Nov 21 2006, 11:15 PM, said:

Nice script :D . I do not see WhenUSave after deleting SetupDTSB.exe. I updated my version in the AutoIt thread here. I based the script on using the SPTD within the installer. If you would like, then you can add the same concept into your script.

:)

Thanks, I'll try it :D

#8 User is offline   s.stormont 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 21-October 03

Posted 21 December 2006 - 08:12 AM

What did I do wrong? I ran aut2exe and converted the script to dtools408.exe. I then added it to my list of programs to install in WPA. When it tries to install, I get this error:

AutoIt Error
Line 0 (File "D:\Software\Apps\Dtools\dtools408.exe"):

RunWait($executable & "/S /D="&@ProgramFilesDir & "\" & $directory,@ScriptDir)

Error: Unable to execute the external program.

The system cannot find the file specified.

#9 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 21 December 2006 - 05:14 PM

View Posts.stormont, on Dec 21 2006, 08:12 AM, said:

What did I do wrong? I ran aut2exe and converted the script to dtools408.exe. I then added it to my list of programs to install in WPA. When it tries to install, I get this error:

AutoIt Error
Line 0 (File "D:\Software\Apps\Dtools\dtools408.exe"):

RunWait($executable & "/S /D="&@ProgramFilesDir & "\" & $directory,@ScriptDir)

Error: Unable to execute the external program.

The system cannot find the file specified.

I use RunOnceEx, have you tried running the compiled script inside Windows, without WPA?

Here's the script I'm using now:
#cs
AutoIt 3.2 Script slightly based on an old Daemon Tools 4.0 script published at the MSFN.org boards.
Author: Guillermo Miranda Alamo
#ce

; Installer.
$Name = "DAEMON Tools"
$executable = 'daemon408-x86.exe'
; Default category folder in startmenu.
$group = 'Recorder'

; Installation folder in Program Files.
$directory = 'Recorder\Daemon Tools'


; Run the installer.

RunWait($executable & " /S /D=" & @ProgramFilesDir & "\" & $directory,@ScriptDir)


_Desktop('DAEMON Tools.lnk')

; Delete spyware installer.
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","DaemonTools_WhenUSave_Installer")

If FileExists(@ProgramFilesDir & '\' & $directory & '\SetupDTSB.exe') Then
   FileDelete(@ProgramFilesDir & '\' & $directory & '\SetupDTSB.exe')
EndIf
; Kill the spyware process
If ProcessExists("DaemonTools_WhenUSave_Installer.exe")  Then
   ProcessClose("DaemonTools_WhenUSave_Installer.exe")
EndIf
  

; Remove that... Crap
DirRemove(@ProgramFilesDir & '\' & "DaemonTools_WhenUSave_Installer",1)

DirCreate(@ProgramsCommonDir&"\"&$group )
; Move program menu folder
DirMove ( @ProgramsCommonDir&"\"&$Name, @ProgramsCommonDir&"\"&$group , 1 )


Exit


Func _Desktop($shortcut)
  ; Delete a Desktop shortcut.
	If FileExists(@DesktopDir & '\' & $shortcut) Then
		Return FileChangeDir(@DesktopDir) And FileDelete($shortcut)
	ElseIf FileExists(@DesktopCommonDir & '\' & $shortcut) Then
		Return FileChangeDir(@DesktopCommonDir) And FileDelete($shortcut)
	EndIf
EndFunc


#10 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 21 December 2006 - 11:16 PM

View Postdarks0ul, on Dec 22 2006, 09:14 AM, said:

Here's the script I'm using now:

May I suggest a small change in your execution command to help with a path issue that is possible to the installer.
; Run the installer
If Not FileExists($executable) Then FileChangeDir(@ScriptDir)
RunWait('"' & $executable & '" /S /D=' & @ProgramFilesDir & '\' & $directory, @ScriptDir)

The above will check the current directory and then change it to @ScriptDir if the file is not found. That allows you to pass a @WorkingDir <> @scriptDir and if no good, then it tries @ScriptDir. Your intial code does not correct if @WorkingDir <> @ScriptDir so you only get one chance.

:)

#11 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 22 December 2006 - 10:35 AM

View PostMHz, on Dec 21 2006, 11:16 PM, said:

May I suggest a small change in your execution command to help with a path issue that is possible to the installer.
; Run the installer
If Not FileExists($executable) Then FileChangeDir(@ScriptDir)
RunWait('"' & $executable & '" /S /D=' & @ProgramFilesDir & '\' & $directory, @ScriptDir)

The above will check the current directory and then change it to @ScriptDir if the file is not found. That allows you to pass a @WorkingDir <> @scriptDir and if no good, then it tries @ScriptDir. Your intial code does not correct if @WorkingDir <> @ScriptDir so you only get one chance.

:)


Ehm the code works for me, because RunOnceEx launchs applications using %SystemDrive% as WorkingDir. However, I would be happy to hear if that works for WPA.

#12 User is offline   zoobooboozoo 

  • Junior
  • Pip
  • Group: Members
  • Posts: 50
  • Joined: 01-October 04

Posted 28 January 2007 - 10:38 AM

Do I have to install AutoIt Script before I launch this or is there another way around?

#13 User is offline   darks0ul 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 15-September 04

Posted 28 January 2007 - 03:27 PM

View Postzoobooboozoo, on Jan 28 2007, 10:38 AM, said:

Do I have to install AutoIt Script before I launch this or is there another way around?

You can "compile" a script, so it will be an exe file, that doesn't need AutoIt.

Right clic on the AutoIt script file, and clic compile script.

#14 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 January 2007 - 03:43 PM

thanks, i needed this script! :thumbup

#15 User is offline   slimzky 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 412
  • Joined: 09-February 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 January 2007 - 03:40 AM

edit: kinda figured >.>

This post has been edited by slimzky: 29 January 2007 - 03:41 AM


#16 User is offline   sp00f 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 712
  • Joined: 30-November 06

Posted 31 January 2007 - 01:15 AM

thx

This post has been edited by sp00f: 31 January 2007 - 01:19 AM


#17 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 14 April 2007 - 11:34 AM

Daemon Tools 4.09 is out.

I personally use this batch script. Notice Daemon Tools lacks uninstall info, so I add it manually with adding uninst.cmd.

install.cmd
start "Install Daemon Tools" /wait "daemon409-x86.exe" /S
 ::delete Adware
 del /f /q "%programfiles%\DAEMON Tools\SetupDTSB.exe"
 ::add uninstall information
 set uninstallkey=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Daemon Tools
 copy /y uninst.cmd "%programfiles%\DAEMON Tools\uninst.cmd"
 reg add "%uninstallkey%" /v "DisplayName" /d "Daemon Tools 4.09" /f
 reg add "%uninstallkey%" /v "UninstallString" /d "cmd /c start \"Uninstall Daemon Tools\" /min \"%programfiles%\DAEMON Tools\uninst.cmd\"" /f
 exit


uninst.cmd
 start "Uninstall Daemon Tools" /min /wait "%programfiles%\Daemon Tools\uninst.exe"
 
 :Uninstall
 if not exist "%programfiles%\Daemon Tools\uninst.exe" (
	 reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Daemon Tools" /va /f
	 rd /s /q "%programfiles%\Daemon Tools" & exit
 ) else (
	 goto :Uninstall
 )

This post has been edited by Acheron: 14 April 2007 - 11:43 AM


#18 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 15 April 2007 - 10:51 AM

Daemon Tools is nothing without a good Shell Extension.

I have created a new installer for ArniWorx Deamon Tools 1.0.60, because the normal installer is very limited.

http://updatepack.nl...DTools_1060.exe (1,04 MB)

You can use "/VERYSILENT /NORESTART" to install the program silently :hello:

P.S. You have to install Daemon Tools first, and awxDTools must be installed into the same dir as Daemon Tools.

You also have to install the Microsoft VC2005 Redistribubale files for the extension to work properly.

This post has been edited by Acheron: 15 April 2007 - 10:58 AM


#19 User is offline   Steam Trout 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 11-January 06

Posted 15 April 2007 - 12:40 PM

I personally use original awxTools installer with /VERYSILENT /SUPPRESSMSGBOXES /NORESTART options and a custom reg file to add more supported formats. What have you added in your installer to make it less "limited" (can't possibly think of anything else it should do :\) ?

#20 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 15 April 2007 - 01:03 PM

View PostSteam Trout, on Apr 15 2007, 08:40 PM, said:

I personally use original awxTools installer with /VERYSILENT /SUPPRESSMSGBOXES /NORESTART options and a custom reg file to add more supported formats. What have you added in your installer to make it less "limited" (can't possibly think of anything else it should do :\) ?


I have removed the VC 2005 redist installer. I have added automatic language selection, more supported formats and removed creation of ArniWorx directory in Program Files. I have also removed all Start Menu shortcuts, since if you need to reregister stuff it's normally best to run the installer again.

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy