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