Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #RequireAdmin
- #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
- #AutoIt3Wrapper_Icon=tmp\Launcher_min.ico
- #AutoIt3Wrapper_Outfile=Launcher.exe
- #AutoIt3Wrapper_Outfile_x64=Launcher_x64.exe
- #AutoIt3Wrapper_Compression=4
- #AutoIt3Wrapper_UseUpx=y
- #AutoIt3Wrapper_UPX_Parameters=--lzma
- #AutoIt3Wrapper_Res_Comment=Launcher AIO v6.3 Made with AutoIt.
- #AutoIt3Wrapper_Res_Description=Program Launcher And Installer
- #AutoIt3Wrapper_Res_Fileversion=6.3.0.9
- #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
- #AutoIt3Wrapper_Res_LegalCopyright=© Vova Gendel aka S60Team
- #AutoIt3Wrapper_Res_Language=1033
- #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
- #AutoIt3Wrapper_Res_Field=CompanyName|S60Team
- #AutoIt3Wrapper_Res_Field=FileDescription|Program Launcher And Installer
- #AutoIt3Wrapper_Res_Field=ProductName|Launcher AIO
- #AutoIt3Wrapper_Run_Au3Stripper=y
- #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
- #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
- ;#NoTrayIcon
- ;
- ; You can use code Below to self-sign with you own certificate, But! Enable Internet!
- ;#AutoIt3Wrapper_Run_After=""%scitedir%\tools\SignThisFile\CertSigner2.exe" "%out%" /NoPopup /NoLogfile"
- ;
- ; Warning! Very strong Check for Errors!:
- ;#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7
- ;
- ; Cut Unused Functions and Comments (AutoIt v3.3.14.5):
- ;#AutoIt3Wrapper_Run_Au3Stripper=y
- ;**************************************
- ; Silent Program Installer and Launcher
- ; by Vova Gendel aka S60Team:
- ; - Detect OS
- ; - Detect Type and presence of a Disk (E: is CD-ROM, F: is Removable)
- ; - Disable Compatibility Assistant (Win7-10)
- ; - Disable Windows Defender (Win7-10)
- ; - Detect Wired Network Connection
- ; - Clear Temp
- ; - Create Shortcuts
- ; - Include some Network Fixes
- ; - Install Programs: AutoInstall, Unpack(Portable) and Silent Mode
- ;**************************************
- ;**************************************
- ;~ ToDo:
- ; - Disable Windows 10 Update Completely: Reg, Service and Hosts.
- ; - Save Folder Settings (Win7+)
- ;**************************************
- ;**************************************
- ;~ Include
- ;**************************************
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <TabConstants.au3>
- #include <WindowsConstants.au3>
- ;**************************************
- ;~ Global Variables:
- ;**************************************
- Global $Debug = 0, $ConsoleLog = 0
- Global $7za, $icl, $nircmd, $wizmo, $echoo1, $echoo2, $status, $W_Main, $wmpos, $MGD
- Global $ProgramFiles, $ProgramFiles64, $AppDataLocal, $AppData, $UserTemp, $IEv
- Global $SystemDir, $Desktop, $Disk, $Startup, $StartupREG, $exepath, $WinDir, $IE_Edge
- Global $Firefox, $Opera, $Chrome, $Flashplayer, $Skype, $Torrent, $AnyDesk, $ISO
- Global $Imagine, $Akelpad, $STDUViewer, $Fraps, $FrapsCheck, $Win2, $Ammyy, $KLite
- Global $Office2003, $Office2007, $Office2010, $Office2016, $OpenOffice, $WPSOffice
- Global $Win, $DirectX, $Visual, $NET3, $NET4, $XNA, $Java, $PhysX, $OAL, $LightShot
- Global $UsbSafelyRemove, $WinStartMenu, $HTFT, $WinRAR, $uxTheme, $Hosts, $SInfo
- Global $AutoRunCleaner, $TotalCommander, $XPFix, $BKPDrivers, $NetworkFix, $PageFile
- Global $360TSE, $Comodo, $AVG, $UsbDiskEject, $msg, $SKP, $MB, $wsf1, $Disable10Updates
- Global $set_pagefile, $mem, $mem2, $meme, $meme2, $i1, $i2, $getPFregVal, $DISA10
- Global $rxpS, $DCAss, $VolumeMax, $CLRD, $ClearTemp, $DisableDefender, $IEPath
- Global $UninstallTool, $RevoUninstaller, $Revo1, $Revo2, $PuntoSwitcher, $AmlMaple
- Global $VLC, $POTPlayer, $JetAudio, $KMPlayer, $CCleaner, $Defraggler
- ;**************************************
- ;~ Custom User Functions and Snippets:
- ;**************************************
- ;~ Fix and Set Timer for Console Log:
- If $ConsoleLog = 1 Then
- $Debug = 1
- Global $Timer = TimerInit()
- EndIf
- If $Debug = 0 Then
- $ConsoleLog = 0
- EndIf
- ;~ RegWrite Compact?
- Func _RegWrite($path,$key,$val,$type)
- Local $val2
- Switch $val
- Case 1
- $type = "REG_DWORD"
- $val2 = '0x0000000'
- Case 2
- $type = "REG_SZ"
- $val2 = ''
- Case 3
- $type = "REG_BINARY"
- $val2 = Binary("0x0000000")
- $val = Binary($val)
- Case Else
- MsgBox(4096,"Error!","Please, enter correct value!")
- EndSwitch
- Return RegWrite($path, $key, $type, $val2 & $val)
- EndFunc
- ;~ Detect OS Version (v4) by EXE:
- Global $Versions="5.1|5.2|6.0|6.1|6.2|6.3|10.", $UBound, $Split[7]
- $Split = StringSplit($Versions,"|")
- $UBound = (UBound($Split) - 1)
- Func _OS()
- Local $i, $v, $ve
- For $i=1 to $UBound
- $v=StringRegExp(FileGetVersion('winver.exe'), '^'& $Split[$i] &'')
- If $v > 0 Then
- $ve = $i ; Return: Number
- ExitLoop
- EndIf
- Next
- Return $ve
- EndFunc ;==>_OS
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('OS: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Global Variables for Common Folders:
- ; C:\Program Files (x86)\ C:\Program Files\
- If @OSArch = 'x86' Then
- $ProgramFiles = @HomeDrive & "\Program Files\"
- $ProgramFiles64 = ""
- Else
- $ProgramFiles = @HomeDrive & "\Program Files (x86)\"
- $ProgramFiles64 = @HomeDrive & "\Program Files\"
- EndIf
- If _OS() <= 2 Then
- ; C:\Documents and Settings\User\Local Settings\Application Data\
- $AppDataLocal = @UserProfileDir & "\Local Settings\Application Data\"
- $AppData = @UserProfileDir & "\Application Data\"
- Else
- ; C:\Users\User\AppData\Local\
- $AppDataLocal = @UserProfileDir & "\AppData\Local\"
- $AppData = @UserProfileDir & "\Application Data\Roaming\"
- EndIf
- ; Warning! @SystemDir = System32 or SysWow64
- ; so we use @HomeDrive + Path
- $SystemDir = @HomeDrive & "\Windows\System32\"
- $WinDir = @HomeDrive & "\Windows\"
- ; User Temp path
- If _OS() <= 2 Then
- ; C:\Documents and Settings\User\Local Settings\Temp
- $UserTemp = @UserProfileDir & "\Local Settings\Temp\"
- Else
- ; C:\Users\User\AppData\Local\Temp
- $UserTemp = $AppDataLocal & "Temp\"
- EndIf
- ; User Desktop dir
- $Desktop = @DesktopDir & "\"
- ; Exe Path
- $exepath = @ScriptDir & "\"
- ; Startup, v1
- If _OS() <= 2 Then
- $Startup = @UserProfileDir & "\Главное меню\Программы\Автозагрузка\"
- Else
- $Startup = $AppData & "Microsoft\Windows\Start Menu\Programs\Startup\"
- EndIf
- ; Startup, v2
- $StartupREG = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Global Variables: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Minimize ALL windows
- ;WinMinimizeAll()
- ;~ Disable Compatibility Assistant.
- ; Do the stuff:
- If _OS() > 2 Then
- If RegRead("HKCU\Software\S60Team", "Compatibility Assistant") = "" Then
- RegWrite($DCAss, "DisablePCA", "REG_DWORD", "0x00000001")
- RegWrite("HKCU\Software\S60Team", "Compatibility Assistant", "REG_SZ", "Disabled")
- EndIf
- EndIf
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Compatibility Assistant: ' & Round(TimerDiff($Timer)) & @CRLF)
- ; Fix Tray Icon display. Lag, Disabled
- If Not @Compiled Then TraySetIcon("p:\Programming\Autoit\Launcher\tmp\Launcher_min.ico")
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Fix Tray Icon: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;**************************************
- ;~ User Functions
- ;**************************************
- ;~ Get Drive Info:
- Func _Drive($drive, $arg = 0)
- ; UNKNOWN=RAW or Error, READY=HDD or USB, NOTREADY=CD, INVALID=no disk or unvaliable
- If DriveStatus($drive) = "READY" Then
- Switch $arg
- Case 1
- Return Round(DriveSpaceTotal($drive)) ; in megabytes
- Case 2
- Return Round(DriveSpaceFree($drive)) ; in megabytes
- Case 3
- Return DriveGetFileSystem($drive) ; 1= Error, FAT, FAT32, NTFS, CDFS = CD, UDF = DVD
- Case 4
- Return DriveGetType($drive) ; "Unknown", "Removable", "Fixed", "Network", "CDROM", "RAMDisk"
- Case Else
- Return 1
- EndSwitch
- ElseIf DriveStatus($drive) = "NOTREADY" Then
- Return 5 ; CD or Cardreader
- Else
- Return 0 ; Drive Not Found or Corrupted.
- EndIf
- EndFunc ;==>_Drive
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('_Drive: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Create Virtual drive from Folder and Delete it:
- ;ShellExecuteWait($SystemDir & "subst.exe", "Z: C:\Windows")
- ;ShellExecuteWait($SystemDir & "subst.exe", "Z: /D")
- ;~ Add 7zip to this exe.
- $7za = $exepath & "7za.exe"
- If FileExists($7za) = 0 Then
- FileInstall("p:\Programming\Autoit\Launcher\tmp\7za.exe", $7za, 1)
- EndIf
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('7za: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Add Icons Library File to this exe.
- ; Don't recommended to use Icons.au3 with DLL!
- $icl = $exepath & "icons.icl"
- If FileExists($icl) = 0 Then
- FileInstall("p:\Programming\Autoit\Launcher\tmp\icons.icl", $icl, 1)
- EndIf
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('ICL: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Check if D: is a Partition:
- If _Drive("D:", 4) = "Fixed" Then
- ; If Portable folder not exist on D: - Create it!
- $Disk = "D:\Portable"
- If Not FileExists($Disk) Then
- ; Create Folder "Portable"
- DirCreate($Disk)
- EndIf
- Else
- ; If D: is Not a partition - create it on System Drive (C:).
- $Disk = @HomeDrive & "\Portable"
- If Not FileExists($Disk) Then
- ; Create Folder "Portable"
- DirCreate($Disk)
- EndIf
- EndIf
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Create Portable Folder: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Unpack 7-zip archive
- Func _7z($in, $out)
- ;Local $in, $out
- Return ShellExecuteWait($7za, "x " & @ScriptDir & $in & " -o" & $out & " -y")
- EndFunc ;==>_7z
- ;~ Check Network Connection:
- Func _isNetwork()
- $status = Ping('oszone.net') ; 1-4sec
- If @error Then
- Return 'Connection error: ' & @error
- Else
- Return 1
- EndIf
- EndFunc ;==>_isInet
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Network : ' & Round(TimerDiff($Timer)) & @CRLF)
- ;~ Detect Internet Explorer Version:
- ; IE Edge exists?
- If FileExists($WinDir & 'SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe') Then $IE_Edge = 1
- ; IE 6-11:
- If @OSArch = 'x86' Then
- $IEPath = $ProgramFiles & '\Internet Explorer\iexplore.exe'
- Else
- $IEPath = $ProgramFiles64 & '\Internet Explorer\iexplore.exe'
- EndIf
- ;
- Func _IE()
- If $IE_Edge = 1 Then
- $IEPath = $WinDir & 'SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe'
- $IEv = StringRegExp(FileGetVersion($IEPath), '\d+', 1)
- If $IEv[0] > 0 Then
- Return $IEv[0]
- EndIf
- Else
- $IEv = StringRegExp(FileGetVersion($IEPath), '\d+', 1)
- If $IEv[0] > 0 Then
- Return $IEv[0]
- EndIf
- EndIf
- EndFunc
- #cs
- ;~ IE AdBlock
- ShellExecute($IEPath)
- If _IE() == 8 Then
- Sleep(3000)
- Send("{ALT}")
- Sleep(250)
- Send("{RIGHT 4}")
- Send("{DOWN 4}")
- Send("{ENTER}")
- Sleep(250)
- Send("{ALT}")
- Sleep(250)
- Send("{RIGHT 4}")
- Send("{DOWN 5}")
- Send("{ENTER}")
- Sleep(250)
- Send("{TAB 3}")
- Send("{ENTER}")
- Sleep(250)
- Send("{TAB 2}")
- Send("{ENTER}")
- Sleep(250)
- ; Select XML File
- EndIf
- #ce
- ;**************************************
- ;~ Main Program GUI:
- ;**************************************
- ;~ Create Main (GUI) Window:
- $W_Main = GUICreate("SilentInstaller", 266, 188, -1, -1)
- ;~ Fix GUI icon: Disable if Compiled.
- If Not @Compiled Then GUISetIcon("p:\Programming\Autoit\Launcher\tmp\Launcher_min.ico", 0, $W_Main)
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Fix GUI icon: ' & Round(TimerDiff($Timer)) & @CRLF)
- GUISetBkColor(0xFFFFFF)
- ;~ Create All Tabs:
- GUICtrlCreateTab(8, 8, 250, 172)
- ; Create First Tab:
- GUICtrlCreateTabItem("Network")
- Switch _OS()
- Case 1 To 3
- $Firefox = GUICtrlCreateIcon($icl, -2, 16, 36, 16, 16)
- $Opera = GUICtrlCreateIcon($icl, -3, 40, 36, 16, 16)
- $Chrome = GUICtrlCreateIcon($icl, -4, 64, 36, 16, 16)
- Case Else
- $Firefox = GUICtrlCreateIcon($icl, -106, 16, 36, 16, 16)
- $Opera = GUICtrlCreateIcon($icl, -107, 40, 36, 16, 16)
- $Chrome = GUICtrlCreateIcon($icl, -108, 64, 36, 16, 16)
- EndSwitch
- $Flashplayer = GUICtrlCreateIcon($icl, -5, 88, 36, 16, 16)
- $Skype = GUICtrlCreateIcon($icl, -6, 112, 36, 16, 16)
- $Torrent = GUICtrlCreateIcon($icl, -7, 136, 36, 16, 16)
- $AnyDesk = GUICtrlCreateIcon($icl, -25, 160, 36, 16, 16)
- $Ammyy = GUICtrlCreateIcon($icl, -89, 184, 36, 16, 16)
- ; Second Tab...
- GUICtrlCreateTabItem("Media")
- $ISO = GUICtrlCreateIcon($icl, -15, 16, 36, 16, 16)
- $KLite = GUICtrlCreateIcon($icl, -1, 40, 36, 16, 16)
- $Imagine = GUICtrlCreateIcon($icl, -51, 64, 36, 16, 16)
- $LightShot = GUICtrlCreateIcon($icl, -81, 88, 36, 16, 16)
- $Fraps = GUICtrlCreateIcon($icl, -83, 112, 36, 16, 16)
- $VLC = GUICtrlCreateIcon($icl, -54, 136, 36, 16, 16)
- $PotPlayer = GUICtrlCreateIcon($icl, -111, 160, 36, 16, 16)
- $KMPlayer = GUICtrlCreateIcon($icl, -110, 184, 36, 16, 16)
- ; Third Tab...
- GUICtrlCreateTabItem("Office")
- $Akelpad = GUICtrlCreateIcon($icl, -29, 16, 36, 16, 16)
- $STDUViewer = GUICtrlCreateIcon($icl, -56, 40, 36, 16, 16)
- $Office2003 = GUICtrlCreateIcon($icl, -62, 64, 36, 16, 16)
- $Office2007 = GUICtrlCreateIcon($icl, -63, 88, 36, 16, 16)
- $Office2010 = GUICtrlCreateIcon($icl, -71, 112, 36, 16, 16)
- $Office2016 = GUICtrlCreateIcon($icl, -72, 136, 36, 16, 16)
- $OpenOffice = GUICtrlCreateIcon($icl, -60, 160, 36, 16, 16)
- $WPSOffice = GUICtrlCreateIcon($icl, -61, 184, 36, 16, 16)
- $PuntoSwitcher = GUICtrlCreateIcon($icl, -94, 208, 36, 16, 16)
- $AmlMaple = GUICtrlCreateIcon($icl, -95, 232, 36, 16, 16)
- ; Fourth Tab...
- GUICtrlCreateTabItem("System")
- ; First Row: +24
- Switch _OS()
- Case 1
- $Win = GUICtrlCreateIcon($icl, -17, 16, 36, 16, 16)
- Case 2
- $Win = GUICtrlCreateIcon($icl, -17, 16, 36, 16, 16)
- Case 3
- $Win = GUICtrlCreateIcon($icl, -18, 16, 36, 16, 16)
- Case 4
- $Win = GUICtrlCreateIcon($icl, -18, 16, 36, 16, 16)
- Case 5
- $Win = GUICtrlCreateIcon($icl, -19, 16, 36, 16, 16)
- Case 6
- $Win = GUICtrlCreateIcon($icl, -88, 16, 36, 16, 16)
- Case 7
- $Win = GUICtrlCreateIcon($icl, -20, 16, 36, 16, 16)
- Case Else
- $Win = GUICtrlCreateIcon($icl, -45, 16, 36, 16, 16)
- EndSwitch
- $DirectX = GUICtrlCreateIcon($icl, -12, 40, 36, 16, 16)
- $Visual = GUICtrlCreateIcon($icl, -14, 64, 36, 16, 16)
- Switch _OS()
- Case 1 To 3
- $NET4 = GUICtrlCreateIcon($icl, -104, 88, 36, 16, 16)
- Case Else
- $NET4 = GUICtrlCreateIcon($icl, -105, 88, 36, 16, 16)
- EndSwitch
- $XNA = GUICtrlCreateIcon($icl, -67, 112, 36, 16, 16)
- $Java = GUICtrlCreateIcon($icl, -11, 136, 36, 16, 16)
- $PhysX = GUICtrlCreateIcon($icl, -13, 160, 36, 16, 16)
- $OAL = GUICtrlCreateIcon($icl, -65, 184, 36, 16, 16)
- ; Second Row:
- $HTFT = GUICtrlCreateIcon($icl, -52, 16, 60, 16, 16)
- $Hosts = GUICtrlCreateIcon($icl, -8, 40, 60, 16, 16)
- $XPFix = GUICtrlCreateIcon($icl, -84, 64, 60, 16, 16)
- $NetworkFix = GUICtrlCreateIcon($icl, -46, 88, 60, 16, 16)
- $PageFile = GUICtrlCreateIcon($icl, -75, 112, 60, 16, 16)
- $uxTheme = GUICtrlCreateIcon($icl, -43, 136, 60, 16, 16)
- $VolumeMax = GUICtrlCreateIcon($icl, -86, 160, 60, 16, 16)
- $ClearTemp = GUICtrlCreateIcon($icl, -85, 184, 60, 16, 16)
- ; Third Row:
- $WinStartMenu = GUICtrlCreateIcon($icl, -39, 16, 84, 16, 16)
- $WinRAR = GUICtrlCreateIcon($icl, -16, 40, 84, 16, 16)
- $AutoRunCleaner = GUICtrlCreateIcon($icl, -68, 64, 84, 16, 16)
- $UsbSafelyRemove = GUICtrlCreateIcon($icl, -42, 88, 84, 16, 16)
- $UsbDiskEject = GUICtrlCreateIcon($icl, -41, 112, 84, 16, 16)
- $TotalCommander = GUICtrlCreateIcon($icl, -55, 136, 84, 16, 16)
- $Disable10Updates = GUICtrlCreateIcon($icl, -79, 160, 84, 16, 16)
- $DisableDefender = GUICtrlCreateIcon($icl, -112, 184, 84, 16, 16)
- ; Fourth Row
- $360TSE = GUICtrlCreateIcon($icl, -74, 16, 108, 16, 16)
- $Comodo = GUICtrlCreateIcon($icl, -24, 40, 108, 16, 16)
- $AVG = GUICtrlCreateIcon($icl, -64, 64, 108, 16, 16)
- $UninstallTool = GUICtrlCreateIcon($icl, -100, 88, 108, 16, 16)
- $RevoUninstaller = GUICtrlCreateIcon($icl, -59, 112, 108, 16, 16)
- $CCleaner = GUICtrlCreateIcon($icl, -113, 136, 108, 16, 16)
- $Defraggler = GUICtrlCreateIcon($icl, -114, 160, 108, 16, 16)
- $BKPDrivers = GUICtrlCreateIcon($icl, -66, 184, 108, 16, 16)
- ;**************************************
- ;~ Debug tab:
- ;**************************************
- Global $Debug_OS, $IEIcon, $NetworkIcon, $DesktopIcon, $MPFIcon, $PPosIcon, $CAIcon, $DIcon
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Debug Start: ' & Round(TimerDiff($Timer)) & @CRLF)
- If $Debug = 1 Then
- GUICtrlCreateTabItem("Debug")
- ; Detect OS:
- Switch _OS()
- Case 1
- $Win2 = GUICtrlCreateIcon($icl, -17, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows XP")
- Case 2
- $Win2 = GUICtrlCreateIcon($icl, -17, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows XP x64 or Server 2003")
- Case 3
- $Win2 = GUICtrlCreateIcon($icl, -18, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows Vista or Server 2008")
- Case 4
- $Win2 = GUICtrlCreateIcon($icl, -18, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows 7 or Server 2008R2")
- Case 5
- $Win2 = GUICtrlCreateIcon($icl, -19, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows 8 or Server 2012")
- Case 6
- $Win2 = GUICtrlCreateIcon($icl, -88, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows 8.1 or Server 2012R2")
- Case 7
- $Win2 = GUICtrlCreateIcon($icl, -20, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Windows 10 or Server 2016")
- Case Else
- $Win2 = GUICtrlCreateIcon($icl, -45, 16, 36, 16, 16)
- GUICtrlSetTip($Win2, "Unknown")
- EndSwitch
- ; Get IE Version:
- If $IE_Edge = 1 Then
- $IEIcon = GUICtrlCreateIcon($icl, -119, 40, 36, 16, 16)
- GUICtrlSetTip($IEIcon, "IE Edge " & _IE())
- Else
- Switch _IE()
- Case 6 to 7
- $IEIcon = GUICtrlCreateIcon($icl, -118, 40, 36, 16, 16)
- GUICtrlSetTip($IEIcon, "IE 6-7")
- Case 8
- $IEIcon = GUICtrlCreateIcon($icl, -115, 40, 36, 16, 16)
- GUICtrlSetTip($IEIcon, "IE 8")
- Case 9
- $IEIcon = GUICtrlCreateIcon($icl, -116, 40, 36, 16, 16)
- GUICtrlSetTip($IEIcon, "IE 9")
- Case 11
- $IEIcon = GUICtrlCreateIcon($icl, -117, 40, 36, 16, 16)
- GUICtrlSetTip($IEIcon, "IE 11")
- EndSwitch
- EndIf
- ;
- ; Network Status:
- If _isNetwork() = 1 Then
- $NetworkIcon = GUICtrlCreateIcon($icl, -46, 64, 36, 16, 16)
- GUICtrlSetTip($NetworkIcon, "Network Connected!")
- Else
- $NetworkIcon = GUICtrlCreateIcon($icl, -120, 64, 36, 16, 16)
- GUICtrlSetTip($NetworkIcon, _isNetwork())
- EndIf
- ; Desktop Resolution:
- $DesktopIcon = GUICtrlCreateIcon($icl, -121, 88, 36, 16, 16)
- GUICtrlSetTip($DesktopIcon, @DesktopWidth & " x " & @DesktopHeight)
- ;
- ; Drives:
- If _Drive('D:', 4) = "Removable" Then
- $DIcon = GUICtrlCreateIcon($icl, -125, 112, 36, 16, 16)
- GUICtrlSetTip($DIcon, "D: is Removable")
- EndIf
- If _Drive('D:', 4) = "Fixed" Then
- $DIcon = GUICtrlCreateIcon($icl, -124, 112, 36, 16, 16)
- GUICtrlSetTip($DIcon, "D: is Fixed")
- EndIf
- If _Drive('D:') = 5 Then
- $DIcon = GUICtrlCreateIcon($icl, -123, 112, 36, 16, 16)
- GUICtrlSetTip($DIcon, "D: is CD-ROM")
- EndIf
- ;
- ; Main (Portable) Folder
- $MPFIcon = GUICtrlCreateIcon($icl, -122, 136, 36, 16, 16)
- GUICtrlSetTip($MPFIcon, $Disk)
- ;
- ; Get Program Window position, x and y.
- $PPosIcon = GUICtrlCreateIcon($icl, -77, 160, 36, 16, 16)
- $wmpos = WinGetPos("SilentInstaller")
- GUICtrlSetTip($PPosIcon, 'x: ' & $wmpos[0] & ', y: ' & $wmpos[1])
- ;
- ; Check Compatibility Assistant:
- $CAIcon = GUICtrlCreateIcon($icl, -127, 184, 36, 16, 16)
- RegRead("HKCU\Software\Policies\Microsoft\Windows\AppCompat", "DisablePCA")
- If @error Then
- GUICtrlSetTip($CAIcon, 'Error: ' & @error)
- EndIf
- EndIf
- ;
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Debug End: ' & Round(TimerDiff($Timer)) & @CRLF)
- ;**************************************
- ;~ Add ToolTips to Icons:
- ;**************************************
- ; System:
- ; First Row
- GUICtrlSetTip($Win, "Activate Windows")
- GUICtrlSetTip($DirectX, "DirectX Libraries")
- GUICtrlSetTip($Visual, "Visual C++ Redistributable Repack")
- GUICtrlSetTip($NET4, ".NET Framework v4 and v4.72 Repack")
- GUICtrlSetTip($XNA, "Microsoft XNA Framework")
- GUICtrlSetTip($Java, "Java Runtime v8")
- GUICtrlSetTip($PhysX, "nVidia PhysX Libraries")
- GUICtrlSetTip($OAL, "Game Audio Library (Minecraft)")
- GUICtrlSetTip($HTFT, "Disable text from Toolbar Icons")
- GUICtrlSetTip($WinRAR, "WinRAR v5.6")
- GUICtrlSetTip($uxTheme, "UX Theme Multipatch")
- GUICtrlSetTip($VolumeMax, "Set Volume to MAX(100%)")
- GUICtrlSetTip($ClearTemp, "Clear ALL Temp folders")
- GUICtrlSetTip($Disable10Updates, "Disable Windows 10 Updates")
- GUICtrlSetTip($Hosts, "Hosts File")
- GUICtrlSetTip($AutoRunCleaner, "AutoRun Cleaner")
- GUICtrlSetTip($UsbSafelyRemove, "Usb Safely Remove")
- GUICtrlSetTip($UsbDiskEject, "USB Disk Eject")
- GUICtrlSetTip($TotalCommander, "Total Commander")
- GUICtrlSetTip($XPFix, "Fixes for Windows XP")
- GUICtrlSetTip($BKPDrivers, "Backup Drivers")
- GUICtrlSetTip($DisableDefender, "Disable Windows Defender")
- GUICtrlSetTip($NetworkFix, "Fix Networking")
- GUICtrlSetTip($PageFile, "PageFile Setup")
- GUICtrlSetTip($SInfo, "Add My Info to System About")
- GUICtrlSetTip($CCleaner, "Piriform CCleaner Technician")
- GUICtrlSetTip($Defraggler, "Piriform Defraggler Technician")
- ; Third Row:
- GUICtrlSetTip($360TSE, "360 Total Security Essintial (Offline)")
- GUICtrlSetTip($Comodo, "Comodo Internet Security Free (Offline)")
- GUICtrlSetTip($AVG, "AVG Antivirus Free (Offline)")
- GUICtrlSetTip($UninstallTool, "CRYSTALIDEA Uninstall Tool")
- GUICtrlSetTip($RevoUninstaller, "Revo Uninstaller Pro Portable")
- ; Network
- GUICtrlSetTip($Firefox, "Mozilla Firefox")
- GUICtrlSetTip($Opera, "Opera")
- GUICtrlSetTip($Chrome, "Google Chrome")
- GUICtrlSetTip($Skype, "Skype v7 and v8")
- GUICtrlSetTip($Flashplayer, "Adobe Flash Player")
- GUICtrlSetTip($Torrent, "Torrent")
- GUICtrlSetTip($AnyDesk, "AnyDesk Remote Desktop")
- GUICtrlSetTip($WinStartMenu, "StartIsBack Win8-10")
- GUICtrlSetTip($Ammyy, "Ammyy Admin Free")
- ; Media
- GUICtrlSetTip($ISO, "WinCDEmu")
- GUICtrlSetTip($Imagine, "Imagine image viewer")
- GUICtrlSetTip($KLite, "K-lite Codecs + Player")
- GUICtrlSetTip($LightShot, "LightShot Portable")
- GUICtrlSetTip($Fraps, "Fraps")
- GUICtrlSetTip($VLC, "VideoLAN (VLC) Player")
- GUICtrlSetTip($PotPlayer, "DAUM PotPlayer")
- GUICtrlSetTip($KMPlayer, "KMPlayer")
- ; Office
- GUICtrlSetTip($Akelpad, "Akelpad")
- GUICtrlSetTip($STDUViewer, "STDU Viewer")
- GUICtrlSetTip($Office2003, "Microsoft Office 2003")
- GUICtrlSetTip($Office2007, "Microsoft Office 2007")
- GUICtrlSetTip($Office2010, "Microsoft Office 2010")
- GUICtrlSetTip($Office2016, "Microsoft Office 2016")
- GUICtrlSetTip($OpenOffice, "Open Office 4.1.x 2018")
- GUICtrlSetTip($WPSOffice, "WPS Office Free 2018")
- GUICtrlSetTip($PuntoSwitcher, "Punto Switcher")
- GUICtrlSetTip($AmlMaple, "AmlMaple")
- ; Show Main Window:
- GUISetState(@SW_SHOW, $W_Main)
- ;**************************************
- ;~ Main Program Logics
- ;**************************************
- While 1
- $msg = GUIGetMsg()
- Select
- ; First Row:
- Case $msg = $Win
- ; Run accordingly OS:
- ; XP, XP x64, Server 2003
- Switch _OS()
- Case 1 To 2
- If FileExists($Disk & "\Aktivators\") Then
- ShellExecuteWait($Disk & "\Aktivators\XP.bat")
- Else
- _7z("Programs\Aktivators.7z", $Disk & "\Aktivators\")
- Sleep(350)
- ShellExecuteWait($Disk & "\Aktivators\XP.bat")
- EndIf
- Sleep(350)
- RegWrite("HKCU\Software\S60Team", "WinXP, Server2003", "REG_SZ", "Activated")
- MsgBox(4096, "Win XP", "Activation completed!", 3)
- ; Vista, Server 2008
- Case 3
- If FileExists($Disk & "\Aktivators\") Then
- ShellExecuteWait($Disk & "\Aktivators\AAct.exe")
- Else
- _7z("Programs\Aktivators.7z", $Disk & "\Aktivators\")
- Sleep(350)
- If @OSArch = "X86" Then
- ShellExecuteWait($Disk & "\Aktivators\AAct.exe")
- Else
- ShellExecuteWait($Disk & "\Aktivators\AAct_x64.exe")
- EndIf
- EndIf
- RegWrite("HKCU\Software\S60Team", "Vista, 2008", "REG_SZ", "Activated")
- Sleep(350)
- MsgBox(4096, "WinVista", "Activation completed!", 3)
- ; 7, Server 2008R2
- Case 4
- If FileExists($Disk & "\Aktivators\") Then
- ShellExecuteWait($Disk & "\Aktivators\Windows Loader.exe")
- Else
- _7z("Programs\Aktivators.7z", $Disk & "\Aktivators\")
- Sleep(350)
- ShellExecuteWait($Disk & "\Aktivators\Windows Loader.exe")
- EndIf
- RegWrite("HKCU\Software\S60Team", "Win7, 2008R2", "REG_SZ", "Activated")
- Sleep(350)
- MsgBox(4096, "Win 7", "Activation completed!", 3)
- ; 8, Server 2012, 8.1, Server 2012R2
- Case 5 To 6
- If FileExists($Disk & "\Aktivators\") Then
- ShellExecuteWait($Disk & "\Aktivators\AAct.exe")
- Else
- _7z("Programs\Aktivators.7z", $Disk & "\Aktivators\")
- Sleep(350)
- If @OSArch = "X86" Then
- ShellExecuteWait($Disk & "\Aktivators\AAct.exe")
- Else
- ShellExecuteWait($Disk & "\Aktivators\AAct_x64.exe")
- EndIf
- EndIf
- If _OS() = 5 Then
- RegWrite("HKCU\Software\S60Team", "Win8, 2012", "REG_SZ", "Activated")
- ElseIf _OS() = 6 Then
- RegWrite("HKCU\Software\S60Team", "Win8.1, 2012R2", "REG_SZ", "Activated")
- EndIf
- Sleep(350)
- MsgBox(4096, "Win 8", "Activation completed!", 3)
- ; 10, Server 2016
- Case 7
- If FileExists($Disk & "\Aktivators\") Then
- ShellExecuteWait($Disk & "\Aktivators\AAct.exe")
- Else
- _7z("Programs\Aktivators.7z", $Disk & "\Aktivators\")
- Sleep(350)
- If @OSArch = "X86" Then
- ShellExecuteWait($Disk & "\Aktivators\AAct.exe")
- Else
- ShellExecuteWait($Disk & "\Aktivators\AAct_x64.exe")
- EndIf
- EndIf
- RegWrite("HKCU\Software\S60Team", "Win10, 2016", "REG_SZ", "Activated")
- Sleep(350)
- MsgBox(4096, "Win 10", "Activation completed!", 3)
- Case Else
- MsgBox(4096, "Error", "OS not detected!", 3)
- EndSwitch
- Case $msg = $DirectX
- ShellExecuteWait($exepath & "Programs\DirectX.exe", "/Q /T:" & @TempDir & "\DirectX")
- Sleep(350)
- ShellExecuteWait(@TempDir & "\DirectX\DXSETUP.exe", "/silent")
- Sleep(350)
- DirRemove(@TempDir & "\DirectX\", 1)
- RegWrite("HKCU\Software\S60Team", "DirectX", "REG_SZ", "Installed")
- Sleep(250)
- MsgBox(4096, "DirectX", "Installation completed!", 3)
- Case $msg = $Visual
- ShellExecuteWait($exepath & "Programs\Repack\VisualC_AIO.exe", "/ai") ; /v
- RegWrite("HKCU\Software\S60Team", "Visual C++ AIO", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Visual x64", "Installation completed!", 3)
- Case $msg = $NET4
- If _OS() <= 3 Then
- ShellExecuteWait($exepath & "Programs\Repack\NET_AIO_XP.exe", "/ai") ; /v
- RegWrite("HKCU\Software\S60Team", ".NET Framework v4", "REG_SZ", "Installed")
- ElseIf _OS() > 3 Then
- ShellExecuteWait($exepath & "Programs\Repack\NET_4.72.exe", "/ai") ; /v
- RegWrite("HKCU\Software\S60Team", ".NET Framework v4.72", "REG_SZ", "Installed")
- Else
- MsgBox(16, "Error!", "Unsupported OS!")
- EndIf
- Sleep(350)
- MsgBox(4096, "NET4", "Installation completed!", 3)
- Case $msg = $XNA
- ShellExecuteWait(@ScriptDir & "Programs\xna4.msi", "/qn")
- RegWrite("HKCU\Software\S60Team", "XNA Framework", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "XNA", "Installation completed!", 3)
- Case $msg = $Java
- If _OS() <= 2 Then
- ;C:\Program Files\Java
- ;c:\Documents and Settings\Admin\Application Data\Sun\Java
- ;c:\Documents and Settings\Admin\Local Settings\Application Data\Sun\Java
- ShellExecuteWait($exepath & "Programs\Java_XP.exe", "/s")
- ElseIf _OS() > 3 Then
- If @OSArch = "X86" Then
- ShellExecuteWait($exepath & "Programs\Java_x86.exe", "/s")
- Else
- ShellExecuteWait($exepath & "Programs\Java_x64.exe", "/s")
- EndIf
- Else
- MsgBox(16, "Error!", "Unsupported OS!")
- EndIf
- RegWrite("HKCU\Software\S60Team", "Java", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Java", "Installation completed!", 3)
- Case $msg = $PhysX
- ShellExecuteWait($exepath & "Programs\PhysX.exe", "/s")
- RegWrite("HKCU\Software\S60Team", "PhysX", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "PhysX", "Installation completed!", 3)
- Case $msg = $ISO
- ShellExecute($exepath & "Programs\WinCDEmu.exe")
- WinActivate("WinCDEmu installation")
- Sleep(350)
- ControlClick("WinCDEmu installation", "Ready to install", "Button1")
- Sleep(350)
- If WinWaitActive("Установка оборудования") Then
- ControlClick("Установка оборудования", "", "Button1")
- ElseIf WinWaitActive("Безопасность Windows") Then
- ControlClick("Безопасность Windows", "", "Button1")
- Else
- ; Do Nothing
- EndIf
- ; Warning! MsgBox is from WinCDEmu!!!
- RegWrite("HKCU\Software\S60Team", "WinCDEmu", "REG_SZ", "Installed")
- Case $msg = $OAL
- ShellExecute($exepath & "Programs\oalinst.exe")
- ;Sleep(350)
- ;WinWait("OpenAL Installer")
- ;WinActivate("OpenAL Installer")
- WinWaitActive("OpenAL Installer")
- Sleep(500)
- ControlClick("OpenAL Installer", "", "Button2")
- ; OpenAL has it's own "Completed" MsgBox
- ;Sleep(350)
- ;MsgBox(4096, "OpenAL", "Installation completed!", 3)
- RegWrite("HKCU\Software\S60Team", "OpenAL", "REG_SZ", "Installed")
- ; Second Row:
- Case $msg = $Firefox
- If _OS() <= 2 Then
- ; 52.9.0 esr
- ;C:\Program Files\Mozilla Firefox\firefox.exe
- ShellExecuteWait($exepath & "Programs\FirefoxXP.exe", "-ms")
- Else
- If @OSArch = "X86" Then
- ShellExecuteWait($exepath & "Programs\Firefox.exe", "-ms")
- Else
- ShellExecuteWait($exepath & "Programs\Firefox64.exe", "-ms")
- EndIf
- EndIf
- RegWrite("HKCU\Software\S60Team", "Firefox", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Firefox", "Installation completed!", 3)
- Case $msg = $Opera
- ; Unpack Opera and Run installer.exe
- ;installer.exe /silent /allusers=yes /launchopera=no /pintotaskbar=no /setdefaultbrowser=no /laguage=ru-RU
- If _OS() <= 2 Then
- ;C:\Program Files\Opera\launcher.exe
- _7z("Programs\OperaXP.exe", @TempDir & "\Opera")
- ShellExecuteWait(@TempDir & "\Opera\installer.exe", "/silent /allusers=yes /launchopera=no /pintotaskbar=no /setdefaultbrowser=no /laguage=ru-RU")
- ;ShellExecuteWait($exepath & "Programs\OperaXP.exe")
- Else
- If @OSArch = "X86" Then
- _7z("Programs\OperaXP.exe", @TempDir & "\Opera")
- ShellExecuteWait(@TempDir & "\Opera\installer.exe", "/silent /allusers=yes /launchopera=no /pintotaskbar=no /setdefaultbrowser=no /laguage=ru-RU")
- ;ShellExecuteWait($exepath & "Programs\Opera.exe")
- Else
- _7z("Programs\OperaXP.exe", @TempDir & "\Opera")
- ShellExecuteWait(@TempDir & "\Opera\installer.exe", "/silent /allusers=yes /launchopera=no /pintotaskbar=no /setdefaultbrowser=no /laguage=ru-RU")
- ;ShellExecuteWait($exepath & "Programs\Opera64.exe")
- EndIf
- EndIf
- RegWrite("HKCU\Software\S60Team", "Opera", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Opera", "Installation completed!", 3)
- Case $msg = $Chrome
- If _OS() <= 2 Then
- ;C:\Program Files\Google\Chrome\Application\chrome.exe
- ;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
- ShellExecuteWait($exepath & "Programs\ChromeXP.exe", "--system-level") ; /silent /install
- Else
- If @OSArch = "X86" Then
- ShellExecuteWait($exepath & "Programs\Chrome.msi", "/q /norestart") ; /quiet /norestart
- Else
- ShellExecuteWait($exepath & "Programs\Chrome64.msi", "/q /norestart")
- EndIf
- EndIf
- RegWrite("HKCU\Software\S60Team", "Chrome", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Chrome", "Installation completed!", 3)
- Case $msg = $Skype
- If _OS() <= 2 Then
- ;C:\Program Files\Skype\Phone\Skype.exe
- ;C:\Documents and Settings\All Users\Application Data\Skype
- ShellExecuteWait($exepath & "Programs\SkypeSetupFullXP.exe", "/VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH")
- ElseIf _OS() > 3 Then
- $SKP = MsgBox(3, "Skype", "v7 (Yes) or v8 (No):")
- If $SKP = 6 Then
- ShellExecuteWait($exepath & "Programs\Skype7.exe", "/VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH")
- ElseIf $SKP = 7 Then
- ShellExecuteWait($exepath & "Programs\Skype8.exe", "/VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH")
- EndIf
- Else
- MsgBox(4096, "Error", "Your OS not need this!")
- EndIf
- RegWrite("HKCU\Software\S60Team", "Skype", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Skype", "Installation completed!", 3)
- Case $msg = $Flashplayer
- ;C:\WINDOWS\System32\Macromed
- ;C:\WINDOWS\System32\Macromed\Flash
- ;C:\Documents and Settings\Admin\Application Data\Macromedia
- ShellExecuteWait($exepath & "Programs\install_flash_player_ax.exe", "-install") ; InternetExplorer
- Sleep(350)
- ShellExecuteWait($exepath & "Programs\install_flash_player.exe", "-install") ; Firefox
- Sleep(350)
- ShellExecuteWait($exepath & "Programs\install_flash_player_ppapi.exe", "-install") ; Chrome and Opera
- RegWrite("HKCU\Software\S60Team", "FlashPlayer", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Flashplayer", "Installation completed!", 3)
- Case $msg = $Torrent
- If FileExists($Disk & "\uTorrent\uTorrent.exe") Then
- Run($Disk & "\uTorrent\uTorrent.exe")
- Else
- _7z("Programs\uTorrent3.7z", $Disk)
- FileCreateShortcut($Disk & "\uTorrent\uTorrent.exe", $Desktop & "uTorrent 3.lnk", $Disk & "\uTorrent\")
- RegWrite("HKCU\Software\S60Team", "uTorrent", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Torrent", "Installation completed!", 3)
- EndIf
- Case $msg = $KLite
- If _OS() <= 2 Then
- ;C:\Program Files\K-Lite Codec Pack\unins000.exe or
- ;C:\Program Files\K-Lite Codec Pack\Filters
- ShellExecuteWait($exepath & "Programs\K-LiteXP.exe", "/SP- /VERYSILENT")
- Else
- ShellExecuteWait($exepath & "Programs\K-Lite.exe", "/SP- /VERYSILENT")
- EndIf
- RegWrite("HKCU\Software\S60Team", "K-Lite", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "KLite", "Installation completed!", 3)
- Case $msg = $AnyDesk
- If FileExists($Disk & "\AnyDesk\AnyDesk.exe") Then
- Run($Disk & "\AnyDesk\AnyDesk.exe")
- Else
- ShellExecuteWait($exepath & "Programs\AnyDesk.exe", '--install "' & $Disk & '\AnyDesk" --start-with-win --silent') ; --create-shortcuts
- Sleep(250)
- FileCreateShortcut($Disk & "\AnyDesk\AnyDesk.exe", $Desktop & "Помощь Вовы (AnyDesk).lnk", $Disk & "\AnyDesk")
- RegWrite("HKCU\Software\S60Team", "AnyDesk", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "AnyDesk", "Installation completed!", 3)
- EndIf
- Case $msg = $WinStartMenu
- If _OS() > 3 Then
- ShellExecuteWait($exepath & "Programs\StartIsBack_AiO_1.0.7__silent.exe", "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-")
- Sleep(350)
- MsgBox(4096, "StartIsBack", "Installation completed!", 3)
- Else
- MsgBox(4096, 'Error', 'Your OS not need this!')
- EndIf
- RegWrite("HKCU\Software\S60Team", "StartIsBack", "REG_SZ", "Installed")
- ; Third Row
- Case $msg = $HTFT
- If @OSVersion = "WIN_XP" Then
- $MB = MsgBox(3, "ONLY Icons in Toolbar", "Install (Yes) or Uninstall (No):")
- If $MB = 6 Then
- RegWrite("HKCU\Control Panel\Desktop\WindowMetrics", "MinWidth", "REG_SZ", "-255")
- ElseIf $MB = 7 Then
- RegWrite("HKCU\Control Panel\Desktop\WindowMetrics", "MinWidth", "REG_SZ", "-")
- EndIf
- ElseIf @OSVersion = "WIN_VISTA" Then
- $MB = MsgBox(3, "ONLY Icons in Toolbar", "Install (Yes) or Uninstall (No):")
- If $MB = 6 Then
- RegWrite("HKCU\Control Panel\Desktop\WindowMetrics", "MinWidth", "REG_SZ", "56")
- ElseIf $MB = 7 Then
- RegWrite("HKCU\Control Panel\Desktop\WindowMetrics", "MinWidth", "REG_SZ", "-")
- EndIf
- Else
- MsgBox(4096, 'Error', 'Your OS not need this!')
- EndIf
- RegWrite("HKCU\Software\S60Team", "IconsInTaskBar", "REG_SZ", "Installed")
- Case $msg = $WinRAR
- ;C:\Program Files\WinRAR\WinRAR.exe
- ShellExecuteWait($exepath & "Programs\WinRAR.v5.60.exe", "/S /IRU")
- RegWrite("HKCU\Software\S60Team", "WinRAR", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "WinRAR", "Installation completed!", 3)
- Case $msg = $uxTheme
- ShellExecute($exepath & "Programs\Other\UXTheme Multi-Patcher 15.0.exe")
- Sleep(350)
- WinWaitActive("UXTheme Multi-Patcher 15.0 ")
- Sleep(350)
- ControlClick("UXTheme Multi-Patcher 15.0 ", "", "Button2")
- Sleep(350)
- ControlClick("UXTheme Multi-Patcher 15.0 ", "", "Button1")
- Sleep(350)
- WinWaitActive("Finished")
- Sleep(350)
- ControlClick("Finished", "", "Button1")
- RegWrite("HKCU\Software\S60Team", "uxTheme", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "UXTheme", "Installation completed!", 3)
- Case $msg = $Hosts
- If _OS() = 7 Then
- FileCopy($exepath & "Programs\hosts_win10.txt", "C:\Windows\System32\Drivers\etc\hosts", 9)
- Else
- FileCopy($exepath & "Programs\hosts.txt", "C:\Windows\System32\Drivers\etc\hosts", 9)
- EndIf
- RegWrite("HKCU\Software\S60Team", "Hosts", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Hosts", "Installation completed!", 3)
- Case $msg = $Imagine
- If FileExists($Disk & "\Imagine Image Viewer\") Then
- Run($Disk & "\Imagine Image Viewer\Imagine.exe")
- Else
- _7z("Programs\Imagine.7z", $Disk)
- Sleep(1000)
- FileCreateShortcut($Disk & "\Imagine Image Viewer\Imagine.exe", $Desktop & "Imagine Image Viewer.lnk", $Disk & "\Imagine Image Viewer\")
- RegWrite("HKCU\Software\S60Team", "Imagine", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Imagine", "Installation completed!", 3)
- EndIf
- Case $msg = $AutoRunCleaner
- If FileExists($Disk & "\AutoRunCleaner\") Then
- Run($Disk & "\AutoRunCleaner\AutoRunCleaner.exe")
- Else
- _7z("Programs\AutoRunCleaner.7z", $Disk)
- Sleep(1000)
- FileCreateShortcut($Disk & "\AutoRunCleaner\AutoRunCleaner.exe", $Desktop & "AutoRun Cleaner.lnk", $Disk & "\AutoRunCleaner\")
- RegWrite("HKCU\Software\S60Team", "AutoRunCleaner", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "AutoRun Cleaner", "Installation completed!", 3)
- EndIf
- Case $msg = $UsbSafelyRemove
- ShellExecuteWait($exepath & "Programs\Other\USR_6.1.5.1274.exe", "/S /R")
- RegWrite("HKCU\Software\S60Team", "UsbSafelyRemove", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "UsbSafelyRemove", "Installation completed!", 3)
- Case $msg = $TotalCommander
- If FileExists($Disk & "\TotalCommanderPortable9\TotalCommanderPortable.exe") Then
- Run($Disk & "\TotalCommanderPortable9\TotalCommanderPortable.exe")
- Else
- _7z("Programs\TotalCommanderPortable9.7z", $Disk)
- Sleep(1000)
- FileCreateShortcut($Disk & "\TotalCommanderPortable9\TotalCommanderPortable.exe", $Desktop & "Total Commander.lnk", $Disk & "\TotalCommanderPortable9\")
- RegWrite("HKCU\Software\S60Team", "TotalCommander Portable", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Total Commander", "Installation completed!", 3)
- EndIf
- Case $msg = $XPFix
- If _OS() <= 2 Then
- ; Fix USB Media Device
- ; Install 64Gb RAM Support (PAE), Installer v4.5, EXFAT, IE8
- If MsgBox(1, "Fix and Update", "Do you want to install Fixes?" &@CRLF& "64Gb Ram Support, ExFat, MediaDevice(MTP)") = 1 Then
- ShellExecuteWait($exepath & "Programs\XP_Fixes\XP64G_2.1_Beta.exe")
- Sleep(350)
- ShellExecuteWait($exepath & "Programs\XP_Fixes\WindowsXP-Installerv4.5.exe", "/quiet /norestart")
- Sleep(350)
- ShellExecuteWait($exepath & "Programs\XP_Fixes\WindowsXP-KB955704-x86-RUS-ExFAT.exe", "/quiet /norestart")
- Sleep(350)
- ShellExecuteWait($exepath & "Programs\XP_Fixes\wmfdist11.exe", "/quiet /norestart")
- Sleep(350)
- ShellExecuteWait($exepath & "Programs\XP_Fixes\umdf.exe", "/quiet /norestart")
- RegWrite("HKCU\Software\S60Team", "XP_Fixes", "REG_SZ", "Installed")
- EndIf
- ;
- Sleep(100)
- If MsgBox(1, "IE8", "Do you want to install IE8 ?") = 1 Then
- If _IE() < 8 Then
- ShellExecuteWait($exepath & "Programs\XP_Fixes\WindowsXP-IE8.exe", "/quiet /norestart")
- RegWrite("HKCU\Software\S60Team", "IE8", "REG_SZ", "Installed")
- Else
- MsgBox(4096, "Error!", "Your IE is already v8!")
- EndIf
- EndIf
- ;
- Sleep(100)
- If MsgBox(1, "RegFix", "Do you want to use RegFile to apply Settings?") = 1 Then
- ; Folder
- ; Show Hidden Files and Extensions
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Hidden", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "HideFileExt", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "ShowSuperHidden", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "TaskbarAnimations", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartPage\", "Favorites", "REG_BINARY", 'FF')
- ; Disable Thumbs.db
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "DisableThumbnailCache", "REG_DWORD", '0x00000001')
- ; Show Full File Names in Explorer:
- RegWrite("HKCU\Control Panel\Desktop\WindowMetrics", "IconTitleWrap", "REG_BINARY", '0')
- ; Remember Each Folder State
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "ClassicViewState", "REG_DWORD", '0x00000001')
- ; Start
- ; No Net Crawling
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "NoNetCrawling", "REG_DWORD", '0x00000001')
- ; No New apps notify
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_NotifyNewApps", "REG_DWORD", '0x00000000')
- ; No IE and Messenger
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_ShowSetProgramAccessAndDefaults", "REG_DWORD", '0x00000000')
- ; Small icons in Start
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_LargeMFUIcons", "REG_DWORD", '0x00000000')
- ; Hide in Start: Music, Images, Recent Docs, Search, Help, Favourites
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_ShowMyMusic", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_ShowMyPics", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_ShowRecentDocs", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_ShowSearch", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_ShowHelp", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "StartMenuFavorites", "REG_DWORD", '0x00000000')
- ; Set Recent Programs to 0
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\", "Start_MinMFU", "REG_DWORD", '0x00000000')
- ; Etc:
- ; Use Temp
- RegWrite("HKCU\Environment", "TEMP", "REG_EXPAND_SZ", "%SystemRoot%\TEMP")
- RegWrite("HKCU\Environment", "TMP", "REG_EXPAND_SZ", "%SystemRoot%\TEMP")
- ; Keyboard Languages En, Ru, Ua:
- RegWrite("HKCU\Keyboard Layout\Preload", "1", "REG_SZ", '00000409')
- RegWrite("HKCU\Keyboard Layout\Preload", "2", "REG_SZ", '00000419')
- RegWrite("HKCU\Keyboard Layout\Preload", "3", "REG_SZ", '00000422')
- ; Ctrl+Shift (Alt+Shift is 1,1,2)
- RegWrite("HKCU\Keyboard Layout\Toggle", "Hotkey", "REG_SZ", '2')
- RegWrite("HKCU\Keyboard Layout\Toggle", "Language Hotkey", "REG_SZ", '2')
- RegWrite("HKCU\Keyboard Layout\Toggle", "Layout Hotkey", "REG_SZ", '1')
- ; Not add Link for: (0x1e000000)
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer", "Link", "REG_BINARY", Binary("0x00000000"))
- ; Don't Warn about downloaded files
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments", "SaveZoneInformation", "REG_DWORD", '0x00000001')
- ; No Drive Autorun
- RegWrite("HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDriveTypeAutoRun", "REG_DWORD", '0x000000dd')
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Cdrom", "AutoRun", "REG_DWORD", '0x00000000')
- ; No Error Reporting
- RegWrite("HKLM\SOFTWARE\Microsoft\PCHealth\ErrorReporting", "DoReport", "REG_DWORD", '0x00000000')
- RegWrite("HKLM\SOFTWARE\Microsoft\PCHealth\ErrorReporting", "ShowUI", "REG_DWORD", '0x00000000')
- ; No Search Internet for extension
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "NoInternetOpenWith", "REG_DWORD", '0x00000001')
- ; Don't download Themes
- RegWrite("-HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\DownloadSites")
- ; Disable Auto-update
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "AUOptions", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\\SYSTEM\CurrentControlSet\Services\wuauserv", "Start", "REG_DWORD", '0x00000004')
- RegWrite("HKLM\SOFTWARE\Microsoft\Security Center\", "UpdatesDisableNotify", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Microsoft\Security Center\", "FirewallDisableNotify", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Microsoft\Security Center\", "AntiVirusDisableNotify", "REG_DWORD", '0x00000001')
- ; No Dr. Watson
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug", "Auto", "REG_SZ", '0')
- ; No System Restore
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore", "DisableSR", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\srservice", "Start", "REG_DWORD", '0x00000004')
- ; Not Search Driver in Internet
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching", "DontPromptForWindowsUpdate", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows\DriverSearching", "DontSearchWindowsUpdate", "REG_DWORD", '0x00000001')
- ; No Remote
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server", "fAllowToGetHelp", "REG_DWORD", '0x00000000')
- ; Internet Settings
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "MigrateProxy", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "PrivacyAdvanced", "REG_DWORD", '0x00000001')
- ; Unknown (Maybe First start?)
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\sr\Parameters", "FirstRun", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\sr\Parameters", "Start", "REG_DWORD", '0x00000004')
- RegWrite("HKCU\Software\S60Team", "XP_Settings", "REG_SZ", "Installed")
- EndIf
- ;
- Sleep(350)
- MsgBox(4096, "XP Fixes", "Installation completed!", 3)
- Else
- MsgBox(4096, 'Error', "Your OS don't need this!")
- EndIf
- Case $msg = $BKPDrivers
- If FileExists($Disk & "\DoubleDriver\dd.exe") Then
- Run($Disk & "\DoubleDriver\dd.exe")
- Else
- _7z("Programs\DoubleDriver.7z", $Disk)
- Sleep(1000)
- FileCreateShortcut($Disk & "\DoubleDriver\dd.exe", $Desktop & "Backup Drivers.lnk", $Disk & "\DoubleDriver\")
- Sleep(350)
- ShellExecute($Disk & "\DoubleDriver\dd.exe")
- RegWrite("HKCU\Software\S60Team", "DoubleDriver", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "DoubleDriver", "Installation completed!", 3)
- EndIf
- ; Fourth Row
- Case $msg = $360TSE
- ShellExecute($exepath & "Programs\360TSE_Full.exe")
- AutoItSetOption('MouseCoordMode', 0)
- Sleep(350)
- ;WinWait('360 Total Security')
- ;WinActivate('360 Total Security')
- WinWaitActive('360 Total Security')
- Sleep(250)
- MouseClick('primary', 104, 409, 1, 0) ; Убрать галочку
- MouseClick('primary', 276, 371, 1, 0) ; Установка
- Sleep(350)
- Do
- Sleep(1000)
- Until WinActive('[CLASS:ATL:00513718]')
- Sleep(350)
- MouseClick('primary', 276, 377, 1, 0)
- Sleep(1000)
- RegWrite("HKCU\Software\S60Team", "360TSE", "REG_SZ", "Installed")
- MsgBox(4096, "360Safe", "Installation completed!", 3)
- Case $msg = $Comodo
- ShellExecuteWait($exepath & "Programs\CIS_Free_Full.exe")
- RegWrite("HKCU\Software\S60Team", "CIS_Free", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Comodo", "Installation completed!", 3)
- Case $msg = $AVG
- ShellExecuteWait($exepath & "Programs\AVG_Free_Full.exe")
- RegWrite("HKCU\Software\S60Team", "AVG_Free", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "AVG", "Installation completed!", 3)
- Case $msg = $Akelpad
- ShellExecuteWait($exepath & "Programs\AkelPad.exe", "/S /TYPE=3")
- RegWrite("HKCU\Software\S60Team", "AkelPad", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Akelpad", "Installation completed!", 3)
- Case $msg = $Office2003
- ShellExecuteWait($exepath & "Programs\Office2003.exe", '/S /MST="Default.mst" /TAB')
- RegWrite("HKCU\Software\S60Team", "Office 2003", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Office 2003", "Installation completed!", 3)
- Case $msg = $Office2007
- ShellExecuteWait($exepath & "Programs\Office2007.exe", '-aiP -aic')
- RegWrite("HKCU\Software\S60Team", "Office 2007", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Office 2007", "Installation completed!", 3)
- Case $msg = $Office2010
- ShellExecuteWait($exepath & "Programs\Office2010.exe", '-aiP -aic')
- RegWrite("HKCU\Software\S60Team", "Office 2010", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Office 2010", "Installation completed!", 3)
- Case $msg = $Office2016
- If _OS() > 3 Then
- ShellExecuteWait($exepath & "Programs\Office2016.exe", '-aiP -aic')
- RegWrite("HKCU\Software\S60Team", "Office 2016", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Office 2016", "Installation completed!", 3)
- Else
- MsgBox(4096, "Error", "Your OS not support Office 2016!", 3)
- EndIf
- Case $msg = $OpenOffice
- ;setup.exe /msi /qb INSTALLLOCATION="D:\Program Files (x86)\OpenOffice 4\" ALLUSERS=1 /l*v C:\Temp\OpenOffice_MSI.Log
- ShellExecuteWait($exepath & "Programs\OpenOffice.exe", "/S")
- RegWrite("HKCU\Software\S60Team", "OpenOffice", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "OpenOffice", "Installation completed!", 3)
- Case $msg = $WPSOffice
- ShellExecuteWait($exepath & "Programs\WPS_Free.exe", "/S /ACCEPTEULA=1")
- RegWrite("HKCU\Software\S60Team", "WPS_Office", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "WPS Office", "Installation completed!", 3)
- Case $msg = $STDUViewer
- ShellExecuteWait($exepath & "Programs\stduviewer_repack.exe", "/SP- /VERYSILENT")
- RegWrite("HKCU\Software\S60Team", "STDU Viewer", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "STDU Viewer", "Installation completed!", 3)
- Case $msg = $NetworkFix
- ; Flush DNS and WinSock
- $wsf1 = Run($SystemDir & "cmd.exe")
- Sleep(250)
- If $wsf1 = 0 Then
- MsgBox(16, "Error!", @error)
- Else
- WinWaitActive("[CLASS:ConsoleWindowClass]")
- Sleep(200)
- Send("cd /d " & $SystemDir)
- Send("{ENTER}")
- Sleep(200)
- Send("ipconfig /flushdns")
- Send("{ENTER}")
- Sleep(200)
- Send("netsh winsock reset")
- Send("{ENTER}")
- Sleep(200)
- Send("netsh winsock reset catalog")
- Send("{ENTER}")
- Sleep(200)
- Send("netsh int ip reset reset.log")
- Send("{ENTER}")
- Sleep(200)
- WinClose("[CLASS:ConsoleWindowClass]")
- EndIf
- Sleep(350)
- MsgBox(4096, "Network Fix", "You need to Reboot your PC!", 3)
- Case $msg = $PageFile
- ; Set PageFile
- $set_pagefile = MsgBox(1, "Hello!", "Dou you want to set Pagefile automatically?")
- If $set_pagefile = 1 Then
- ; Work With RAM: Set Pagefile if RAM is <4Gb
- $mem = MemGetStats()
- $mem2 = StringLen($mem[1])
- If $mem2 == 8 Then
- $meme = StringTrimRight($mem[1], 4) ; >= 10Gb
- $meme2 = ($meme / 2 + $meme)
- Else
- $meme = StringTrimRight($mem[1], 3) ; < 10Gb
- $meme2 = ($meme / 2 + $meme)
- EndIf
- ; Set Pagefile:
- If $meme > 4000 Then
- ; Delete Swapfile If 4Gb RAM
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles", "REG_MULTI_SZ", '')
- Else
- ; Set Swapfile
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles", "REG_MULTI_SZ", 'C:\pagefile.sys ' & $meme2 & ' ' & $meme2)
- EndIf
- RegWrite("HKCU\Software\S60Team", "PageFile", "REG_SZ", $meme2)
- #cs
- Else
- $getPFregVal = RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles")
- $rxpS = StringRegExp($getPFregVal, '\d+', 1)
- MsgBox(4096, "PageFile:", 'Current PageFile is: ' & $rxpS[0] &"mb")
- #ce
- EndIf
- ; LightShot
- Case $msg = $LightShot
- If FileExists($Disk & "\LightShot\LightShot.exe") Then
- Run($Disk & "\LightShot\LightShot.exe")
- Else
- FileCopy($exepath & "Programs\Other\LightShot.exe", $Disk & "\LightShot\LightShot.exe", 9)
- FileCreateShortcut($Disk & "\LightShot\LightShot.exe", $Desktop & "LightShot.lnk", $Disk & "\LightShot\")
- RegWrite("HKCU\Software\S60Team", "LightShot", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "LightShot", "Installation completed!", 3)
- EndIf
- ; Usb Disk Eject
- Case $msg = $UsbDiskEject
- If FileExists($Disk & "\UsbDiskEject\USB_Disk_Eject.exe") Then
- Run($Disk & "\UsbDiskEject\USB_Disk_Eject.exe")
- Else
- FileCopy($exepath & "Programs\Other\USB_Disk_Eject.exe", $Disk & "\USBDiskEject\USB_Disk_Eject.exe", 9)
- FileCreateShortcut($Disk & "\USBDiskEject\USB_Disk_Eject.exe", $Desktop & "USB Disk Eject.lnk", $Disk & "\USBDiskEject\")
- ; Create Shortcut onWindowsLoad
- ; v1: FileCreateShortcut($Disk & "\USBDiskEject\USB_Disk_Eject.exe", $Startup & "USB Disk Eject.lnk", $Disk & "\USBDiskEject\")
- ; v2: RegWrite($StartupREG, "USBDiskEject", "REG_SZ", $Disk & "\USBDiskEject\USB_Disk_Eject.exe")
- RegRead($StartupREG, "USBDiskEject")
- If @error Then
- RegWrite($StartupREG, "USBDiskEject", "REG_SZ", $Disk & "\USBDiskEject\USB_Disk_Eject.exe")
- EndIf
- RegWrite("HKCU\Software\S60Team", "USBDiskEject", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "UsbDiskEject", "Installation completed!", 3)
- EndIf
- Case $msg = $Fraps
- ; Auto-Install
- If FileExists("D:\Fraps") Or FileExists(@HomeDrive & "\Fraps") Then
- $FrapsCheck = Run("D:\Fraps\fraps.exe")
- If $FrapsCheck = 0 Then
- Run(@HomeDrive & "\Fraps\fraps.exe")
- EndIf
- Else
- ShellExecute($exepath & "Programs\Other\FRAPS.exe")
- Sleep(250)
- WinWaitActive("[CLASS:#32770]")
- ControlClick("Fraps 3.5.99 - davidkleinvelderman@hotmail.com: License Agreement", "", "Button2")
- Sleep(250)
- If _Drive("D:", 4) = "Fixed" Then
- Send("D:\Fraps")
- Else
- Send("C:\Fraps")
- EndIf
- Sleep(250)
- ControlClick("Fraps 3.5.99 - davidkleinvelderman@hotmail.com: Installation Folder", "", "Button2")
- Sleep(250)
- ControlClick("Fraps 3.5.99 - davidkleinvelderman@hotmail.com: Start Menu Folder", "", "Button2")
- Sleep(250)
- ControlClick("Fraps 3.5.99 - davidkleinvelderman@hotmail.com: Completed", "", "Button2")
- Sleep(350)
- RegWrite("HKCU\Software\S60Team", "Fraps", "REG_SZ", "Installed")
- MsgBox(4096, "Fraps", "Installation completed!", 3)
- EndIf
- Case $msg = $VolumeMax
- ; Fix Volume
- Switch _OS()
- Case 1 To 2
- For $i=1 to 25
- Send("{VOLUME_UP}")
- Next
- Case 3 To 7
- For $i=1 to 50
- Send("{VOLUME_UP}")
- Next
- EndSwitch
- Sleep(350)
- MsgBox(4096, "Volume", "Volume is Maxed out!", 3)
- Case $msg = $ClearTemp
- ; Clear TEMP folder (Exit all programs to work):
- Global $aFldrs[5] = [EnvGet("temp"), @HomeDrive & "\temp", @WindowsDir & "\temp", @WindowsDir & "\prefetch", $UserTemp]
- Global $i5
- For $i5 = 0 To UBound($aFldrs) - 1
- If FileExists($aFldrs[$i5]) Then
- DirRemove($aFldrs[$i5], 1)
- Sleep(100)
- DirCreate($aFldrs[$i5])
- EndIf
- Next
- Sleep(350)
- MsgBox(4096, "Temp", "All TEMP folders are clear!", 3)
- Case $msg = $Disable10Updates
- ; STOP Windows 10 Updates before Installing programs:
- If _OS() = 7 Then
- $DISA10 = MsgBox(1, "Updates", "Do you want to disable" &@CRLF& "Windows 10 updates?")
- If $DISA10 = 1 Then
- If Not FileExists($Disk & "\StopUpdates10\") Then
- _7z("Programs\StopUpdates10.7z", $Disk)
- FileCreateShortcut($Disk & "\StopUpdates10\StopUpdates10.exe", $Desktop & "Stop Updates.lnk", $Disk & "\StopUpdates10\")
- Sleep(1000)
- ShellExecute($Disk & "\StopUpdates10\StopUpdates10.exe")
- Else
- Sleep(1000)
- ShellExecute($Disk & "\StopUpdates10\StopUpdates10.exe")
- EndIf
- Sleep(350)
- MsgBox(4096, "StopUpdates10", "Installation completed!", 3)
- EndIf
- RegWrite("HKCU\Software\S60Team", "Win10 Update", "REG_SZ", "Disabled")
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Stop Win10 Update: ' & Round(TimerDiff($Timer)) & @CRLF)
- ElseIf _OS() < 5 Then
- ; Windows XP, Server 2003, Vista, Windows 7
- RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update", "AUOptions", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\wuauserv", "Start", "REG_DWORD", '0x00000004')
- RegWrite("HKCU\Software\S60Team", "Windows Update", "REG_SZ", "Disabled")
- ;
- ;HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, NoAutoUpdate, 1
- ;HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate, DisableWindowsUpdateAccess, 1
- ;HKLM\SYSTEM\Internet Communication Management\Internet Communication, DisableWindowsUpdateAccess, 1
- ;HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update, AUOptions, 1
- ;
- ; Disable Update Service:
- ;sc config wuauserv start= disabled
- ;net stop wuauserv
- Sleep(350)
- MsgBox(4096, "Stop Updates", "Windows Update is Disabled!", 3)
- Else
- MsgBox(4096, 'Error', "Your OS don't need this!")
- EndIf
- Case $msg = $Ammyy
- If FileExists($Disk & "\AmmyyAdmin.exe") Then
- Run($Disk & "\AmmyyAdmin.exe")
- Else
- _7z("Programs\AmmyyAdmin.7z", $Disk)
- ;FileMove($exepath & "Programs\AA_v3.ex_",$Disk & "\AmmyyAdmin.exe",1)
- FileCreateShortcut($Disk & "\AmmyyAdmin.exe", $Desktop & "Ammyy Admin Free.lnk", $Disk & "\")
- RegWrite("HKCU\Software\S60Team", "AmmyyAdmin", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Ammyy Admin Free", "Installation completed!", 3)
- EndIf
- Case $msg = $UninstallTool
- ShellExecuteWait($exepath & "Programs\Other\Uninstall.Tool.v3.5.7.5610.exe", "/S /I")
- RegWrite("HKCU\Software\S60Team", "Uninstall Tool", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "UninstallTool", "Installation completed!", 3)
- Case $msg = $RevoUninstaller
- $Revo1 = FileExists($Disk & "\RevoPortable32")
- $Revo2 = FileExists($Disk & "\RevoPortable64")
- If $Revo1 Or $Revo2 Then
- If @OSArch = 'x86' Then
- Run($Disk & "\RevoPortable32\RevoUninstallerPortable.exe")
- Else
- Run($Disk & "\RevoPortable64\RevoUninstallerPortable.exe")
- EndIf
- Else
- _7z("Programs\Other\RevoUninstallerProPortable.7z", $Disk)
- If @OSArch = 'x86' Then
- FileCreateShortcut($Disk & "\RevoPortable32\RevoUninstallerPortable.exe", $Desktop & "Revo Uninstaller Portable.lnk", $Disk & "\RevoPortable32")
- RegWrite("HKCU\Software\S60Team", "RevoUninstaller x86 Portable", "REG_SZ", "Installed")
- Else
- FileCreateShortcut($Disk & "\RevoPortable64\RevoUninstallerPortable.exe", $Desktop & "Revo Uninstaller Portable x64.lnk", $Disk & "\RevoPortable64")
- RegWrite("HKCU\Software\S60Team", "RevoUninstaller x64 Portable", "REG_SZ", "Installed")
- EndIf
- Sleep(350)
- MsgBox(4096, "RevoUninstaller", "Installation completed!", 3)
- EndIf
- Case $msg = $PuntoSwitcher
- ShellExecuteWait($exepath & "Programs\Other\PuntoSwitcher.exe", "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-")
- RegWrite("HKCU\Software\S60Team", "Punto Switcher", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "PuntoSwitcher", "Installation completed!", 3)
- Case $msg = $AmlMaple
- ShellExecuteWait($exepath & "Programs\Other\AmlMaple.exe")
- RegWrite("HKCU\Software\S60Team", "AmlMaple", "REG_SZ", "Installed")
- ;Sleep(350)
- ;MsgBox(4096, "AmlMaple", "Installation completed!", 3)
- Case $msg = $VLC
- ShellExecuteWait($exepath & "Programs\Other\vlc-3.0.4-win32.exe", "/S")
- RegWrite("HKCU\Software\S60Team", "VideoLAN (VLC)", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "VideoLAN", "Installation completed!", 3)
- Case $msg = $POTPlayer
- ShellExecuteWait($exepath & "Programs\Other\PotPlayer.exe", "/S /I")
- RegWrite("HKCU\Software\S60Team", "PotPlayer", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "PotPlayer", "Installation completed!", 3)
- Case $msg = $KMPlayer
- ShellExecuteWait($exepath & "Programs\Other\KMPlayer.exe", "/S /I")
- RegWrite("HKCU\Software\S60Team", "KMPlayer", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "KMPlayer", "Installation completed!", 3)
- Case $msg = $DisableDefender
- If _OS() > 2 Then
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableOnAccessProtection", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableScanOnRealtimeEnable", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableIOAVProtection", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", "REG_DWORD", '0x00000001')
- RegWrite("HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\UX Configuration", "Notification_Suppress", "REG_DWORD", '0x00000001')
- RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "SecurityHealth")
- RegDelete("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "WindowsDefender")
- Else
- MsgBox(4096, 'Error', "Your OS don't need this!")
- EndIf
- Case $msg = $CCleaner
- ShellExecuteWait($exepath & "Programs\CCleaner.exe", "/S /TECH")
- RegWrite("HKCU\Software\S60Team", "CCleaner Technician", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "CCleaner", "Installation completed!", 3)
- Case $msg = $Defraggler
- ShellExecuteWait($exepath & "Programs\Defraggler.exe", "/S /TECH")
- RegWrite("HKCU\Software\S60Team", "Defraggler Technician", "REG_SZ", "Installed")
- Sleep(350)
- MsgBox(4096, "Defraggler", "Installation completed!", 3)
- Case $msg = $GUI_EVENT_CLOSE
- ;Case $msg = -3
- $MGD = GUIDelete($W_Main)
- ;
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Begin to Delete: ' & Round(TimerDiff($Timer)) & @CRLF)
- FileDelete($7za) ; Do i really need to delete 7za.exe? It's not faster, DELETE!
- FileDelete($icl)
- If $Debug = 1 And $ConsoleLog = 1 Then ConsoleWrite('Deleted: ' & Round(TimerDiff($Timer)) & @CRLF)
- ExitLoop
- EndSelect
- WEnd
- Exit
- ; All ends...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement