Click here to get back home

Deploying and upgrading a home screen DLL

 HomeNewsGroups | Search | About
 microsoft.public.smartphone    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
Deploying and upgrading a home screen DLL Jhawk 12-20-2005
Posted by Jhawk on December 20, 2005, 11:58 am
Please log in for more thread options
Hello:

We are working on building a home screen dll for a SmartPhone using the
2003 SDK and Embedded Visual C++ 4.0. I have a question on deploying
the application. When I try to upgrade the home screen with a new DLL
using the Cab file, it does not overwrite it, if it is already in use
on the device. And I am not sure what parameters to set in the inf file
to forcefully overwrite the dll or at least kill the homescreen app,
before I start the new installation. Can you please give me some
insight on how to do this or point me to the right help sections to
look at. Thank you very much for your assistance.

Best regards, Raj.


Posted by riki on December 20, 2005, 4:39 pm
Please log in for more thread options
Jhawk wrote:
> Hello:
>
> We are working on building a home screen dll for a SmartPhone using the
> 2003 SDK and Embedded Visual C++ 4.0. I have a question on deploying
> the application. When I try to upgrade the home screen with a new DLL
> using the Cab file, it does not overwrite it, if it is already in use
> on the device. And I am not sure what parameters to set in the inf file
> to forcefully overwrite the dll or at least kill the homescreen app,
> before I start the new installation. Can you please give me some
> insight on how to do this or point me to the right help sections to
> look at. Thank you very much for your assistance.

firstly, this kind of question is better suited to
microsoft.public.smartphone.developer.

what i do:
i wrote a setup.dll (there is an example in the SDK). in the uninstall
routine, it kills home.exe, then changes the homescreen scheme to a
microsoft default. then it loops trying to delete the plugin. once its
done that, it reloads home.exe, and creates an empty file using the
plugin name*

* the last step is because the uninstaller like to delete files, if it
can't (because the file isn't there) it assumes the file is locked, and
wants to reboot the phone.

riki

The quicker a phone's answered in sales, the slower it's answered in
customer services - Brownridge's Law
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support

Posted by Jhawk on December 21, 2005, 4:29 pm
Please log in for more thread options
Hi Riki:

Thanks for the response. Infact I started doing the same yesterday, but
I came across the following statement on MSDN:

Do not call DMProcessConfigXML from within the setup DLL file of a
.cab file.

But I still tried using it in the setup dll today and it makes the cab
installation freeze. So, how else can we change the home screen layout
during the installation of a plugin. And also, i was wondering how I
can kill a running home.exe: how do I get the handle to that process?
Please let me know if you have any ideas. Thanks again. - raj.


Posted by riki on December 21, 2005, 6:25 pm
Please log in for more thread options
Jhawk wrote:
> Hi Riki:
>
> Thanks for the response. Infact I started doing the same yesterday, but
> I came across the following statement on MSDN:
>
> Do not call DMProcessConfigXML from within the setup DLL file of a
> .cab file.
thats correct - it's not reentrant

> But I still tried using it in the setup dll today and it makes the cab
> installation freeze. So, how else can we change the home screen layout
> during the installation of a plugin.
change the registry key. it's something like
HKEY_CURRENT_USER\ControlPanel\Home\Scheme

> And also, i was wondering how I
> can kill a running home.exe: how do I get the handle to that process?
> Please let me know if you have any ideas. Thanks again. - raj.
use the toolhelp APIs to iterate though the running processes.
see CreateToolhelp32Snapshot() in the help

Riki

Dasunt's Law - Everything inside a computer will evolve to a state where
it requires active cooling.-- dasunt (2001-07-12)
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support

Similar ThreadsPosted
Home screen September 2, 2006, 3:14 am
home screen December 24, 2006, 1:19 am
How can I tweak my Home Screen? December 15, 2005, 8:53 pm
Calendar and Tasks on Home Screen? October 26, 2005, 11:47 am
What is the home screen image size? December 13, 2005, 5:55 pm
Home Screen Clock Problem! December 20, 2005, 2:48 pm
Where is the Green Windows Home Screen? March 13, 2006, 7:38 pm
Copying home screen XML file November 10, 2006, 4:32 am
Problem with home screen on T-mo Dash May 18, 2007, 12:30 pm
Smartphone home screen edit August 2, 2007, 10:44 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap