Sign in to follow this  
Followers 0
mminisee

Noob Assistance

8 posts in this topic

I am trying to write a script that will first show a message box to the user letting them know what they are about to install, then start an executable "update.exe" from a network shared drive "S:\install\security_updates\w2k\sp4\i386\update\" and then send the keystrokes necessary so that this will require no interaction(1. Next, 2. Don't, 3. Next, 4. Do Not Reboot now, 5. Finish), and then shut down the PC.

Here is what I have thus far, and it does not work; :whistle:

Run, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe

WinWait, Windows 2000 Service Pack 4 Setup Wizard, Welcome to the

IfWinNotActive, Windows 2000 Service Pack 4 Setup Wizard, Welcome to the

Win, WinActivate, Windows 2000 Service Pack 4 Setup Wizard, Welcome to the

Win

WinWaitActive, Windows 2000 Service Pack 4 Setup Wizard, Welcome to the

Win

LeftClick, 446, 125

Sleep, 100

Send, {ENTER}

WinWait, Windows 2000 Service Pack 4 Setup Wizard, Please read the foll

IfWinNotActive, Windows 2000 Service Pack 4 Setup Wizard, Please read the foll, WinActivate, Windows 2000 Service Pack 4 Setup Wizard, Please read the foll

WinWaitActive, Windows 2000 Service Pack 4 Setup Wizard, Please read the foll

Send, {TAB}{TAB}{SPACE}{ENTER}{ENTER}

The error I get is (Line:3) - IfWinNotActive: Invalid number of parameters!

Any assistance is very much appreciated, thank you!! :iamstupid:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Thank you for your reply Larry, would there be a way to show the installation progress but not allow the user to interact or interrupt the process?

Thanks again!

And I tried to use what you included and I am getting an error;

;AutoItv2...

RunWait, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe -u -n -o -z -q, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe

Error - (Line:2)

Failed to run program!

Edited by mminisee

Share this post


Link to post
Share on other sites

Try SUS server and set group policy instead of writing scripts....

That will save you a lot of time and you will have all workstations and servers up to date with security patches.

SUS server is free....

Share this post


Link to post
Share on other sites

And I tried to use what you included and I am getting an error;

;AutoItv2...

RunWait, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe -u -n -o -z -q, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe

Error - (Line:2)

Failed to run program!

Could it be because you have the "update.exe" in the path name ??

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Try SUS server and set group policy instead of writing scripts....

That will save you a lot of time and you will have all workstations and servers up to date with security patches.

SUS server is free....

I actually downloaded that a few days ago, but since we're still using NT Server SUS Server all be it a good solution is not something I am able to use.

Thanks for the suggestion though, and if you know of a way around that, please let me know.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

naww.. the expanded SP4 has that folder structure...

:whistle: do not compute...

I meant in the RunWait "path"....

RunWait, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe -u -n -o -z -q, S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\update.exe

EDIT: Jeanyus and Mind-reader B)

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

perhaps using -u but removing -q.

hmmm... what does this do...

SetEnv,SP_path,S:\\INSTALL\\Security_Updates\\W2K\\SP4\\i386\\update\\
IfNotExist,%SP_path%update.exe,Goto,err
RunWait,%SP_path%update.exe -u -n -o -z -q,%SP_path%
Exit

err:
MsgBox,4096,hmmm ERROR,ERROR: Path does not exist...
Exit

do you get the error?

Larry, U DA MAN, it works! Thank you so much! I feel like ... :whistle: ing, although I don't own any pink things like that.

Share this post


Link to post
Share on other sites

I actually downloaded that a few days ago, but since we're still using NT Server SUS Server all be it a good solution is not something I am able to use.

Thanks for the suggestion though, and if you know of a way around that, please let me know.

Yes, you can use it!

(if you install one additional W2K server or if you have already W2K server)

You don't need hi-spec hardware for it...

Instead of using group policy (W2K/2K3 domain), you should set up each client manually...

That can be done with script.... (it is some registry editing, as I remember)

With SUS, you are updating W2K, XP & 2K3 with single click, instead of writing script for each update or groups of updates....

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0