hi guys, i need to use autoIT to stop a warning appearing. the warning appears towrd the end of the installation. Can anyone tell me the code for AutoIt so that it is running in the background waiting for the warning to appear, once it has it needs to activate it and then send the !Continue Anyway key.

what is the best custom action settings to use in my msi?

thanks in advance for any info provided!
Answer Summary:
AutoItSetOption ( "TrayIconHide", 1) if WinWaitActive ("Continue") Then Send ("{ENTER}") EndIf
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1
I'd consider autoit a last resort tool, but if you must use it, have a look at the sample scripts. What you're describing is pretty simple, something along the lines of,

Winwait, <window text>
Winactivate, <window text>
Send, !C
Answered 11/29/2005 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

2
Hi Misk
You may feel trying this code as well:


AutoItSetOption ( "TrayIconHide", 1)


if WinWaitActive ("Continue") Then
Send ("{ENTER}")
EndIf


Let me know if this was helpful.
Answered 11/29/2005 by: akhlaque
Orange Senior Belt

Please log in to comment
0
thanks guys, worked a treat.
Answered 11/30/2005 by: misk
Orange Senior Belt

Please log in to comment
0
That's great to know misk that our solutions worked however for us the treat would be deserved votes on this post?
Answered 11/30/2005 by: akhlaque
Orange Senior Belt

Please log in to comment
0
if the application is installing and locks (ctrl+alt+del) for example, the autoIT solution does not seem to work. the warning box stays open and installation does not complete!
i thought it was working but unfortunately not!
any ideas??
Answered 11/30/2005 by: misk
Orange Senior Belt

Please log in to comment
0
well, autoit relies a lot on keystrokes which would be a problem if the screen is locked.

Maybe you can force it to keep the active installation window active (even hidden windows should generate some sort of activity and your screen should not lock on you)
Or (even more kludgy) get AutoIT to start a dummy batch files that does something stupid, like flash a message and close, every 5 minutes or so, so the screen doesn't lock.

IF you're trying to install this in the background with the user logged off, or initiate it with the screen locked, forget about it. That'll never work. Of course I'm always glad to be proven wrong [8D] But the type of installation I think you're talking about doesn't work like that.
Answered 11/30/2005 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity