Click here to get back home

Registering home screen plugin

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Registering home screen plugin Daniel Seifert 09-18-2007
Get Chitika Premium
Posted by Daniel Seifert on September 18, 2007, 10:14 am
Please log in for more thread options
Hi,

I'm in the process of creating a home screen plugin.

If I deploy it directly from within Visual Studio 2005 (register output
option is set), the plugin gets shown on the home screen (I changed the XML
file).

However, when I install the plugin (together with my application) via a CAB,
the plugin doesn't get registered - worse, the existing registration is
apparently removed (at least the plugin is not displayed anymore).

The cab file (relevant parts only) looks like this:

[DefaultInstall]
CopyFiles=Files.Common1
CESelfRegister=TestHomePlugin.dll

[SourceDisksNames]
1=,"Common1",,"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Release\"
3=,"Common1",,"SetupDLL\Windows Mobile 5.0 Pocket PC SDK
(ARMV4I)\Release\"
6=,"Common1",,"Plugins\SP-HomeScreen\Windows Mobile 5.0 Smartphone SDK
(ARMV4I)\Release\"

[SourceDisksFiles]
"app.exe"=1
"SetupDLL.dll"=3
TestHomePlugin.dll=6

[DestinationDirs]
Shortcuts=0,%CE4%
Files.System1=0,"%CE2%"

The created cab file looks okay, i.e. the DLL is included and the _setup.xml
file in the cab says

<characteristic type="TestHomePlugin.dll" translation="install">
<characteristic type="Extract">
<parm name="Source" value="T87R20~C.004" />
<parm name="SelfRegister" />
</characteristic>
</characteristic>

The TestHomePlugin.dll also gets installed (to \Program Files\MyApp\, same
as when deploying from within VS2005).

I'm a bit at a loss now, is there a way to check what exactly the issue is?
E.g. whether the registration is missing / failed / ... or whether
something else went wrong? Alternatively, is there something obviously
wrong with the above?

TIA

Daniel

Posted by Daniel Seifert on September 18, 2007, 2:19 pm
Please log in for more thread options
Hello,

Daniel Seifert wrote:
> However, when I install the plugin (together with my application) via a
> CAB, the plugin doesn't get registered - worse, the existing registration
> is apparently removed (at least the plugin is not displayed anymore).

I've narrowed this down some more and the problem actually is presenting
itself slightly different now. When I take a fresh device and install the
cab, everything works as expected (so the DLL registration actually
worked).

However, if I install the cab again (either exactly the same or one with an
updated plugin or app.exe), the home screen continues to show the previous
plugin and after a reset it is gone. This does not happen when deploying
directly from Visual Studio, which makes me believe that VS does some
additional steps when registering the software that the cab installer
doesn't.

My suspicion is that the plugin should get unregistered but that this isn't
done automatically by the CAB. What do you think? Or is there another
explanation for this behaviour and what would be the correct way to fix it?

Thanks in advance for any answer,

Daniel


Posted by Daniel Seifert on September 26, 2007, 4:09 pm
Please log in for more thread options
Daniel Seifert wrote:
>> However, when I install the plugin (together with my application) via a
>> CAB, the plugin doesn't get registered - worse, the existing registration
>> is apparently removed (at least the plugin is not displayed anymore).
>
> I've narrowed this down some more and the problem actually is presenting
> itself slightly different now. When I take a fresh device and install the
> cab, everything works as expected (so the DLL registration actually
> worked).
>
> However, if I install the cab again (either exactly the same or one with
> an updated plugin or app.exe), the home screen continues to show the
> previous plugin and after a reset it is gone. This does not happen when
> deploying directly from Visual Studio, which makes me believe that VS does
> some additional steps when registering the software that the cab installer
> doesn't.

As an update to this, I switched from testing on the emulator to testing on
a real device and the problem seemed to have gone away. Will file this
under "emulator issues". Thanks for listening.

Daniel


Similar ThreadsPosted
Home Screen Plugin June 9, 2005, 2:18 pm
how to debug the plugin for home screen? September 15, 2005, 3:08 am
more about plugin (home screen) problem. September 21, 2005, 3:38 am
how to add to MRU bar when launch the app from Home Screen plugin October 8, 2005, 2:27 am
Livecast plugin on home screen January 24, 2006, 3:05 am
Launching app from home screen plugin May 5, 2006, 4:34 pm
How to debug home screen plugin? May 20, 2006, 2:53 pm
Home screen plugin deployment July 19, 2006, 11:35 am
Installing home screen plugin September 21, 2007, 8:09 am
SendMessage to home screen plugin December 11, 2007, 3:15 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap