sklotz Posted August 17, 2011 Share Posted August 17, 2011 hello, i have a problem with autoit. I want to use it to deploy the DivX 6 codec+software. The script itself works perfectly, DivX installs with the correct parameters. Now i want to deploy the software to many clients using PDQdeploy (i can't use group policy, because its not within a domain). Problem is, when it deploy it, on the target-pc the script starts, then also the "DivXinstaller.exe" starts, also a "DivXComponent.exe". I can see all that in the task manager. But i can't see anything happening on the screen, the DivXInstaller-GUI does not show up. An the threads don't finish, so DivX won't install. That's weird because when i run the script manually on the target, it works without any problem. I also tried to deploy with a batch file, that copies script and the Installer to a certain location and the runs it - same problem. Then i created a self-extracting Archive with the script and the installer, that extracts the script and the Installer to a certain location and the runs it - same problem. Do you have a solution fo this? can you tell me why the autoit-script doesn't work when deployed, not even with the batchfiles or the SFX-Archive? Thank you very much for your feedback. Greets Simon Link to comment Share on other sites More sharing options...
LurchMan Posted August 17, 2011 Share Posted August 17, 2011 Might be able to help if you give us some code. Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
sklotz Posted August 17, 2011 Author Share Posted August 17, 2011 hello, here's the script i am using: Opt("WinTitleMatchMode", 2) Run("DivXInstaller.exe") Sleep(200) WinWait("Sprachenauswahl", "Wählen Sie Ihre Sprache.") ControlClick("Sprachenauswahl", "Wählen Sie Ihre Sprache." , "Button1") Sleep(200) WinWait("DivX for Windows Installation", "Willkommen") ControlClick("DivX for Windows Installation", "&Weiter >" , "Button2") WinWait("DivX for Windows Installation", "Lizenzabkommen") ControlClick("DivX for Windows Installation", "Lizenzabkommen" , "Button4") ControlClick("DivX for Windows Installation", "&Weiter >" , "Button2") ControlFocus("DivX for Windows Installation", "Komponenten auswählen", "SysTreeView321") ControlSend("DivX for Windows Installation", "Komponenten auswählen", "SysTreeView321", "{RIGHT}" & "{DOWN 5}" & "{SPACE}" & "{DOWN}" & "{SPACE}" & "{DOWN}" & "{SPACE}" & "{DOWN}" & "{SPACE}" & "{DOWN}" & "{SPACE}") ControlClick("DivX for Windows Installation", "&Weiter >" , "Button2") Sleep(300) WinWait("DivX for Windows Installation", "Zielverzeichnis auswählen") ControlClick("DivX for Windows Installation", "&Weiter >" , "Button2") WinWait("DivX for Windows Installation", "Einrichtung abgeschlossen") ControlClick("DivX for Windows Installation", "&Beenden" , "Button2") Sleep(500) FileDelete (@DesktopDir & "\DivX Movies.lnk") 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