473,624 Members | 2,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\softwar e\MSDESetup\set up /settings
c:\msde\softwar e\MSDESetup\set up.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 ProcessStartInf o()
psi.FileName = "c:\msde\softwa re\MSDESetup\se tup"
psi.Arguments = "/settings c:\msde\softwar e\MSDESetup\set up.ini"
psi.UseShellExe cute = True
Dim p As Process = Process.Start(p si)
p.WaitForExit()
<<<<<<<<<<<<<<< <<<<<<<<<<<<<<< <<<<<<<<<
Nov 21 '05 #1
4 1827
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*****@hotmai l.com> wrote in message
news:b7******** *************** ***@posting.goo gle.com...
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\softwar e\MSDESetup\set up /settings
c:\msde\softwar e\MSDESetup\set up.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 ProcessStartInf o()
psi.FileName = "c:\msde\softwa re\MSDESetup\se tup"
psi.Arguments = "/settings c:\msde\softwar e\MSDESetup\set up.ini"
psi.UseShellExe cute = True
Dim p As Process = Process.Start(p si)
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.EnableR aisingEvents.

hope that helps a bit..
Imran.

"Piedro" <pp*****@hotmai l.com> wrote in message
news:b7******** *************** ***@posting.goo gle.com...
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\softwar e\MSDESetup\set up /settings
c:\msde\softwar e\MSDESetup\set up.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 ProcessStartInf o()
psi.FileName = "c:\msde\softwa re\MSDESetup\se tup"
psi.Arguments = "/settings c:\msde\softwar e\MSDESetup\set up.ini"
psi.UseShellExe cute = True
Dim p As Process = Process.Start(p si)
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****@microso ft.com> wrote in message news:<eq******* ******@TK2MSFTN GP11.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.EnableR aisingEvents.

hope that helps a bit..
Imran.

"Piedro" <pp*****@hotmai l.com> wrote in message
news:b7******** *************** ***@posting.goo gle.com...
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\softwar e\MSDESetup\set up /settings
c:\msde\softwar e\MSDESetup\set up.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 ProcessStartInf o()
psi.FileName = "c:\msde\softwa re\MSDESetup\se tup"
psi.Arguments = "/settings c:\msde\softwar e\MSDESetup\set up.ini"
psi.UseShellExe cute = True
Dim p As Process = Process.Start(p si)
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(p rocessStartInfo ) 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
1999
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 is really a unix thing but what the hell). The function keeps crashing (I've included the crash but I don't think it will do any good.), only sometimes, most of the time it works fine and I don't know why, Could any body suggest anything, maybe...
6
1864
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 ASP.NET app does NOTHING. No error message, not anything at all. In fact, if I add the following line after process.Start:
6
6840
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 process. That's strange for me. I understand that it should be a new shell, but why I can't start it? Is it need to have a Windows application to start an external process? I created a very long batch files and a complicated script to work with...
1
1808
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 something to do with process groups or threads and closeOnExec semantics (to speak in POSIX terms) is causing me a problem. I've got a windows service (let's call it "myService") that, among other things, does : onStart creates a TcpListener on a...
17
6428
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
3283
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
3693
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 Pro machine. DB info: The database file in question is merely several queries based upon a single, linked Excel file of about 17,000 records that resides in the same directory as the Access file, both of which are stored locally on my machine. ...
2
3219
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 to kill the process if it takes more time. Process proc = new Process(); proc.StartInfo.FileName = "application";
5
4801
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 /v:SP3DLAB4 Any hints ?
0
8685
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8631
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8490
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.