Visual Basic.NET - ayuda con CheckBox & botones

 
Vista:

ayuda con CheckBox & botones

Publicado por rodrigo (2 intervenciones) el 21/11/2007 23:01:58
miren mi codigo
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Option Strict Off
Option Explicit On
Friend Class Form1
Inherits System.Windows.Forms.Form

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' Configuracion CheckBox 1
If CheckBox1.CheckState = 1 Then
System.Diagnostics.Process.Start("setup1.exe")
End If

' Configuracion CheckBox 2
If CheckBox2.CheckState = 1 Then
System.Diagnostics.Process.Start("setup2.exe")
End If

' Configuracion CheckBox 3
If CheckBox3.CheckState = 1 Then
System.Diagnostics.Process.Start("setup3.exe")
End If

' Configuracion CheckBox 4
If CheckBox3.CheckState = 1 Then
System.Diagnostics.Process.Start("setup4.exe")
End If

End Sub

End Class


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

(van setups auto-instalables)
lo que yo quiero es que el setup2 se ejecute cuando termine de instalar el setup1, y que el setup3 se ejecute cuando el setup2 termine y asi sucesivamente...
ayuda por favor
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:ayuda con CheckBox & botones

Publicado por encore121 (14 intervenciones) el 22/11/2007 21:15:01
Debes hacerlo asi:

System.Diagnostics.Process.Start("setup1.exe").WaitForExit()

al agregarle el waitforexit, tu programa esperara a que termine el archivo setup1.exe para continuar con lo siguiente
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:ayuda con CheckBox & botones

Publicado por rodrigo (2 intervenciones) el 23/11/2007 16:13:25
GRACIAS MUCHAS GRACIAS
ME SALVASTE LA VIDA :p XD

MUCHAS GRACIAS!!!!

PD: ME SIRVIO :p
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar