954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

time delay during program execution

I am creating a program that will install multiple programs, because I build new computer quite often. For example "MyInstallProgram" will launch and allow the user to select which programs (MSOffice, Acrobat, WinZip etc.) to install.

When compiling the program, what code can I use that will insert a time delay so that I do not have 5 install programs running and installing all at once.

Is there code that would insert 30 seconds before the next line of code is executed? What would that code look like?


Logic:

If MSOffice checked then,
open c:\windows\msofficesetup.exe

wait 30 seconds

If Acrobat checked then,
open c:\acrobatsetup.exe

wait 30 seconds...

etc.

hoosier23
Light Poster
25 posts since Jun 2006
Reputation Points: 42
Solved Threads: 1
 

Somthing like.

System.Threading.Thread.Sleep(1000) ' Sleep for 1 second


?

tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

check out this site for how to delay until the process has ended to continue with the next one.

waynespangler
Posting Pro in Training
461 posts since Dec 2002
Reputation Points: 84
Solved Threads: 58
 

What site? I think you forgot to post the link ;).

tayspen
<Insert title here>
Team Colleague
1,622 posts since Jul 2005
Reputation Points: 84
Solved Threads: 99
 

Sorry about that.
http://www.devx.com/dotnet/Article/7914/0/page/2
Hope this helps,

waynespangler
Posting Pro in Training
461 posts since Dec 2002
Reputation Points: 84
Solved Threads: 58
 

www.ninite.com does this.
Ninite is a great installer that is very popular.

See the wiki
http://en.wikipedia.org/wiki/Ninite

Gopher2011
Newbie Poster
2 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You