Jump to content

Recommended Posts

Posted

hii all

i had some stuff working but now i'm back again and i can't get this to working this is my code

-----------------------------------------------

AutoItSetOption("TrayIconHide" ,1)

Run("ccsetup221.exe")

WinWaitActive("Installer Language", "Please select a language", "&OK")

Send("{ENTER}")

WinWaitActive("CCleaner v2.21 Setup", "&Next")

Send("!N")

WinWaitActive("CCleaner v2.21 Setup", "&Back")

Send("!A")

WinWaitActive("CCleaner v2.21 Setup", "&Next")

Send("!N")

WinWaitActive("CCleaner v2.21 Setup", "&Install")

Send("{TAB 4}")

Send("{SPACE}")

Send("{TAB}")

Send("{SPACE}")

Send("!I")

WinWaitActive("CCleaner v2.21 Setup", "&Finish")

Send("!F")

FileInstall ("C:\Documents and Settings\admin\Desktop\New Folder2\ccsetup221.exe", "c:\windows")

--------------------------------------

can anybody tell where i am wrong? when i compile it and then move the compiled exe somewhere it doesn't work at all

Posted

sorry i fixed that

it worked out when i added a slash lol

---------------------------------

AutoItSetOption("TrayIconHide" ,1)

FileInstall ("C:\Documents and Settings\admin\Desktop\New Folder2\ccsetup221.exe", "c:\ccleaner\")

Run("ccsetup221.exe")

WinWaitActive("Installer Language", "Please select a language", "&OK")

Send("{ENTER}")

WinWaitActive("CCleaner v2.21 Setup", "&Next")

Send("!N")

WinWaitActive("CCleaner v2.21 Setup", "&Back")

Send("!A")

WinWaitActive("CCleaner v2.21 Setup", "&Next")

Send("!N")

WinWaitActive("CCleaner v2.21 Setup", "&Install")

Send("{TAB 4}")

Send("{SPACE}")

Send("{TAB}")

Send("{SPACE}")

Send("!I")

WinWaitActive("CCleaner v2.21 Setup", "&Finish")

Send("!F")

----------------------------------------

but i have another problem now, i can't make it work in the background

i read the other topic that zenda pointed to, but i can't make it work that way..

can anybody tell me how to make it work when other windows are opened without interrupting the installation???

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...