Automatically reinstalling Compact Framework after hard reset??


S

SteveV

I'm working on an auto-restore app the restores the registry and
reinstalls the latest CF cab file when the system is hard reset.

I'm using an iPAQ 5550/5555 running PocketPC 2003. When I run the
"Microsoft .NET Compact Framework 1.0 SP2 Installer" from my desktop
machine, the installer deploys the netcf.all.wce4.ARMV4.cab file and
everything installs smoothly.

However, if I upload the cab file to the device manually and and try
to launch it on the device I get the following error:

"The file "\Storage Card\netcf.all.wce4.ARMV4.cab" is not a valid
Windows CE Setup file." Huh?

Anyone else run into this problem?

Thanks,
Steve Vibert
 
Ad

Advertisements

M

Mike

netcf.all.wce4.ARMV4.cab from the Developer distribution of CF SP2 works
fine for me. Weird.
 
M

Microsoft MVP ¸­¨Õ»a\(Jan Yeh\) for Windows CE .NE

Hello, Steven

Can you try to download the CAB into your PPC via ActiveSync,
and click the CAB file to install?

--
Best Regards,
Jan Yeh

MVP(Windows CE.NET), MCAD, .NETcf Developer & Consultant
Mobile Mind Co., Ltd. @ Taiwan
 
S

SteveV

I had been transferring the cab file using Active Sync's explorer.
This morning I hard reset the unit and now the cab file launches
properly. I am at a complete loss as to why it was failing yesterday.
The odd thing is that other cab files were launching properly when I
was having a problem with the netcf.all.wce4.ARMV4.cab.

Anyway, all is back to normal since the hard reset.

I do have one other question though. Is it possible to launch the
compact framework install cabs in "silent" mode. I'd like to be able
to suppress the "Confirm File Replace" dialog that pops up when
installing CF service packs and the "Already Installed" dialog that is
displayed when reinstalling the CF.

Thanks -- Steve
 
S

SteveV

Thanks, skicow. The /noui switch does indeed eliminate the ui and as
an added bonus suppresses the "Confirm File Replace" dialog when
trying patch an older CF version. However, "Already Installed" still
pops up.

As you suggested setting changing the "Instl" value to zero in
[HKEY_LOCAL_MACHINE\SOFTWARE\Apps\Microsoft .NET Compact Framework]
key suppresses the "Already Installed" dialog.

The minor downside is that the installation of CF resets this value to
one during install. So, to make this work you need to programatically
set the reg value before launching wceload. A litle clumsy but pretty
workable.

Thanks again for the suggestions -- Steve

BTW, I tested this on an iPAQ 5550/5555.
 
Ad

Advertisements

G

Guest

Hi

Yes, a little clumsy but it works. It's the only way I know how to suppress the 'Aready Installed' dialog, there could be other ways but I was unable to find them

skicow
 
Ad

Advertisements


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