kal, on Jan 19 2008, 06:29 AM, said:
Anyone knows how to solve this ?
Kal
The above script closes the browser when it's launched. There's nothing else I can do to prevent it the installer from launching it, I think.
Posted 19 January 2008 - 10:36 AM
kal, on Jan 19 2008, 06:29 AM, said:
Posted 19 January 2008 - 05:36 PM
Posted 27 January 2008 - 02:48 PM
This post has been edited by SyntaxError: 27 January 2008 - 03:20 PM
Posted 30 January 2008 - 03:24 AM
#NoTrayIcon
#RequireAdmin
#include <GuiConstantsEx.au3>
#Include <GuiToolBar.au3>
opt("WinTitleMatchMode",4)
Run(@ProgramFilesDir & "\DAEMON TOOLS\daemon.exe")
;Wait for Daemon Tools installation to be finished
If WinWait("DAEMON Tools", "Please wait ...", 5) Then
WinWaitClose("DAEMON Tools", "Please wait ...", 120)
EndIf
;Configure Daemon Tools (secure mode off)
$hToolBar = WinGetHandle("[CLASS:Shell_TrayWnd]", "")
$hSysTray = ControlGetHandle($hToolBar, "", "ToolbarWindow321")
$BtnCnt = _GUICtrlToolbar_ButtonCount($hSysTray)
$BtnTxt = "DAEMON Tools"
;Search for the right icon on the tray
$i = 0
While $i < $BtnCnt
If StringLeft(_GUICtrlToolbar_GetButtonText($hSysTray, $i),12) = $BtnTxt Then
$BtnNum = $i
ExitLoop
EndIf
$i += 1
WEnd
If IsDeclared("BtnNum") Then
;Right click on the button and switch the secure mode option
;Open option menu
_GUICtrlToolbar_ClickButton($hSysTray, $BtnNum, "right")
;Wait for Daemon Tools menu
WinWait("[CLASS:#32768]", "", 5)
$hnd = WinGetHandle("[LAST]")
EndIf
If Not @error Then
SendKeepActive("[LAST]")
ControlSend("[LAST]", "", "", "{UP}{UP}{UP}{UP}{UP}{RIGHT}{DOWN}")
$size = WinGetPos("[CLASS:#32768]")
EndIf
If Not @error Then
;Default DTPanel off / on
If ($size[2] = 158 AND ($size[3] = 186 OR $size[3] = 206)) Then
$PosXSecureMode = $size[0] + 18
$PosYSecureMode = $size[1] + 32
;Get current menutext color
$color_menutext = StringSplit(RegRead("HKCU\Control Panel\Colors","MenuText"), " ")
If Not @error Then
$color_menutext = Dec(Hex($color_menutext[1],2) & Hex($color_menutext[2],2) & Hex($color_menutext[3],2))
Else
;Default menutext is black
$color_menutext = 0
EndIf
;Check if Securemode is on
If PixelGetColor($PosXSecureMode, $PosYSecureMode) = $color_menutext Then
;Switch secure mode off
MouseClick("left", $PosXSecureMode, $PosYSecureMode)
Sleep(500)
Else
;Minimize Daemon Tools Menu
WinSetState("[LAST]", "", @SW_MINIMIZE)
EndIf
EndIf
EndIf
title Daemon Tools 4.12.1 ::settings added to current user runonce section will be installed when desktop is loaded! ::Note @T12 %cd% doesn't work set CurrentPath=%~dp0 set CurrentPath=%CurrentPath:~0,-1% set CurrentUserRunOnce=HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce ::Note SPTD Driver v1.55 included with Daemon Tools 4.12.1 ::otherwise use SPTDinstaller with 'add /q' ::you have to reboot or Daemon Tools won't be installed daemon4121-lite.exe /S ::Install Daemon Tools when desktop is loaded reg add "%CurrentUserRunOnce%" /v "Daemon Tools 4.12.1" /d "\"%CurrentPath%\..\..\runhidden.exe\" \"%CurrentPath%\" config.cmd" /f exit
title Daemon Tools 4.12.1 ::Uninstall information reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\dtools" /v "DisplayName" /d "Daemon Tools 4.12.1" /f reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\dtools" /v "UninstallString" /d "%ProgramFiles%\DAEMON Tools\uninst.exe" /f reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\dtools" /v "InstallLocation" /d "%ProgramFiles%\DAEMON Tools" /f reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\dtools" /v "DisplayIcon" /d "%ProgramFiles%\DAEMON Tools\daemon.exe" /f ::Remove adware del /f /q "%programfiles%\daemon tools\AdVantageSetup.exe" ::Launch Daemon Tools and configure settings - requires AutoIT 3.2.11 beta autoit3 config_daemontools.au3 ::ArniWorX Daemon Tools Shell Extension awxDTools1060.exe /VERYSILENT /NORESTART exit
This post has been edited by Acheron: 17 February 2008 - 06:38 PM
Posted 16 February 2008 - 09:59 AM
Acheron, on Jan 30 2008, 10:24 AM, said:
#requireadmin
#include <GuiConstantsEx.au3>
#Include <GuiToolBar.au3>
opt("WinTitleMatchMode",4)
Run(@ProgramFilesDir & "\DAEMON TOOLS\daemon.exe")
;WinWaitClose("DAEMON Tools", "Please wait ...", 120)
;If WinWait("DAEMON Tools", "Please wait ...", 5) Then
;Configure Daemon Tools (secure mode off)
$hToolBar = WinGetHandle("[CLASS:Shell_TrayWnd]", "")
$hSysTray = ControlGetHandle($hToolBar, "", "ToolbarWindow321")
$BtnCnt = _GUICtrlToolbar_ButtonCount($hSysTray)
$BtnTxt = "DAEMON Tools"
;Search for the right icon on the tray
$i = 0
While $i < $BtnCnt
If StringLeft(_GUICtrlToolbar_GetButtonText($hSysTray, $i),12)=$BtnTxt Then
$BtnNum = $i
ExitLoop
EndIf
$i += 1
WEnd
If IsDeclared("BtnNum") Then
;Right click on the button and switch the secure mode option
;Open option menu
_GUICtrlToolbar_ClickButton($hSysTray, $BtnNum, "right")
;Wait for Daemon Tools menu
WinWait("[CLASS:#32768]", "", 5)
$hnd = WinGetHandle("[LAST]")
If Not @error Then
SendKeepActive ("[LAST]")
ControlSend("[LAST]", "", "", "{UP}{UP}{UP}{UP}{UP}{RIGHT}{DOWN}")
$size = WinGetPos("[CLASS:#32768]")
If Not @error Then
;Default DTPanel off / on
If ($size[2] = 152 AND ($size[3] = 170)) OR ($size[2] = 158 AND ($size[3] = 156 OR $size[3] = 176)) Then
;Switch secure mode off
MouseClick("left",$size[0] + 16, $size[1] + 34)
EndIf
EndIf
EndIf
EndIf
Posted 17 February 2008 - 04:48 PM
Posted 17 February 2008 - 06:20 PM
Acheron, on Feb 18 2008, 12:48 AM, said:
Opt("TrayIconDebug", 1)
Opt("SendKeyDelay", 200)
; Executable file name
$EXECUTABLE = "daemon4121-lite.exe"
; Run Daemon Tools on Windows startup
$autostart = 0
; Detect the Operating System type (32 bit or 64 bit)
$OS = _OSBit()
If $OS = 32 Then
; Installation folder
$INSTALLLOCATION = @ProgramFilesDir & "\DAEMON Tools Lite"
If FileExists($INSTALLLOCATION & "\daemon.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of DAEMON Tools before using this script", 4)
Exit
EndIf
; Disable the default internet browser (to prevent SRSAI.exe to open it)
$DefBrowser = RegRead("HKCR\HTTP\shell\open\command\", "")
RegDelete("HKCR\HTTP\shell\open\command\", "")
; Read from registry which is the home page of Internet Explorer (to restore it after the installation of DAEMON Tools Lite)
$HomePage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")
; Run the installer
Run($EXECUTABLE & " /S")
; Start checking for a window with "Please select a language." text inside
AdlibEnable('_Adlib')
; Kill SRSAI.exe process
ProcessWait("SRSAI.exe")
$PID = ProcessExists("SRSAI.exe")
If $PID Then
ProcessClose($PID)
EndIf
; Stop checking for a window with "Please select a language." text inside
AdlibDisable()
Sleep(2000)
; Delete SRSAI.exe file
FileDelete($INSTALLLOCATION & "\SRSAI.exe")
; Restore the default internet browser
RegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser)
; Restore the home page of Internet Explorer
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "", "REG_SZ", $HomePage)
; Block daemon.exe to run on Windows startup
If $autostart = 0 Then
RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DAEMON Tools Lite")
EndIf
; Add uninstall entries
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", "DAEMON Tools Lite 4.12.1")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLLOCATION & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLLOCATION)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ", $INSTALLLOCATION & "\daemon.exe")
EndIf
If $OS = 64 Then
; Installation folder
$INSTALLLOCATION = @HomeDrive & "\Program Files (x86)\DAEMON Tools Lite"
If FileExists($INSTALLLOCATION & "\daemon.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of DAEMON Tools before using this script", 4)
Exit
EndIf
; Disable the default internet browser (to prevent SRSAI.exe to open it)
$DefBrowser = RegRead("HKCR\HTTP\shell\open\command\", "")
RegDelete("HKCR\HTTP\shell\open\command\", "")
; Read from registry which is the home page of Internet Explorer (to restore it after the installation of DAEMON Tools Lite)
$HomePage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")
; Run the installer
Run($EXECUTABLE & " /S")
; Start checking for a window with "Please select a language." text inside
AdlibEnable('_Adlib')
; Kill SRSAI.exe process
ProcessWait("SRSAI.exe")
$PID = ProcessExists("SRSAI.exe")
If $PID Then
ProcessClose($PID)
EndIf
; Stop checking for a window with "Please select a language." text inside
AdlibDisable()
Sleep(2000)
; Delete SRSAI.exe file
FileDelete($INSTALLLOCATION & "\SRSAI.exe")
; Restore the default internet browser
RegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser)
; Restore the home page of Internet Explorer
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "", "REG_SZ", $HomePage)
; Block daemon.exe to run on Windows startup
If $autostart = 0 Then
RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DAEMON Tools Lite")
EndIf
; Add uninstall entries
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", "DAEMON Tools Lite 4.12.1")
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLLOCATION & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLLOCATION)
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ", $INSTALLLOCATION & "\daemon.exe")
EndIf
Func _Adlib()
; Please select a language.
If WinExists("DAEMON Tools Lite 4.12.1", "Please select a language.") Then
WinActivate("DAEMON Tools Lite 4.12.1", "Please select a language.")
ControlClick("DAEMON Tools Lite 4.12.1", "", "Button1")
EndIf
EndFunc
Func _OSBit()
Local $tOS = DllStructCreate("char[256]")
Local $aGSWD = DllCall("Kernel32.dll", "int", "GetSystemWow64Directory", "ptr", DllStructGetPtr($tOS), "int", 256)
If IsArray($aGSWD) And DllStructGetData($tOS, 1) Then Return 64
Return 32
EndFunc
This post has been edited by radix: 13 March 2008 - 01:11 PM
Posted 17 February 2008 - 10:22 PM
Posted 18 February 2008 - 04:33 AM
Posted 22 February 2008 - 08:39 AM
SetOutPath $INSTDIR File SRSAI.exe Execute 49043 0 0 StrCpy $[43] "1" Return SetFlag 13 47631 StrCpy $[41] "1" Return SetFlag 13 162 UpdateSatusText Installing Desktop Shortcut... 0 SetFlag 13 47631
Quote
This post has been edited by squizo: 22 February 2008 - 08:46 AM
Posted 22 February 2008 - 09:05 AM
squizo, on Feb 22 2008, 04:39 PM, said:
SetOutPath $INSTDIR File SRSAI.exe Execute 49043 0 0 StrCpy $[43] "1" Return SetFlag 13 47631 StrCpy $[41] "1" Return SetFlag 13 162 UpdateSatusText Installing Desktop Shortcut... 0 SetFlag 13 47631
Quote
Posted 22 February 2008 - 09:45 AM
This post has been edited by squizo: 22 February 2008 - 09:45 AM
Posted 17 March 2008 - 09:30 AM
Opt("TrayIconDebug", 1)
Opt("SendKeyDelay", 200)
; Executable file name
$EXECUTABLE = "daemon4122-lite.exe"
; Run Daemon Tools on Windows startup
$autostart = 0
; Detect the Operating System type (32 bit or 64 bit)
$OS = _OSBit()
If $OS = 32 Then
; Installation folder
$INSTALLLOCATION = @ProgramFilesDir & "\DAEMON Tools Lite"
If FileExists($INSTALLLOCATION & "\daemon.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of DAEMON Tools before using this script", 4)
Exit
EndIf
; Disable the default internet browser (to prevent daemon.exe to open it)
$DefBrowser = RegRead("HKCR\HTTP\shell\open\command\", "")
RegDelete("HKCR\HTTP\shell\open\command\", "")
; Read from registry which is the home page of Internet Explorer (to restore it after the installation of DAEMON Tools Lite)
$HomePage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")
; Run the installer
Run($EXECUTABLE & " /S")
; Start checking for a window with "Please select a language." text inside
AdlibEnable('_Adlib')
ProcessWaitClose($EXECUTABLE)
Sleep(2000)
; Restore the default internet browser
RegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser)
; Restore the home page of Internet Explorer
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "", "REG_SZ", $HomePage)
; Block daemon.exe to run on Windows startup
If $autostart = 0 Then
RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DAEMON Tools Lite")
EndIf
; Add uninstall entries
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", "DAEMON Tools Lite 4.12.2")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLLOCATION & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLLOCATION)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ", $INSTALLLOCATION & "\daemon.exe")
; Stop checking for a window with "Please select a language." text inside
AdlibDisable()
EndIf
If $OS = 64 Then
; Installation folder
$INSTALLLOCATION = @HomeDrive & "\Program Files (x86)\DAEMON Tools Lite"
If FileExists($INSTALLLOCATION & "\daemon.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of DAEMON Tools before using this script", 4)
Exit
EndIf
; Disable the default internet browser (to prevent daemon.exe to open it)
$DefBrowser = RegRead("HKCR\HTTP\shell\open\command\", "")
RegDelete("HKCR\HTTP\shell\open\command\", "")
; Read from registry which is the home page of Internet Explorer (to restore it after the installation of DAEMON Tools Lite)
$HomePage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")
; Run the installer
Run($EXECUTABLE & " /S")
; Start checking for a window with "Please select a language." text inside
AdlibEnable('_Adlib')
ProcessWaitClose($EXECUTABLE)
Sleep(2000)
; Restore the default internet browser
RegWrite("HKCR\HTTP\shell\open\command\", "", "REG_SZ", $DefBrowser)
; Restore the home page of Internet Explorer
RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "", "REG_SZ", $HomePage)
; Block daemon.exe to run on Windows startup
If $autostart = 0 Then
RegDelete("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "DAEMON Tools Lite")
EndIf
; Add uninstall entries
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayName", "REG_SZ", "DAEMON Tools Lite 4.12.2")
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "UninstallString", "REG_SZ", $INSTALLLOCATION & "\uninst.exe")
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "InstallLocation", "REG_SZ", $INSTALLLOCATION)
RegWrite("HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite", "DisplayIcon", "REG_SZ", $INSTALLLOCATION & "\daemon.exe")
; Stop checking for a window with "Please select a language." text inside
AdlibDisable()
EndIf
Func _Adlib()
; Please select a language.
If WinExists("DAEMON Tools Lite 4.12.2", "Please select a language.") Then
ControlClick("DAEMON Tools Lite 4.12.2", "Please select a language.", "Button1")
EndIf
EndFunc
Func _OSBit()
Local $tOS = DllStructCreate("char[256]")
Local $aGSWD = DllCall("Kernel32.dll", "int", "GetSystemWow64Directory", "ptr", DllStructGetPtr($tOS), "int", 256)
If IsArray($aGSWD) And DllStructGetData($tOS, 1) Then Return 64
Return 32
EndFunc
This post has been edited by radix: 19 March 2008 - 07:00 AM
Posted 03 April 2008 - 07:01 AM
DAEMON_Tools_Lite_4.12.3_with_SPTD_1.56.au3 (5.33K)
This post has been edited by radix: 03 April 2008 - 07:05 AM
Posted 03 April 2008 - 01:18 PM
Posted 03 April 2008 - 02:42 PM
Acheron, on Apr 3 2008, 09:18 PM, said:
If FileExists($INSTALLLOCATION & "\daemon.exe") Then MsgBox(0x40010, @ScriptName, "Please uninstall previous version of DAEMON Tools before using this script", 4) Exit EndIf
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\DAEMON Tools Lite.
Posted 04 April 2008 - 03:32 AM
Posted 04 April 2008 - 05:30 AM
Acheron, on Apr 4 2008, 11:32 AM, said:
Posted 02 May 2008 - 04:24 PM
Posted 03 May 2008 - 08:17 AM
; Script Start - Add your code below here
Opt("TrayIconDebug", 1)
Opt("SendKeyDelay", 200)
; Executable file name
$EXECUTABLE = "daemon4123-lite.exe"
[color="#FF0000"][b]$WINDOWTITLEVERSION = "DAEMON Tools Lite 4.12.3"[/b][/color]
; Run Daemon Tools on Windows startup
$autostart = 0
; Detect the Operating System type (32 bit or 64 bit)
$OS = _OSBit()
This post has been edited by microbion: 03 May 2008 - 08:19 AM