Install a .cab file from a running program?!?

G

Guest

Hi,

I've developed a pocketpc application for a company. It uses SQLCE as
database. We can update this database by connecting to a remote SQL server.
Here we have a table wich contains updates (sql statements) that are stored
as a binary image.
So we get the image and save it as a file.

If there is a program update, we let the user get this .cab file from the
SQL Server.
This al works fine.

The question is: I want to install this new version by clicking a
commandbutton in the PocketPC application. But... of course this won't work,
because the application is in use.
Is there a way to run this .cab file on another thread or something? I don't
know much about threads. Maybe I need a whole other view on this, but I hope
someone can explain me how to do this.

I don't want to let the user manual clicking the .cab file or something.

Any advice is very welcome.
Thanks
Daniel

(The Netherlands)
 
F

Frederik Jensen

[Cut]
Is there a way to run this .cab file on another thread or something?

To run a cab file use CreateProcess to start the wceload.exe build-in
application. This application takes the cabfile name as a command line
parameter.
 

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