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
![]() ![]() |
Nov 20 2006, 02:19 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
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. CODE #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. |
|
|
|
Nov 20 2006, 07:56 PM
Post
#2
|
|
|
So solid as a rock is ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 794 Joined: 30-May 04 Member No.: 21053
|
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: Nov 20 2006, 07:59 PM |
|
|
|
Nov 21 2006, 09:17 AM
Post
#3
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
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.
|
|
|
|
Nov 21 2006, 01:04 PM
Post
#4
|
|
|
So solid as a rock is ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 794 Joined: 30-May 04 Member No.: 21053
|
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. |
|
|
|
Nov 21 2006, 02:14 PM
Post
#5
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
I don't know why but in my case it stills runs WhenU. Are u lucky?
|
|
|
|
Nov 21 2006, 11:15 PM
Post
#6
|
|
|
SendToA3X v1.7 ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1584 Joined: 2-August 04 Member No.: 26076 OS: XP Pro x86
|
Nice script
|
|
|
|
Nov 22 2006, 01:38 PM
Post
#7
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
Nice script Thanks, I'll try it |
|
|
|
Dec 21 2006, 08:12 AM
Post
#8
|
|
|
Newbie Group: Members Posts: 22 Joined: 21-October 03 Member No.: 8379 |
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. |
|
|
|
Dec 21 2006, 05:14 PM
Post
#9
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
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: CODE #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 |
|
|
|
Dec 21 2006, 11:16 PM
Post
#10
|
|
|
SendToA3X v1.7 ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1584 Joined: 2-August 04 Member No.: 26076 OS: XP Pro x86
|
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. CODE ; 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. |
|
|
|
Dec 22 2006, 10:35 AM
Post
#11
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
May I suggest a small change in your execution command to help with a path issue that is possible to the installer. CODE ; 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. |
|
|
|
Jan 28 2007, 10:38 AM
Post
#12
|
|
|
Junior ![]() Group: Members Posts: 55 Joined: 1-October 04 Member No.: 32557 |
Do I have to install AutoIt Script before I launch this or is there another way around?
|
|
|
|
Jan 28 2007, 03:27 PM
Post
#13
|
|
|
Member ![]() ![]() Group: Members Posts: 104 Joined: 15-September 04 Member No.: 31158 |
|
|
|
|
Jan 28 2007, 03:43 PM
Post
#14
|
|
|
Follow the rules please :-) Group: Patrons Posts: 7658 Joined: 14-November 03 From: Bangalore, India Member No.: 9470
|
thanks, i needed this script!
|
|
|
|
Jan 29 2007, 03:40 AM
Post
#15
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 507 Joined: 9-February 05 From: Philippines Member No.: 43564
|
edit: kinda figured >.>
This post has been edited by slimzky: Jan 29 2007, 03:41 AM |
|
|
|
Jan 31 2007, 01:15 AM
Post
#16
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 673 Joined: 30-November 06 From: Behind you Member No.: 117138 OS: Vista Ultimate x86
|
thx
This post has been edited by sp00f: Jan 31 2007, 01:19 AM |
|
|
|
Apr 14 2007, 11:34 AM
|