process.start keeps crashing

P

Piedro

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()
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
I

Imran Koradia

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.
 
P

Piedro

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
 
P

Piedro

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top