guiron Posted April 29, 2004 Share Posted April 29, 2004 I'm still trying to install MsWorks 4.5 unattended without any luck so i took a look at AutoIt....I was able to write a script that when I type msworks setup.exe at the command prompt the first setup window appears, ie..C:\xpcd\$oem$\$1\install\applications\msworks\setup.exe.....then i can click on my AutoIt exe file i made (on my desktop) and it will fill in all the info and install msworks fine....The problem is I cant seem to this without first starting msworks setup.exe first then clicking on my AutoIt exe...Is it possible to make them work together via a batch file or something? Or am i going about this completely wrong? Link to comment Share on other sites More sharing options...
ZoSTeR Posted April 29, 2004 Share Posted April 29, 2004 The only thing you have to add to your AutoIt script is something like this:Run("MsWorksSetup.exe")WinWait("MsWorks Setup window title")... Send Keys or whatever...Use the AutoItSpy to get the window title of the setup. Link to comment Share on other sites More sharing options...
guiron Posted April 29, 2004 Author Share Posted April 29, 2004 Zoster, thank you so much... iv'e been struggling with trying to install Msworks unattended for days now...and for anyone who needs the script i used to install MsWorks 4.5 here it is...just covert it to a .exe and place it the Msworks folder and have your guirunonce say something likeechoecho installing MsWorks 4.5start /wait %systemdrive%\Install\Applications\MsWorks\(the name of your AutoIt).exeecho Installation Complete!the script.....Run,Setup.exeWinWait,Microsoft Works 4.5 Setupsend,{enter}send,{del 8}send,xxxxxx (x's=your name)send,{tab}send,{del 8}send,Nonesend,{enter 2}send,XXXXXXXXXXXXXXXXX (x's where the activation code is..no spaces)send,{enter 2}sleep,5000send,{enter}sleep,5000send,{enter}sleep,2000send,{enter}sleep,50000send,{enter} Link to comment Share on other sites More sharing options...
guiron Posted April 29, 2004 Author Share Posted April 29, 2004 oops.... where it says:send,Nonethe None designates your organization, so put what ever you wantalso at the...send,{del 8}this is just clearing whatever may be in the field already so if your organization name is more than 8 characters then just change the 8 to 20 or whatever Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now