Click here to Skip to main content
15,917,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralFolder Treeview with checkboxes (VB6) Pin
xer131415-Jul-05 22:30
xer131415-Jul-05 22:30 
Generalsqlce connection help Pin
Member 190267915-Jul-05 22:00
Member 190267915-Jul-05 22:00 
GeneralVb+scanned image reading Pin
royrana15-Jul-05 22:00
royrana15-Jul-05 22:00 
GeneralLog File Question Pin
LordLothar15-Jul-05 20:30
LordLothar15-Jul-05 20:30 
Generalcode net send Pin
Member 199098515-Jul-05 15:56
Member 199098515-Jul-05 15:56 
GeneralWindows Authentication IIS Pin
Harmonium15-Jul-05 9:12
Harmonium15-Jul-05 9:12 
GeneralWaiting on process to finish Pin
phraser15-Jul-05 9:11
phraser15-Jul-05 9:11 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 9:30
mveDave Kreskowiak15-Jul-05 9:30 
phraser wrote:
Is there a way i can make it halt the script untill the process has finished installing etc then it carrys on.

You're already doing it.
pStart.Start().WaitForExit()

If your code doesn't block and wait for the process to exit, it means that the process you started already has exited. I take it you're launching some kind of shell .EXE and it is doing a Windows Installer installation (MSI file)? This will cause you great difficulty because the process you launch quits before the MSI is done installing. Since you can only have one MSI install going at a time, you can write a function to mointor a Process list for "msiexec". When all of the "msiexec" processes have finished, you can be reasonably sure that the installation is complete.


phraser wrote:
Also is it possible to create progress bars for files i am executing with the following code above?

No. Since the processes you're launching don't report back any kind of progress, you can't make a 0% to 100% ProgressBar. You can, however, make a non-progress ProgressBar. Confused? This is simply a bar that scrolls endlessly, indicating something is going on. Like the White/Blue/Black bar on the Windows 2000 title screen that scrolls acrossed the windth of the screen when 2000 boots. XP has a little green box scroller during installation and another scroller when it boots on its title screen.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 9:34
phraser15-Jul-05 9:34 
GeneralRe: Waiting on process to finish Pin
rwestgraham15-Jul-05 10:45
rwestgraham15-Jul-05 10:45 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 11:24
mveDave Kreskowiak15-Jul-05 11:24 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 11:40
phraser15-Jul-05 11:40 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 11:48
mveDave Kreskowiak15-Jul-05 11:48 
GeneralRe: Waiting on process to finish Pin
phraser15-Jul-05 11:50
phraser15-Jul-05 11:50 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak15-Jul-05 16:58
mveDave Kreskowiak15-Jul-05 16:58 
GeneralRe: Waiting on process to finish Pin
phraser16-Jul-05 2:28
phraser16-Jul-05 2:28 
GeneralRe: Waiting on process to finish Pin
Dave Kreskowiak16-Jul-05 6:40
mveDave Kreskowiak16-Jul-05 6:40 
GeneralRe: Waiting on process to finish Pin
phraser16-Jul-05 7:58
phraser16-Jul-05 7:58 
GeneralResizing button controls Pin
Member 1325918815-Jul-05 7:21
Member 1325918815-Jul-05 7:21 
GeneralRe: Resizing button controls Pin
bneacetp16-Jul-05 15:34
bneacetp16-Jul-05 15:34 
GeneralBetween Syntax Pin
Capilano15-Jul-05 6:49
Capilano15-Jul-05 6:49 
GeneralRe: Between Syntax Pin
Rob Graham16-Jul-05 11:57
Rob Graham16-Jul-05 11:57 
GeneralPassing Values to A Dropdown Pin
15-Jul-05 6:48
suss15-Jul-05 6:48 
GeneralDeployment problem Pin
pharao9215-Jul-05 5:24
pharao9215-Jul-05 5:24 
GeneralRe: Deployment problem Pin
Dave Kreskowiak15-Jul-05 5:52
mveDave Kreskowiak15-Jul-05 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.