attactician Posted April 17, 2008 Posted April 17, 2008 Hello, I'm attempting to install a selection of apps sequentially with code found at this posting:Multi-app installer , but when I run the code, they all install at the same time. What can I add to this code to achieve that goal?Func Install() For $x = 0 to _GUICtrlListBox_GetCount($ListBox2) - 1 Switch _GUICtrlListBox_GetText($ListBox2, $x) Case "Novell Client Public." Run("CEC_NC4914_PUB.7z.exe") WinWaitActive("CEC Public Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") Case "Novell Client Non-public." Run("CEC_NC4914_NON_PUB.7z.exe") WinWaitActive("CEC NON PUBLIC Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") Case "Novell Client IT Build." Run("CEC_NC4914_ITADM.7z.exe") WinWaitActive("CEC IT Admin Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") Case "Zen Agent." RunWait(@COMSPEC & " /c Start ZfDAgent.msi")
Zedna Posted April 17, 2008 Posted April 17, 2008 ProcessWaitClose() Func Install() For $x = 0 to _GUICtrlListBox_GetCount($ListBox2) - 1 Switch _GUICtrlListBox_GetText($ListBox2, $x) Case "Novell Client Public." Run("CEC_NC4914_PUB.7z.exe") WinWaitActive("CEC Public Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") ProcessWaitClose("CEC_NC4914_PUB.7z.exe") Case "Novell Client Non-public." Run("CEC_NC4914_NON_PUB.7z.exe") WinWaitActive("CEC NON PUBLIC Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") ProcessWaitClose("CEC_NC4914_NON_PUB.7z.exe") Case "Novell Client IT Build." Run("CEC_NC4914_ITADM.7z.exe") WinWaitActive("CEC IT Admin Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") ProcessWaitClose("CEC_NC4914_ITADM.7z.exe") Case "Zen Agent." RunWait(@COMSPEC & " /c Start ZfDAgent.msi") Resources UDF ResourcesEx UDF AutoIt Forum Search
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