Guest Bub Posted June 16, 2004 Share Posted June 16, 2004 I have been using AutoIt to automate the installation of some standard software we install on all of our PCs and Laptops such as Adobe Reader 5.0, Winzip 8.0, etc. Basically I step through the install and run it with the keyboard and record my keystrokes and the window titles. Then I write my script using the WinWaitActive and Send commands and then I compile it into an exe and place it on the server. Is there a better way to automate the install process for applications? Just wondering how other people are doing this. Thanks for any input. Link to comment Share on other sites More sharing options...
BasicOs Posted June 16, 2004 Share Posted June 16, 2004 hi, i agree with your method. I only wonder, when you say: record my keystrokes and the window titles how can you record them? automatically?, without spy? Thanks guys Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http Link to comment Share on other sites More sharing options...
pekster Posted June 16, 2004 Share Posted June 16, 2004 hi, i agree with your method. I only wonder, when you say: record my keystrokes and the window titleshow can you record them? automatically?, without spy?You go through the install once, and as you go, write down the window titles to identify them, the controls of the buttons and fields you filled out, and the text you entered into the various controls. All this information can be discovered though use of the AutoIt Spy (well, except the text you enter, but that's not hard .) Then, just write a script to wait for the proper window titles, and fill out the proper controls as required. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
ronaldvr Posted June 17, 2004 Share Posted June 17, 2004 I have created several scripts of which some are in my folder (http://www.autoitscript.com/fileman/users/public/ronaldvr/) However, in the software.ini I posted there, there are also some handy silent install switches. And on www.appdeploy.com you can find more. For some software the silent install is not the way to go though, since their default options clutter up your dekstop, systemtray, and the default choices are not those you want. (RealPlayer and MediaPlayer are prime examples) I have been talking with BasicOS about creating a database of silent install switches and autoit scripts, that can be used by anyone (and anyone can add a tested script and/or silent install method) Link to comment Share on other sites More sharing options...
Administrators Jon Posted June 17, 2004 Administrators Share Posted June 17, 2004 For some software the silent install is not the way to go though, since their default options clutter up your dekstop, systemtray, and the default choices are not those you want. (RealPlayer and MediaPlayer are prime examples)RealPlayer is just EVIL isn't it. I wish companies would stop insisting on using Real for streaming then I could get rid of it.Icons everywhere, you have to turn off "automatic go to the internet and do god knows what" in about 5 different places, same with stupid messages that pop up telling me about stuff I don't care about. And that's the registered version - the free one must be doubly awful. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Valik Posted June 17, 2004 Share Posted June 17, 2004 RealPlayer is just EVIL isn't it. I wish companies would stop insisting on using Real for streaming then I could get rid of it.Icons everywhere, you have to turn off "automatic go to the internet and do god knows what" in about 5 different places, same with stupid messages that pop up telling me about stuff I don't care about. And that's the registered version - the free one must be doubly awful.Jon, check out Real Alternative (Google search, I don't have a link). It lets other players play Real's garbage. It also includes Media Player Classic which even properly handles streaming Real media (Windows Media Player 9 does not handle streaming, though it can play local Real files). Also, QuickTime Alternative is the QuickTime counterpart. I hate QuickTime almost as much as Real, so both of these components are very nice. Link to comment Share on other sites More sharing options...
ezzetabi Posted June 17, 2004 Share Posted June 17, 2004 RealPlayer and MediaPlayer are prime examples Use Quicktime alternative and Real alternative http://home.hccnet.nl/h.edskes/mirror.htmOnly the codec and no rubbish. Link to comment Share on other sites More sharing options...
ezzetabi Posted June 17, 2004 Share Posted June 17, 2004 Oh sorry, Valik... I didnt read your post... Well... At least I gave a link Link to comment Share on other sites More sharing options...
msb5150 Posted June 18, 2004 Share Posted June 18, 2004 (edited) Not to say that AutoIT cannot do this, but it is perhaps overly complicating the problem. Many programs, including Acrobat Reader, and perhaps the corporate edition of winzip, allow command line flags to be used to install the program with no user interaction. This is especially useful for creating a windows xp unattended installation cd, where the need only perform the slightest of input, and then let the cd install XP, and all the programs required. To find more information on the silent installation flags, check this website: http://unattended.msfn.org/xp/applications.htmThe forum link on that page contains installation flags for many more programs than those listed on that site. Not to bash AutoIT's almost limitless functionality, another such way to install a program without a script pressing the buttons, would be to use InstallRite ( http://www.epsilonsquared.com/ ) and install it on your host computer, then choose to make an unattended install package. This method makes a simple executable that installs the program silently, or not depending on the options selected. Edited June 18, 2004 by msb5150 Link to comment Share on other sites More sharing options...
ezzetabi Posted June 18, 2004 Share Posted June 18, 2004 Not to bash you msd5150, but Autoiter always advice using automatic install if avaiable. But sometime they are not, also installrite cant make choice it just copies the modification done to the system by the installer. In multiple OS enviroment can give problems... Still you are not wrong. Just Installrite and /q flag are not all the answers. Autoit + Installrite + /q flags are. Link to comment Share on other sites More sharing options...
ronaldvr Posted June 18, 2004 Share Posted June 18, 2004 Well, Real seems to have woken up to these annoyances (See:Wired Story) But how it worls out we'll have to see.About the "Alternative Players" I have read quite a few people who complained that they could not play all content. And of course if you can use autoit to have the "real" thing, without annoying stuff turned off, why not use it....I can think of another reason why Jon is so annoyed with Real, because window spy does not work well with version 10. It seems Real have a non-standard method for their windows, and so it has been quite impossible to write a script for it.Of course there are always different ways to go with unattended installs. But all have advantages and disadvantages. The main disadvantage of repackaging, is that it is very much dependent on the target system having a very similar setup to the source system. So you may have to take several snapshots for different systems. (Whereas an autoit script will work regardless, so reusability is higher) But in a place where systems are similar, it may be the way to go.Silent install switches, are OK too, but some software may need a custom setup that is not attainable through changing an .ini or with a transform (MST). It is my preferred method, but as said, some packages are extremely devious. Link to comment Share on other sites More sharing options...
chamach Posted June 22, 2004 Share Posted June 22, 2004 To find more information on the silent installation flags, check this website: http://unattended.msfn.org/xp/applications.htmThere is also this web site : http://unattended.sourceforge.net/The guy is not really kind about AutoIt, but you can find very useful informations there.Sometimes you can configure what your installer will do :- Here is a useful post about Inno setups :http://www.forums4free.net/izsoft/index.php?showtopic=9- About InstallShield :http://www.appdeploy.com/tips/detail.asp?id=18- Office 2003 installation can be changed using ORK...There is solutions to change the default feature of an installer... Cervélo Soloist 2004 & Cervélo P3C 2007 Link to comment Share on other sites More sharing options...
Guest BinaryVision Posted June 7, 2006 Share Posted June 7, 2006 I wrote a script writer that records the info for you...http://www.hiddensoft.com/fileman/users/Larry/Lar.Link down...no file in that directory of web server. 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