all groups > dotnet compact framework > december 2006 >
You're in the

dotnet compact framework

group:

Installation Help


Installation Help Guus Davidson
12/6/2006 8:21:12 PM
dotnet compact framework:
Hi I was wondering if anyone could help me out with an annoying issue I am
having when installing my application onto a device.

Firstly I want to install three Cab Files as part of the installation, these
being.
1.The new CF2.0 cab file, if it is not present on the target device.
2. My Application
3 A separate data file for my application.

I have written a windows installer application using the NSIS scripting
language. This currently installs the CAB files sequentially.

My issue is that on Windows Mobile 5 devices (I have a Dell Axim and a
PDA-N) once I install one of the individual cab files the PDA displays a
“Installation Successful” Dialog.
If the user starts to install the next Cab file before they press the ‘OK’
button, then my installation process breaks down as the first cab file is not
installed.

I have tested this on PPC 2003 devices, (I have a Garmin M4 and a O2 mini)
and there is no “Installation Successful” dialog, so the process works
seamlessly.

I am at a loss on how to proceed.

I have tried to install the three Cab files in one cab file that then places
these in the startup folder, but on my windows mobile 5 devices only one cab
file is ever run on boot up (and it always happens to be my Data cab file).
This process however works on the PPC 2003 device.

I have also tried putting in a registry check so that I only allow the
sequence of cab installs to proceed when the previous one has completed, but
this isn’t reliable as the registry is created before the ”installation
success” dialog.

We have also tried the pocket PC Installer creator application
(http://www.pocketpctoolkit.com/), and this is capable of doing a complete
install without the user having to press ok on the “Installation Successful”
Dialog. ”

Please can someone help me out here, my boss is going mental every time he
breaks the installation, and I want to get back onto developing the rest of
the application.

Surely someone has encountered and solved this already. I am new to doing
PPC development so I hope I've not missed something trivial here.

Thanks in advance

Guus Davidson


Re: Installation Help mland3s NO[at]SPAM sbcglobal.net
12/7/2006 1:37:06 PM
I am working through the same issue right now. I don't know if you
noticed, but once you open a CAB on the device (whether through the GUI
or a desktop installer), WM5 will subsequently warns:

"The previous version of <AppName> will be removed before the new one
is installed. Select OK to continue or Cancel to quit."

This occurs even if the files that the CAB installed have been deleted
manually. I want to prevent these dialogs from posting too. So, far,
the best I've been able to find on the subject resides here:

<http://microsoft1.groupbrowser.com/t287703.html>

which will undoubtedly lead you to:

<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/wmsecurity.asp>

The phrase to include in your search is "silent install". I'll keep
looking - if you find something, I hope you'll post it back.

Thanks, Mike Landis <http://pnmx.com/>

[quoted text, click to view]
Re: Installation Help mland3s NO[at]SPAM sbcglobal.net
12/7/2006 10:31:33 PM
Guus,

This will do it (I'm paraphrasing the call):

CeCreateProcess( _T("wceload.exe /noui <cabfile>") );

-Mike Landis ( http://pnmx.com/ )
AddThis Social Bookmark Button