By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

process.start keeps crashing

P: n/a
Hi group I'm trying to run the msde setup from my program with the
following piece of code and the msde setup just keeps crashing after
it has run for a couple of seconds. If I try to run the setup from
start/run and then enter c:\msde\software\MSDESetup\setup /settings
c:\msde\software\MSDESetup\setup.ini it works just fine but if I call
it from my prog it crashes, if tried a lot of things to solve it. I've
already placed the command in a .bat file and than rund the .bat file
but that didn't work either. Can anyone help me

thnx in advance Peter

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Dim psi As New ProcessStartInfo()
psi.FileName = "c:\msde\software\MSDESetup\setup"
psi.Arguments = "/settings c:\msde\software\MSDESetup\setup.ini"
psi.UseShellExecute = True
Dim p As Process = Process.Start(psi)
p.WaitForExit()
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Have you looked at some of the MSDE bootstraper solutions instead?

http://msdn.microsoft.com/vstudio/do.../bootstrapper/

http://www.microsoft.com/downloads/d...displaylang=en

Greg
"Piedro" <pp*****@hotmail.com> wrote in message
news:b7**************************@posting.google.c om...
Hi group I'm trying to run the msde setup from my program with the
following piece of code and the msde setup just keeps crashing after
it has run for a couple of seconds. If I try to run the setup from
start/run and then enter c:\msde\software\MSDESetup\setup /settings
c:\msde\software\MSDESetup\setup.ini it works just fine but if I call
it from my prog it crashes, if tried a lot of things to solve it. I've
already placed the command in a .bat file and than rund the .bat file
but that didn't work either. Can anyone help me

thnx in advance Peter

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Dim psi As New ProcessStartInfo()
psi.FileName = "c:\msde\software\MSDESetup\setup"
psi.Arguments = "/settings c:\msde\software\MSDESetup\setup.ini"
psi.UseShellExecute = True
Dim p As Process = Process.Start(psi)
p.WaitForExit()
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Nov 21 '05 #2

P: n/a
Try removing the WaitForExit. I believe there's a problem with that.
To be notified when the installation has been completed, watch the
Process.Exited event. To use this event, you'll have to call
Process.EnableRaisingEvents.

hope that helps a bit..
Imran.

"Piedro" <pp*****@hotmail.com> wrote in message
news:b7**************************@posting.google.c om...
Hi group I'm trying to run the msde setup from my program with the
following piece of code and the msde setup just keeps crashing after
it has run for a couple of seconds. If I try to run the setup from
start/run and then enter c:\msde\software\MSDESetup\setup /settings
c:\msde\software\MSDESetup\setup.ini it works just fine but if I call
it from my prog it crashes, if tried a lot of things to solve it. I've
already placed the command in a .bat file and than rund the .bat file
but that didn't work either. Can anyone help me

thnx in advance Peter

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Dim psi As New ProcessStartInfo()
psi.FileName = "c:\msde\software\MSDESetup\setup"
psi.Arguments = "/settings c:\msde\software\MSDESetup\setup.ini"
psi.UseShellExecute = True
Dim p As Process = Process.Start(psi)
p.WaitForExit()
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Nov 21 '05 #3

P: n/a
Hi thnx for your tips, the tip from Imran seems to work (but I haven't
been able to test it 100% because I first have to completly reinstall
my test machine befot I can test it), the links are also very helpful
but I guess I'll have to upgrade to vs2003 because they minimun
required vs2003 and I've got vs2002. But thnx for the help and I'll
post something if I've tested it and works ok

Thnx Peter

"Imran Koradia" <no****@microsoft.com> wrote in message news:<eq*************@TK2MSFTNGP11.phx.gbl>...
Try removing the WaitForExit. I believe there's a problem with that.
To be notified when the installation has been completed, watch the
Process.Exited event. To use this event, you'll have to call
Process.EnableRaisingEvents.

hope that helps a bit..
Imran.

"Piedro" <pp*****@hotmail.com> wrote in message
news:b7**************************@posting.google.c om...
Hi group I'm trying to run the msde setup from my program with the
following piece of code and the msde setup just keeps crashing after
it has run for a couple of seconds. If I try to run the setup from
start/run and then enter c:\msde\software\MSDESetup\setup /settings
c:\msde\software\MSDESetup\setup.ini it works just fine but if I call
it from my prog it crashes, if tried a lot of things to solve it. I've
already placed the command in a .bat file and than rund the .bat file
but that didn't work either. Can anyone help me

thnx in advance Peter

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Dim psi As New ProcessStartInfo()
psi.FileName = "c:\msde\software\MSDESetup\setup"
psi.Arguments = "/settings c:\msde\software\MSDESetup\setup.ini"
psi.UseShellExecute = True
Dim p As Process = Process.Start(psi)
p.WaitForExit()
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Nov 21 '05 #4

P: n/a
Hi Leaving the p.waitforexit worked just fine, but now the crystal
reports 9 msi redistibutable package keeps popping up a new windows
installer dialog every 2-3seconds and then closes it again and opens a
new one, very anoying, I also call this package from my prog with dim
pCr as Process = process.start(processStartInfo) and if I just double
click the package in explorer it works like a charm and doesn't have
this strange behavior. I'm getting this behavior on windows xp prof
and framework 1.1 . It installs the cr-prog just fine but I have to
keep pressing end task in the ctrl+alt+delete screen for the installer
popups for 10-15 minutes so that the cr-installer can continue.
Strange thing isn't it.

Grtz Peter
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.