/build/static/layout/Breadcrumb_cap_w.png

AutoIT

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!

0 Comments   [ + ] Show comments

Answers (6)

Answer Summary:
AutoItSetOption ( "TrayIconHide", 1) if WinWaitActive ("Continue") Then Send ("{ENTER}") EndIf
Posted by: akhlaque 18 years ago
Orange Senior Belt
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.
Posted by: aogilmor 18 years ago
9th Degree Black Belt
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
Posted by: misk 18 years ago
Orange Senior Belt
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??
Posted by: aogilmor 18 years ago
9th Degree Black Belt
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.
Posted by: misk 18 years ago
Orange Senior Belt
0
thanks guys, worked a treat.
Posted by: akhlaque 18 years ago
Orange Senior Belt
0
That's great to know misk that our solutions worked however for us the treat would be deserved votes on this post?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