Log in

View Full Version : Auto update application by downloading new CAB file


pdanford
08-08-2007, 02:32 PM
Hi,

I have an application - written in vb.net compact framework - which auto updates by periodically downloading a new CAB file. The application then executes the CAB file and exits the current running application by :

Me.Invoke(New EventHandler(AddressOf Me.RunCABFile))
Application.Exit()
Exit Sub

This worked fine on my PDA running Microsoft Pocket PC.

However, it doesn't run on Windows Mobile 5.

Although the CAB file downloads, current app exits, CAB file runs - I get the message "Installation of /Storage Card/etc....." was unsuccessful.

Would anyone have any ideas why the newly downloaded CAB file refuses to install?

Thanks in Advance,
PD

palewar
11-27-2007, 08:20 AM
We have been successful in doing this using VS2005/CF2/Windows Mobile 5 using this line:

System.Diagnostics.Process.Start("application.CAB", "")

Give it a try. Cheers!!

ram2008
05-20-2008, 02:34 PM
hi guys,

Can you please explain how you did this autoupdate program?:confused:

Thanks
Ram