SherinBloemendaal
Gebruiker
- Lid geworden
- 5 jan 2013
- Berichten
- 259
Hallo,
Ik heb een "Console" als form gemaakt.
Ik kan dus een lijn aan die console toevoegen door : Form2.write(String, color)
Ik maak een programma dat andere programma's installeerd. 7zip en np++ enz.
Dat verloopt allemaal goed.
maar ik wil graag als hij klaar is met 7zip installatie dat hij dus een lijn aan de console toevoegt.
Helaas ging dit niet zo makkelijk als ik dacht.
Dit is wat ik nu heb :
Wat moet ik nu verder?
Alvast bedankt!
Sherin Bloemendaal
Ik heb een "Console" als form gemaakt.
Ik kan dus een lijn aan die console toevoegen door : Form2.write(String, color)
Ik maak een programma dat andere programma's installeerd. 7zip en np++ enz.
Dat verloopt allemaal goed.
maar ik wil graag als hij klaar is met 7zip installatie dat hij dus een lijn aan de console toevoegt.
Helaas ging dit niet zo makkelijk als ik dacht.
Dit is wat ik nu heb :
Code:
Private Sub InstallingApps_DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles InstallingApps.DoWork
'Instalatie van Applications
Form2.Write("10% Installing Applications", Color.White)
ProgressBar4.Value = 10
Process.Start(RoamingData + "\7zip.exe", "/S").WaitForExit()
Form2.Write("20% Installing Applications", Color.White)
ProgressBar4.Value = 20
Process.Start(RoamingData + "\googlechrome.msi", "/q").WaitForExit()
Form2.Write("25% Installing Applications", Color.White)
ProgressBar4.Value = 25
Process.Start(RoamingData + "\java.exe", "/s").WaitForExit()
Form2.Write("30% Installing Applications", Color.White)
ProgressBar4.Value = 30
Process.Start(RoamingData + "\N++.exe", "/S").WaitForExit()
Form2.Write("40% Installing Applications", Color.White)
ProgressBar4.Value = 40
Process.Start(RoamingData + "\CIRDP.exe").WaitForExit()
Form2.Write("60% Installing Applications", Color.White)
ProgressBar4.Value = 60
SendKeys.Send(Keys.Enter)
Process.Start(RoamingData + "\esetmsipackage.exe").WaitForExit()
Form2.Write("Starting ESET Instalation...", Color.White)
Process.Start(RoamingData + "\ees_nt32_enu\ees_nt32_enu.msi", "/q").WaitForExit()
Form2.Write("75% Installing Applications", Color.White)
Form2.Write("Activating ESET Endpoint Security...", Color.White)
Form2.Write("Killing ESET Endpoint Security Service...", Color.DarkRed)
EsetProcessKiller.Start()
Try
System.IO.Directory.Delete(esetpath, True)
Catch ex As Exception
Form2.Write("Error deleting eset folder. can't activate it now. Error : " + ex.Message, Color.Red)
End Try
ProgressBar4.Value = 75
Process.Start(RoamingData + "\esetfolder.exe").WaitForExit()
EsetProcessKiller.Stop()
Form2.Write("ESET Endpoint Security succesfully activated.", Color.Green)
Form2.Write("80% Installing Applications", Color.White)
ProgressBar4.Value = 80
Process.Start(RoamingData + "\office10.exe").WaitForExit()
Process.Start(RoamingData + "\proplusx86\setup.exe", "/q").WaitForExit()
Form2.Write("100% Installing Applications", Color.White)
ProgressBar4.Value = 100
End Sub
Wat moet ik nu verder?
Alvast bedankt!
Sherin Bloemendaal
Laatst bewerkt: