mrrlg Posted March 2, 2005 Share Posted March 2, 2005 I am having a problem automating the installation of Adobe Acrobat 7.0. My script works up to a point and then dies. If I use this line of script: WinWaitActive("Adobe Reader 7.0 - Setup") ControlClick("&Next >", " ","Button1") the script stops and the I have to manually click next to go to the next step in the installation process. If I use: WinWaitActive("Adobe Reader 7.0 - Setup") MouseMove(613,535) MouseDown("left") MouseUp("left") Sleep(1000) Then the script works and moves to the next step in the installation process. There are five different steps that take place within the same active window. It seems that only using the mouse move commands makes those work. However, if the end user has a different screen resolution then what I wrote the script on that breaks the mouse move commands. Can someone point me to a better explanation of how to script multiple commands within the same active window? Link to comment Share on other sites More sharing options...
Developers Jos Posted March 2, 2005 Developers Share Posted March 2, 2005 ControlClick("&Next >", " ","Button1") This doesn't look right... First param should be the Window Title... 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 More sharing options...
DaveF Posted March 2, 2005 Share Posted March 2, 2005 (edited) If you need an unattended install of Acrobat you really should look here (Appdeploy.com) under the packages section.It's a pain to make an MST transform that has only the features you want, but Adobe Provides the Tuner product for free for just that purpose.With a transform created then you can do a silent install with something like:msiexec /i "Acrobat7.msi" TRANSFORMS="Acrobat7.mst" /qnI promise that you would not be happy with a script that control-clicks its way through an Acrobat install, if only because the UI will remain visible...Edit: Spelling Edited March 2, 2005 by DaveF Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines. Link to comment Share on other sites More sharing options...
mrrlg Posted March 3, 2005 Author Share Posted March 3, 2005 I took your advice and created a custom msi installer to install Adobe reader from a network share. When I type in the command string in a command prompt the installer works correctly and volia Acrobat Reader 7.0! When I place this string in the following script and attempt to use Autoit it falls appart. RunWait(@comspec & " /c msiexec /i \\passport\adobe\acrobat7\adobe reader 7.0.msi TRANSFORMS=\\passport\adobe\acrobat7\adobe reader 7.0.mst REBOOT=ReallySuppress /qb!") The error I get is UNC paths are not supported, Defaulting to Windows Directory and then the Windows Installer window pops up with the message incorrect command line parameters. Is there a way thru AutoIt to support UNC paths? Link to comment Share on other sites More sharing options...
SlimShady Posted March 3, 2005 Share Posted March 3, 2005 (edited) Yes, use a local directory as the working dir. RunWait(@comspec & ' /c msiexec /i "\\passport\adobe\acrobat7\adobe reader 7.0.msi" TRANSFORMS="\\passport\adobe\acrobat7\adobe reader 7.0.mst" REBOOT=ReallySuppress /qb!', @SystemDir) Edit: You had some errors in your command line. I suggest you test first on the command line, before you try it in a script. Edited March 3, 2005 by SlimShady 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