Jump to content
Sign in to follow this  
attactician

Multiple app installer trouble

Recommended Posts

attactician

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

Share this post


Link to post
Share on other sites
Zedna

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.