Guten Morgen
ich versuche derzeit eine automatische Installation für das Programm OCS Inventory zu erstellen mit diversen Hürden:
1. der "Run" Befehl möchte das Programm / Setup bei mir überhaupt nicht starten mit ShellExecute lässt es sich aufrufen
2. wenn ich dann die einzelnen Schritte eingebe z.B. das der Next Button gedrückt werden soll und ich danach das Script ausführe müsste er doch auch an der Stelle nach dem Next Button stehen oder?
Die Buttons, Title, Text habe ich mir mit AutoIt Window Info rausgesucht
Hier mal das Script: (ich habe das erstmal nicht weiter gemacht, da wie gesagt nichts davon zu merken ist das er 2 Buttons mit der ID 1 ausführt.)
Code
ShellExecute("OCS-NG-Windows-Agent-Setup.exe")
WinWait("OCS Inventory NG Agent 2.0.5.0 Setup","Welcome to the OCS Inventory NG Agent 2.0.5.0 Setup Wizard")
WinActivate("OCS Inventory NG Agent 2.0.5.0 Setup","Welcome to the OCS Inventory NG Agent 2.0.5.0 Setup Wizard")
ControlClick("OCS Inventory NG Agent 2.0.5.0 Setup","Welcome to the OCS Inventory NG Agent 2.0.5.0 Setup Wizard", 1)
WinWait("OCS Inventory NG Agent 2.0.5.0 Setup","Press Page Down to see the rest of the agreement.")
WinActivate("OCS Inventory NG Agent 2.0.5.0 Setup","Press Page Down to see the rest of the agreement.")
ControlClick("OCS Inventory NG Agent 2.0.5.0 Setup","Press Page Down to see the rest of the agreement.", 1)
oder ist es normal das man nichts sieht bis wirklich das komplette Setup im Script ist?