Help - Search - Members - Calendar
Full Version: Regcleaner AutoIT script
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
jinkazama
I've seen that for Regcleaner there are no switch to silent install , i've tried to make an autoit script but i'm not able, someone can see it for me?
It's very simple but i have problems with windows names in the script...
Thank you! welcome.gif
radix
You don't need an AutoIt script, because the installer don't make registry keys (like Add or Remove Programs entry). Make a sfx archive from content of installation folder.

Edit: if you still need the script, try this one:

CODE
Opt("TrayIconDebug", 1)
Opt("SendKeyDelay", 200)

; Executable file name
$EXECUTABLE = "jv16_regcleaner.exe"
; Detect the Operating System type (32 bit or 64 bit)
$OS = _OSBit()

If $OS = 32 Then
 ; Installation folder
    $INSTALLLOCATION = @ProgramFilesDir & "\RegCleaner"
EndIf

If $OS = 64 Then
 ; Installation folder
    $INSTALLLOCATION = @HomeDrive & "\Program Files (x86)\RegCleaner"
EndIf

If FileExists($INSTALLLOCATION & "\RegCleanr.exe") Then
 MsgBox(0x40010, @ScriptName, "Please uninstall previous version of RegCleaner before using this script", 4)
 Exit
EndIf

; Run the installer
Run($EXECUTABLE)

; RegCleaner Setup: Installation Options
WinWait("RegCleaner Setup: Installation Options", "This will install RegCleaner on your computer.")
WinActivate("RegCleaner Setup: Installation Options", "This will install RegCleaner on your computer.")
ControlClick("RegCleaner Setup: Installation Options", "", "Button1")

; RegCleaner Setup: Installation Directory
WinWait("RegCleaner Setup: Installation Directory", "Please select a location to install RegCleaner (or use the default).")
WinActivate("RegCleaner Setup: Installation Directory", "Please select a location to install RegCleaner (or use the default).")
ControlSetText("RegCleaner Setup: Installation Directory", "", "Edit1", "")
Sleep(1000)
ControlSetText("RegCleaner Setup: Installation Directory", "", "Edit1", $INSTALLLOCATION)
ControlClick("RegCleaner Setup: Installation Directory", "", "Button1")

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
jinkazama
Works great! Thank you again radix! thumbup.gif
wsamael
what could we do with this scripte ?
make a .bat files or (other type), create a new folder with regcleaner.exe add this scripte in .bat (or other) and make sfx archives of this folder?
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.