Problem with wceload.exe

  • Thread starter Thread starter Bjoern
  • Start date Start date
B

Bjoern

Hello,

i want to install automatical a cab-file without the user have to
choose the destination folder.

i use the following code:

CreateProcess("wceload.exe","\\FlashDisk\\NVO2\\nd211.casio.pc.arm.cab
/noaskdest",null);

but the option /noaskdest is ignored and the user have to choose the
dest-folder.

and my second problem is that i have to know when the installation
finish.

what can i do?
Martin Negele
 
What implementation of CreateProcess are you using? e.g. your own P/Invoke
or part of the OpenNETCF.WinAPI library?
The CreateProcess API function returns an IntPtr which is a handle to the
created process. You can use another API call WaitForSingleObject on this
handle to pause execution until the process exits.

As for the NoAskDest does it make any difference if this is placed before
the cab path in the arguments string?

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 
Hello Peter,

thank you for the answer.

you're rigth, wenn i use "/noaskdest dest-folder" then it works.

Martin
 
Back
Top