Page 1 of 1 1
Topic Options
#45477 - 2003-09-17 09:55 PM Run Windows Updates which Require Replies?
Mike Frumer Offline
Fresh Scripter

Registered: 2003-09-17
Posts: 12
I am new to KiXtart and am looking at it as a way to automatically install Microsoft's updates to Windows and IE.

When you run such an update, you may get message boxes requiring replies. You cannot predict the exact order of appearance of the windows. With KiXtart, can you wait for a window to appear, check to see what its title or text is, and send it a button click?

I have been doing this sort of thing with a product called WinBatch. My manager has been reading about KiXtart and wants to convert to using it instead.

Top
#45478 - 2003-09-17 10:01 PM Re: Run Windows Updates which Require Replies?
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Congratulations!

A good manager :

quote:
My manager has been reading about KiXtart and wants to convert to using it instead.
This should be possible but If I were you I would only run a KiXscript that calls the AutoITx COM Interface [Wink]

Search for autoitx.dll to find code samples and DL links
_________________________



Top
#45479 - 2003-09-17 10:05 PM Re: Run Windows Updates which Require Replies?
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Over the last month there has been a lot of discussion of thus type of issue. Try doing a board search for "window updates", "hotfixes", "patches", etc & it will give you good feel for the issue.
_________________________
Jack

Top
#45480 - 2003-09-17 10:49 PM Re: Run Windows Updates which Require Replies?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Also search for "silent install". Most patches can be made to run silent with specific switches that vary from one to the other.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#45481 - 2003-09-18 03:58 PM Re: Run Windows Updates which Require Replies?
Mike Frumer Offline
Fresh Scripter

Registered: 2003-09-17
Posts: 12
Thanks. I have followed the leads and done the searches suggested, but it is not clear that there is a straightforward way to run updates which require responses at semi-unpredictable times.

I found one forum entry which included code that said:

messagebox("Please wait while your version of Outlook Express is updated. Answer 'Yes' and then 'Ok' to the following prompts when they appear. Once the update has been successfully installed, your computer will need to be rebooted.", "Outlook Express Update", 0)

That is what we want to avoid - requiring the user to interact AT ALL during the running of the update. The posts regarding silent running make it sound as if I MAY be able to make updates run silently, and I MAY NOT. But even if I can, I may not be able to avoid having the user respond to the "Reboot your system now?" prompt at the end of the update.

Another user suggested the Microsoft Software Update Services (SUS) Server. That sounds like a very good suggestion for systems later than Windows 9x, and I will look into it.

So I am back to my original question: Can I, with KiXtart, wait for the appearance of windows with specific titles or content and manipulate them? There was a suggestion to look into autoitx.dll. I did that and found only a few posts with sketchy information.

Thanks again for all of your help.

Top
#45482 - 2003-09-18 04:13 PM Re: Run Windows Updates which Require Replies?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
yes you can, but Kixtart's setfocus() and sendkeys() functionality is pretty limited... AutoIt is much more robust, and can be managed with Kix.

The thing that you are missing is, that virtually ALL M$ updates are (or can be) silent... they will not display any question to the users.

Therefore, I'd spend less time researching sendkeys, and more time looking for the command line switches
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#45483 - 2003-09-18 04:55 PM Re: Run Windows Updates which Require Replies?
Mike Frumer Offline
Fresh Scripter

Registered: 2003-09-17
Posts: 12
Thanks Radimus.

To summarize then, it appears that if I am running an application (be it a Microsoft update or some other arbitrary program), and that program can run to completion without popping up windows which require attention, then I can do the job with KiXtart. If the program may require interaction, I should be able to get the job done with a combination of KiXtart and AutoIt.

Correct?

Top
#45484 - 2003-09-18 05:06 PM Re: Run Windows Updates which Require Replies?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
pretty much...

Kix can do it... sometime, but you'll probably get a high failure rate. Especially if you have users that like clicking around

If you do a search for silent or switches, you will find lots of hits... I deploy everything silent and if it doesn't have a silent switch I use WinInstall LE to make MSI files that are silent.

Avoid Sendkeys or AutoIt sendkeys like the plague... that is way on the bottom of the list of options
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#45485 - 2003-09-18 05:22 PM Re: Run Windows Updates which Require Replies?
Mike Frumer Offline
Fresh Scripter

Registered: 2003-09-17
Posts: 12
Thanks again. One other thing.

Currently, if we try to do an install and find out (either by looking in the Registry or by getting an error message) that the user's system is not at the proper software level to accept the install, we send a message to our support group telling them about the situation. Can I do that with KiXtart?

Top
#45486 - 2003-09-18 07:23 PM Re: Run Windows Updates which Require Replies?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
yep...

code:
 
if not Readvalue("HKLM\Software\Microsoft\Active Setup\Installed Components\{377483c2-e4b4-4ee8-b577-9aed264c8735}","ComponentID")='Q822925'
$=sendmessage($ITDept,"installing IEQ822925 on @wksta")
shell '$setup\IEQ822925\q822925.exe /q /r:n'
endif

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#45487 - 2003-09-18 07:46 PM Re: Run Windows Updates which Require Replies?
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Unless you run these updates at night or on the weekends, I suspect silent update runs will cause problems for your users. What happens if the update requires & forces a reboot? I would get real pissed if somone did that to me without at least warning me or explaining to me what is happening.
_________________________
Jack

Top
#45488 - 2003-09-18 07:53 PM Re: Run Windows Updates which Require Replies?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I use the UpdateApps() UDF wrapper for installs.

Updates happen before drives are mapped... to be honest about it, I don't care if the users get pissed by having to wait.

Corp policy is if an update needs to be done, then they need to be done... if it requires a reboot, then that is what needs to happen.

If a computer goes unpatched, it has the potential of damaging productivity... an update that causes a reboot occosionally, is a small price to pay.

However, the UpdateApp() udf is there for basic notifications...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#45489 - 2003-09-18 08:31 PM Re: Run Windows Updates which Require Replies?
Mike Frumer Offline
Fresh Scripter

Registered: 2003-09-17
Posts: 12
Sorry, I did not correctly state my message sending requirement.

I need to send an email message not an immediate message. Can I do that?

Top
#45490 - 2003-09-18 08:34 PM Re: Run Windows Updates which Require Replies?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
There is a FAQ to send e-mail via SMTP.. Using BLAT, POSTIE, COM, Outlook.


How do I send e-mail from KiXtart- (SMTP)


Kent

[ 18. September 2003, 20:38: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#45491 - 2003-09-19 06:31 PM Re: Run Windows Updates which Require Replies?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
SUS would be an option, too. See http://www.microsoft.com/windows2000/windowsupdate/sus/default.asp
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 293 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.162 seconds in which 0.087 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org