PC Review


Reply
Thread Tools Rate Thread

What is the best way to upgrade a handheld application?

 
 
a
Guest
Posts: n/a
 
      14th Dec 2004
I'm trying to make an application that can be upgraded by the user
downloading a new MSI. When the user runs the MSI is puts the cab files
in a directory, then calls CeAppMgr.exe ...setup.ini for the new version
of the program.

When the device connects via ActiveSync again, the new version is not
installed.

I've see various article mentioning Web Services and handheld initiated
upgrades. I wonder if there is a way to make the desktop force an
upgrade, even if the handheld is not connected. Developing for PocketPC
seems so easy at first, but there are so many Gotcha's...

Once again, I want to know how I can use CeAppMgr or some other
ActiveSync program to force a version upgrade of an existing application
on the handheld.

Thanks,

- Russ
 
Reply With Quote
 
 
 
 
steve
Guest
Posts: n/a
 
      14th Dec 2004
you could just put the intended cab files w/n a web page and have your
device go to that page...if it has wifi.

other than that ms has a good starting example. basically you get the regkey
for where the app manager is installed and shell out to it giving the
setup.ini path/file as the arg.

that's it.

hth,

steve


 
Reply With Quote
 
a
Guest
Posts: n/a
 
      15th Dec 2004
steve wrote:
> you could just put the intended cab files w/n a web page and have your
> device go to that page...if it has wifi.
>
> other than that ms has a good starting example. basically you get the regkey
> for where the app manager is installed and shell out to it giving the
> setup.ini path/file as the arg.
>
> that's it.
>
> hth,
>
> steve
>
>


I've done that, but it didn't upgrade the application. It installed a
new version the program cab files in the same folder on the hard drive,
but when the device connected via ActiveSync again it didn't
automatically upgrade itself.

I think the problem is that the registry does not contain any kind of
version information. If you look in the registry at
HKLM\Software\Microsoft\Windows CE Services\AppMgr\Apps there is only
the list of CAB files.

It does track something about the files though. I noticed that there
are REG_BINARY registry entries for each CAB file. I don't know what
they are storing though. Possibly cab size. I'm going to modify my
installer to delete the old CAB files during install.

- Russ
 
Reply With Quote
 
a
Guest
Posts: n/a
 
      15th Dec 2004
a wrote:
> steve wrote:
>
>> you could just put the intended cab files w/n a web page and have your
>> device go to that page...if it has wifi.
>>
>> other than that ms has a good starting example. basically you get the
>> regkey for where the app manager is installed and shell out to it
>> giving the setup.ini path/file as the arg.
>>
>> that's it.
>>
>> hth,
>>
>> steve
>>
>>

>
> I've done that, but it didn't upgrade the application. It installed a
> new version the program cab files in the same folder on the hard drive,
> but when the device connected via ActiveSync again it didn't
> automatically upgrade itself.
>
> I think the problem is that the registry does not contain any kind of
> version information. If you look in the registry at
> HKLM\Software\Microsoft\Windows CE Services\AppMgr\Apps there is only
> the list of CAB files.
>
> It does track something about the files though. I noticed that there
> are REG_BINARY registry entries for each CAB file. I don't know what
> they are storing though. Possibly cab size. I'm going to modify my
> installer to delete the old CAB files during install.
>
> - Russ


As far as I can tell, The binary reg entries just describe what version
of CE they run on, not the version of the application. The first half
is the minimum version of Windows CE, the second half is the Maximum
version.
 
Reply With Quote
 
steve
Guest
Posts: n/a
 
      15th Dec 2004
manually change the version within your app to some thing different and try
again.

"a" <"russell(a)ryba.net"> wrote in message
news:%(E-Mail Removed)...
|a wrote:
| > steve wrote:
| >
| >> you could just put the intended cab files w/n a web page and have your
| >> device go to that page...if it has wifi.
| >>
| >> other than that ms has a good starting example. basically you get the
| >> regkey for where the app manager is installed and shell out to it
| >> giving the setup.ini path/file as the arg.
| >>
| >> that's it.
| >>
| >> hth,
| >>
| >> steve
| >>
| >>
| >
| > I've done that, but it didn't upgrade the application. It installed a
| > new version the program cab files in the same folder on the hard drive,
| > but when the device connected via ActiveSync again it didn't
| > automatically upgrade itself.
| >
| > I think the problem is that the registry does not contain any kind of
| > version information. If you look in the registry at
| > HKLM\Software\Microsoft\Windows CE Services\AppMgr\Apps there is only
| > the list of CAB files.
| >
| > It does track something about the files though. I noticed that there
| > are REG_BINARY registry entries for each CAB file. I don't know what
| > they are storing though. Possibly cab size. I'm going to modify my
| > installer to delete the old CAB files during install.
| >
| > - Russ
|
| As far as I can tell, The binary reg entries just describe what version
| of CE they run on, not the version of the application. The first half
| is the minimum version of Windows CE, the second half is the Maximum
| version.


 
Reply With Quote
 
