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 174... Line 174...
174
        private void startSoftwareInstaller(List<Process> toInstall, int ID)
174
        private void startSoftwareInstaller(List<Process> toInstall, int ID)
175
        {
175
        {
176
            Debug.appendText("Starting to install softwares from list of processes");
176
            Debug.appendText("Starting to install softwares from list of processes");
177
            try
177
            try
178
            {
178
            {
179
                this.WindowState = FormWindowState.Minimized;
179
                //this.WindowState = FormWindowState.Minimized;
180
                // Goes through list toInstall and runs each process after the previous one ends
180
                // Goes through list toInstall and runs each process after the previous one ends
181
                int tempID = ID;
181
                int tempID = ID;
182
                if (tempID < toInstall.Count)
182
                if (tempID < toInstall.Count)
183
                {
183
                {
184
                    Debug.appendText("Running setup " + toInstall[ID].StartInfo.FileName + " with arguments " + toInstall[ID].StartInfo.Arguments);
184
                    Debug.appendText("Running setup " + toInstall[ID].StartInfo.FileName + " with arguments " + toInstall[ID].StartInfo.Arguments);
Line 193... Line 193...
193
                        Debug.appendText("Setup is detected as finished, running next setup");
193
                        Debug.appendText("Setup is detected as finished, running next setup");
194
                        tempID++;
194
                        tempID++;
195
                        startSoftwareInstaller(toInstall, tempID);
195
                        startSoftwareInstaller(toInstall, tempID);
196
                    }
196
                    }
197
                }
197
                }
198
                this.WindowState = FormWindowState.Normal;
198
                //this.WindowState = FormWindowState.Normal;
199
            }
199
            }
200
            catch (Exception e)
200
            catch (Exception e)
201
            {
201
            {
202
                Debug.appendText("Exception Thrown: " + e.ToString());
202
                Debug.appendText("Exception Thrown: " + e.ToString());
203
                MessageBox.Show(e.ToString());
203
                MessageBox.Show(e.ToString());