I'm developing an auto update feature for my Windows Mobile 6.5 .NET CF 3.5 application. I haev ended up with following solution.
- I use SOAP WebService to check whether a new version of application is available.
- If there is a newer version, I get the URL in SOAP response, download it. The new version is simply a CAB full installation file.
- As soon as the version is downloaded i call wceload with /silent and /noui parameters on the downloaded CAB. I want unattended installation because users of this application are car drivers who are not so skill-full at operating mobile devices.
The process goes smoothly with one exception - the /noui or /silent options forces wceload to not display any window. My application simply dissapears and in the background the new version is installed. The problem is the drivers sometimes try to turn the application on again too soon. Another point is I'd like my application starts automatically after the update process is completed. So I created a separate exe application that simply calls wceload and if it completes installation it runs the updated version. All works with onr exception - this installer exe is part of my CAB so it is within it and when wceload installs the CAB, it shuts down the installer (because it is a part of the CAB installer). Thus, the installation process is interrupted. My question is - is there a way to "tell CAB" to not terminate particular exe from those one that are part of this CAB?
Regards