Jump to content

Noob Assistance


mminisee
 Share

Recommended Posts

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:

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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 ??

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.
Link to comment
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....

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...