CreateProcess and parameters



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


.



Relevant Pages

  • Re: dumb questions? any good freeware 4 windows mobile 5 ??
    ... A very small proportion of software is distributed as .cab archives, ... those you can execute on your device (make sure you make a copy of the ... I've occasionally had luck "unzipping" a desktop installer and ...
    (microsoft.public.pocketpc)
  • Re: Overwrite exe silently
    ... Currently, i'm downloading the file, and then on startup i'm running the cab. ... > To suppress UI try to execute 'wceload' in this manner: ... > Rob S wrote: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Taxi
    ... But the OED has for taximeter: ... An automatic contrivance fitted on a cab or other vehicle to indicate ... ladies who would dance with you for a per dance fee - I suppose. ... What good is being an executive if you never get to execute anyone? ...
    (alt.usage.english)
  • Re: dumb questions? any good freeware 4 windows mobile 5 ??
    ... A very small proportion of software is distributed as .cab archives, ... those you can execute on your device (make sure you make a copy of the ... what you want as a cab file are pretty small. ... The desktop installers you've been downloading actually contain cab ...
    (microsoft.public.pocketpc)