Re: AutoIt
- From: Miguel <Miguel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 7 Jul 2006 07:05:02 -0700
I managed to finally make this work. Digging through the AutoIt Newsgroup I
noticed that WinWaitActive is the wrong way to do this remotely. Instead I
went with ControlSend and it did launch the program and the application was
uninstalled successfully.
Thanks,
"TerryM" wrote:
Instead of doing a send("!Y").
find the ControlID and send a click to that. You'll always get better
results that way and more reliable.
Terry
"Miguel" <Miguel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A8A257D-4870-43D1-9BAB-2E1986EB7B1C@xxxxxxxxxxxxxxxx
Thanks for the response,
To answer your questions the script does run in SMS's context and the
program is setup to run whether or not the usr is logged on. I've also
tried
to run the AutoIt package using PSExec and I still can't get it to run
remotely. What confuses me is that why this thing does what it supposed to
do
when I manually double-click on it while logged in to the local machine?
I'll
go ahead and past the script to this Newsgroup so hopefully if I made any
mistakes it can be corrected. What this script does is that it launches
the
uninstall string of an application (no silent switch available). When
prompted to uninstall the program, the script selects Yes from the dialog
box
and the program is consequently uninstalled.
Run("C:\Program Files\InstallShield Installation
nformation\{E0000650-0650-0650-0650-000000000650}\Setup.exe -l0x9 -uninst")
WinWaitActive("PureEdge Viewer", "&Yes")
Send("!Y")
Exit
"TerryM" wrote:
I've used AutoIt A LOT executing through SMS Installer.
I've never had a problem.
I don't know what your script does, but I'd look at how you're sending
things out with SMS. Is it running in sms's context or the user's? Is
it
set to run even if the machine is not logged onto? Would those things
affect things your script is doing? Have you ran this on multiple
machines
or just one? Is there a difference?
But if you have compiled your autoit script into a stand alone exe then
it
should run just fine.
You should also add in the line so that the line in the script is
displayed
when you hover over the tray autoit icon.
To do that add the following tot he top of your script:
AutoItSetOption("TrayIconDebug", 1)
Then you can see what line it is getting held up on.
Terry
"Miguel" <Miguel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:05761A64-9485-4A49-8F64-19A9578279D9@xxxxxxxxxxxxxxxx
I was hoping someone in this newgroup happens to be familiar with AutoIt
application. I wrote a script in AutoIt compiled, it and included it in
my
SMS Installer script to run on client systems. The executable runs
without
any problems when I run it manually on a client machine. However it
does
not
execute when I push it out with SMS. I see the process in Task Manager
and
it
appears to hang. I was wondering if there is any other command or
switches
I
need to use to make the AutoIt executable run.
- Follow-Ups:
- Re: AutoIt
- From: TerryM
- Re: AutoIt
- Prev by Date: Re: SMS site server install question
- Next by Date: Re: AutoIt
- Previous by thread: Re: SMS site server install question
- Next by thread: Re: AutoIt
- Index(es):
Relevant Pages
|