Problem with wceload.exe

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
 
P

Peter Foot [MVP]

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
 
B

Bjoern

Hello Peter,

thank you for the answer.

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

Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top