Jump to content
Sign in to follow this  
sklotz

Autoit-Script + PDQdeploy

Recommended Posts

sklotz

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

Share this post


Link to post
Share on other sites
LurchMan

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.

Share this post


Link to post
Share on other sites
sklotz

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")

Share this post


Link to post
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
Sign in to follow this  

×