CreateProcess and parameters
- From: "Leif Eirik Olsen" <leif-eirik.olsen@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Oct 2008 13:45:05 +0200
Hi,
I have the following code to execute a cab installation on my device. Now I
would like to add the "/noaskdest" parameter to the call, but cannot get it
to function.
This code works:
ProcessInfo pi;
String progPath = @"\Windows\wceload.exe";
String destAPP = @"\temp\tempAPP.cab";
if ( !CreateProcess(progPath, destApp, pi) )
MessageBox.Show("Failed! System error = " + GetLastError().ToString());
#1 This compiles, but the destApp Cab is not executed
if ( !CreateProcess(progPath + " /noaskdest", destApp, pi) )
MessageBox.Show("Failed! System error = " + GetLastError().ToString());
#2 This compiles, but the destApp Cab is not executed
if ( !CreateProcess(progPath", "/noaskdest " + destApp, pi) )
MessageBox.Show("Failed! System error = " + GetLastError().ToString());
So my question is: where to put the "/noaskdest" parameter in a construct
like this?
Thank you,
Leo
.
- Follow-Ups:
- Re: CreateProcess and parameters
- From: Simon Hart [MVP]
- Re: CreateProcess and parameters
- From: Paul G. Tobey [eMVP]
- Re: CreateProcess and parameters
- Prev by Date: Re: Adding VB code snippets in help documentation
- Next by Date: Environment.SpecialFolder
- Previous by thread: DLL Crunch
- Next by thread: Re: CreateProcess and parameters
- Index(es):
Relevant Pages
|