Subversion Repositories Code-Repo

Rev

Rev 70 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 73
Line 112... Line 112...
112
        private void startDriverInstallation(List<Process> toInstall, int ID)
112
        private void startDriverInstallation(List<Process> toInstall, int ID)
113
        {
113
        {
114
            Debug.appendText("Starting to install drivers from list of processes");
114
            Debug.appendText("Starting to install drivers from list of processes");
115
            try
115
            try
116
            {
116
            {
117
                this.WindowState = FormWindowState.Minimized;
117
                //this.WindowState = FormWindowState.Minimized;
118
                // Goes through list toInstall and runs each process after the previous one ends
118
                // Goes through list toInstall and runs each process after the previous one ends
119
                int tempID = ID;
119
                int tempID = ID;
120
                if (tempID < toInstall.Count)
120
                if (tempID < toInstall.Count)
121
                {
121
                {
122
                    Debug.appendText("Running setup " + toInstall[ID].StartInfo.FileName + " with arguments " + toInstall[ID].StartInfo.Arguments);
122
                    Debug.appendText("Running setup " + toInstall[ID].StartInfo.FileName + " with arguments " + toInstall[ID].StartInfo.Arguments);
Line 131... Line 131...
131
                        Debug.appendText("Setup is detected as finished, running next setup");
131
                        Debug.appendText("Setup is detected as finished, running next setup");
132
                        tempID++;
132
                        tempID++;
133
                        startDriverInstallation(toInstall, tempID);
133
                        startDriverInstallation(toInstall, tempID);
134
                    }
134
                    }
135
                }
135
                }
136
                this.WindowState = FormWindowState.Normal;
136
                //this.WindowState = FormWindowState.Normal;
137
            }
137
            }
138
            catch (Exception e)
138
            catch (Exception e)
139
            {
139
            {
140
                Debug.appendText("Exception Thrown: " + e.ToString());
140
                Debug.appendText("Exception Thrown: " + e.ToString());
141
                MessageBox.Show(e.ToString());
141
                MessageBox.Show(e.ToString());