473,287 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

process.start keeps crashing

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
4 1804
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Guy | last post by:
Hi, I created a function, which seems to work, quite well, it tells me if a process is running in widows using the pid number (I'm aware that the pid number in widows is not called a pid and this...
6
by: BCM | last post by:
In a simple console app the following few lines open up an Acrobat file without a hitch: Process p = new Process(); p.StartInfo.FileName = @"C:\test.pdf"; p.Start(); But the same code in an...
6
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
1
by: Doug Wyatt | last post by:
So I'll preface this with the fact that I'm a UNIX developer by training and have just recently gotten in to C# development on Windows. I'm basically running in to a problem whereby I suspect...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
1
by: someone | last post by:
Hi all, I have installed Visual Studio 2005 on Windows XP. Visual Studio keeps crashing every 10-15 minutes. Can you please tell me what can cause this poblem and how to fix it? Thanks.
1
by: Jeemo | last post by:
I've been tearing my hair out on this one. This effin' database keeps crashing on me while I'm doing query-related operations. System info: Access 2003 SP2 with all the latest updates on an XP...
2
by: Anbu | last post by:
Hi all, I'm creating processes of a console based application. After proc.Start() the process is not getting terminated and the thread keeps waiting for some reponse from the process. Now I need...
5
by: sjoshi23 | last post by:
Hello I'm trying to start a remote desktop session using Process.Start but it keeps saying "File not found". The same cmd thru DOS window works fine. I used: C:\\WINDOWS\\system32\\mstsc.exe...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.