.NET Compact Framework Sample: Auto Updater

C

Chris Craft

I wonder how this will compare with the upcoming

Smart Client Offline Application Block
http://www.microsoft.com/resources/practices/coming.asp

Learn to create self-updating applications using .NET Compact Framework.
http://www.microsoft.com/downloads/...2c-fc61-4d82-abae-f34dc1bfcd3f&displaylang=en

There's also another posted today:
..NET Compact Framework Sample: P/Invoke Library
http://www.microsoft.com/downloads/...aa-ada2-42d4-8b70-95dc7d8f678c&displaylang=en

There is an RSS feed for the Microsoft Download Center's 10 latest files.
http://www.thundermain.com/rss/

Thanks,
Chris Craft
http://www.cjcraft.com/
 
A

Alex Feinman [MVP]

The source code installer fails and rolls back because of the missing file.
 
M

Mike

Damn, I was just about to post a question about how to update our PPC apps
when I saw this thread. Has anyone implemented an auto-updater for their CF
app? I'm guessing you can't copy over your own exe file while the program
is running.
 
G

Geoff Schwab [MSFT]

I have updated the sample. I won't get into the specifics of what caused
the problem but I apologize for any inconvenience and thank everyone for you
patience.

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility

This posting is provided "AS IS" with no warranties, and confers no rights.
 
M

Mike

So you can't copy over an exe that is executing right? No mention seems to
be made of how this Updater applet would coordinate with the actual program.
Would the update applet always be running and then pop-up with a
notification message when an update is available and kill the program exe so
it can be overwritten?
 
C

Chris Tacke, eMVP

I would have the app itself look for updates and notify the user. If the
user says "yes, I want to update" I'd spawn another "updater" app and kill
the app to be updated. Once the update is complete, the "updater" app would
then re-launch the newly updated app. Of course that's just me.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
 
A

Alex Feinman [MVP]

I would agree. The article has been written using a corporate applciation as
an example. In that application I did not want the users to update
automatically. They would have been told by the corp support to run the
update application. If a particular app frequently uses network connection,
it can easily slip in an update request and notify the user if one is
available. Then using the scheme described by Chris, it will perform an
update and relaunch itself
 

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