473,387 Members | 1,925 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,387 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 1805
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.