PC Review


Reply
Thread Tools Rate Thread

Calling a "Setup.exe" using Process.Start()

 
 
Wardeaux
Guest
Posts: n/a
 
      31st Aug 2004
All,
I've written a "setup" wrapper that calls a sequence of "setup.exe", and
all works except when I call the setup.exe for the MSDE, then it gets about
half way through and then hangs... The MSDE setup works fine from a CMD
prompt... anyone know of articles or known issues with this technique, and
what are my alternatives to having my user install several "Commandline
parameter intensive" setups to get this installed?
MTIA
wardeaux


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      31st Aug 2004
* "Wardeaux" <(E-Mail Removed)> scripsit:
> I've written a "setup" wrapper that calls a sequence of "setup.exe", and
> all works except when I call the setup.exe for the MSDE, then it gets about
> half way through and then hangs... The MSDE setup works fine from a CMD
> prompt... anyone know of articles or known issues with this technique, and
> what are my alternatives to having my user install several "Commandline
> parameter intensive" setups to get this installed?


"Post your code."

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
Wardeaux
Guest
Posts: n/a
 
      31st Aug 2004
Herfried
Thanks for the reply... here's the code... let me know what you find!

Many MANY thanks!

wardeaux

Dim strFileDest As String
Dim myproc As Process
strFileDest = "C:\Program Files\EZJobTracker\"
lblStatus.Text = "Installing MSDE..."
Application.DoEvents()
If (Application.CommonAppDataRegistry.GetValue("MSDE", "Start") <> "Finish")
Then
Application.CommonAppDataRegistry.SetValue("MSDE", "Start")
myproc = Process.Start(Application.StartupPath & "\MSDERelA\Setup.exe",
" SAPWD=""EZJT_DB_SA"" INSTANCENAME=""EZJT_DB"" TARGETDIR=""" & strFileDest
& """ SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=0")
myproc.WaitForExit()
Application.CommonAppDataRegistry.SetValue("MSDE", "Finish")
End If

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * "Wardeaux" <(E-Mail Removed)> scripsit:
> > I've written a "setup" wrapper that calls a sequence of "setup.exe",

and
> > all works except when I call the setup.exe for the MSDE, then it gets

about
> > half way through and then hangs... The MSDE setup works fine from a CMD
> > prompt... anyone know of articles or known issues with this technique,

and
> > what are my alternatives to having my user install several "Commandline
> > parameter intensive" setups to get this installed?

>
> "Post your code."
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      31st Aug 2004
* "Wardeaux" <(E-Mail Removed)> scripsit:
> Dim strFileDest As String
> Dim myproc As Process
> strFileDest = "C:\Program Files\EZJobTracker\"
> lblStatus.Text = "Installing MSDE..."
> Application.DoEvents()
> If (Application.CommonAppDataRegistry.GetValue("MSDE", "Start") <> "Finish")
> Then
> Application.CommonAppDataRegistry.SetValue("MSDE", "Start")
> myproc = Process.Start(Application.StartupPath & "\MSDERelA\Setup.exe",
> " SAPWD=""EZJT_DB_SA"" INSTANCENAME=""EZJT_DB"" TARGETDIR=""" & strFileDest
> & """ SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=0")
> myproc.WaitForExit()
> Application.CommonAppDataRegistry.SetValue("MSDE", "Finish")


Try something like this (written from scratch):

\\\
Imports System.Diagnostics
Imports System.IO
..
..
..
Dim psi As New ProcessStartInfo()
With psi
.FileName = Path.Combine(Application.StartupPath, "MSDER...")
.Arguments = ...
End With
Dim p As Process = Process.Start(psi)
p.WaitForExit()
....
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Process.Start() throws an error saying "Setup error: failed to load resources from resource file Please check your Setup" Vijaya P Krishna Microsoft Dot NET Framework 5 22nd Mar 2006 12:25 PM
Process.Start() throws an error saying "Setup error: failed to load resources from resource file Please check your Setup" Vijaya P Krishna Microsoft Dot NET Framework Forms 5 22nd Mar 2006 12:25 PM
Process.Start() throws an error saying "Setup error: failed to load resources from resource file Please check your Setup" Vijaya P Krishna Microsoft C# .NET 5 22nd Mar 2006 12:25 PM
Process.Start() throws an error saying "Setup error: failed to load resources from resource file Please check your Setup" Vijaya P Krishna Microsoft VB .NET 5 22nd Mar 2006 12:25 PM
IE won't open after "Error calling transport setup (20004)" in win2000 =?Utf-8?B?ZGtlaXRoZ29uZGE=?= Microsoft Windows 2000 0 12th Feb 2004 06:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.