a
Guest
Posts: n/a
 
      16th Dec 2004
How do I do that for a SmartDevice application?

I've looked through the Project Properties, but I don't notice version
numbers anywhere. This is for a VB.Net for CF project.

steve wrote:
> manually change the version within your app to some thing different and try
> again.
>
> "a" <"russell(a)ryba.net"> wrote in message
> news:%(E-Mail Removed)...
> |a wrote:
> | > steve wrote:
> | >
> | >> you could just put the intended cab files w/n a web page and have your
> | >> device go to that page...if it has wifi.
> | >>
> | >> other than that ms has a good starting example. basically you get the
> | >> regkey for where the app manager is installed and shell out to it
> | >> giving the setup.ini path/file as the arg.
> | >>
> | >> that's it.
> | >>
> | >> hth,
> | >>
> | >> steve
> | >>
> | >>
> | >
> | > I've done that, but it didn't upgrade the application. It installed a
> | > new version the program cab files in the same folder on the hard drive,
> | > but when the device connected via ActiveSync again it didn't
> | > automatically upgrade itself.
> | >
> | > I think the problem is that the registry does not contain any kind of
> | > version information. If you look in the registry at
> | > HKLM\Software\Microsoft\Windows CE Services\AppMgr\Apps there is only
> | > the list of CAB files.
> | >
> | > It does track something about the files though. I noticed that there
> | > are REG_BINARY registry entries for each CAB file. I don't know what
> | > they are storing though. Possibly cab size. I'm going to modify my
> | > installer to delete the old CAB files during install.
> | >
> | > - Russ
> |
> | As far as I can tell, The binary reg entries just describe what version
> | of CE they run on, not the version of the application. The first half
> | is the minimum version of Windows CE, the second half is the Maximum
> | version.
>
>

 
Reply With Quote
 
Guest
Posts: n/a
 
      16th Dec 2004
It's in the AssemblyInfo class.

-Chris


"a" <"russell(a)ryba.net"> wrote in message
news:(E-Mail Removed)...
> How do I do that for a SmartDevice application?
>
> I've looked through the Project Properties, but I don't notice version
> numbers anywhere. This is for a VB.Net for CF project.
>
> steve wrote:
>> manually change the version within your app to some thing different and
>> try again.
>>
>> "a" <"russell(a)ryba.net"> wrote in message
>> news:%(E-Mail Removed)...
>> |a wrote:
>> | > steve wrote:
>> | >
>> | >> you could just put the intended cab files w/n a web page and have
>> your
>> | >> device go to that page...if it has wifi.
>> | >>
>> | >> other than that ms has a good starting example. basically you get
>> the
>> | >> regkey for where the app manager is installed and shell out to it
>> | >> giving the setup.ini path/file as the arg.
>> | >>
>> | >> that's it.
>> | >>
>> | >> hth,
>> | >>
>> | >> steve
>> | >>
>> | >>
>> | >
>> | > I've done that, but it didn't upgrade the application. It installed
>> a
>> | > new version the program cab files in the same folder on the hard
>> drive,
>> | > but when the device connected via ActiveSync again it didn't
>> | > automatically upgrade itself.
>> | >
>> | > I think the problem is that the registry does not contain any kind of
>> | > version information. If you look in the registry at
>> | > HKLM\Software\Microsoft\Windows CE Services\AppMgr\Apps there is only
>> | > the list of CAB files.
>> | >
>> | > It does track something about the files though. I noticed that there
>> | > are REG_BINARY registry entries for each CAB file. I don't know what
>> | > they are storing though. Possibly cab size. I'm going to modify my
>> | > installer to delete the old CAB files during install.
>> | >
>> | > - Russ
>> |
>> | As far as I can tell, The binary reg entries just describe what version
>> | of CE they run on, not the version of the application. The first half
>> | is the minimum version of Windows CE, the second half is the Maximum
>> | version.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Win CE.net(ver 4.1) application work on Win CE 5.0 handheld? CWebb Microsoft Dot NET 1 5th May 2007 11:25 AM
Can Win CE.net(ver 4.1) application work on Win CE 5.0 handheld? CWebb Microsoft Dot NET Compact Framework 1 2nd May 2007 04:03 PM
ObjectDisposedException on NetworkStream for TCP client (handheld) / server (PC) application jd_ie Microsoft Dot NET Compact Framework 3 27th Jun 2006 01:14 PM
Best practices for a handheld application for a visual basic .net application Debu Das Microsoft Dot NET Compact Framework 4 22nd Dec 2004 01:18 PM
Deploying application for handheld amateur Microsoft Dot NET Compact Framework 4 26th Sep 2004 12:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:01 AM.