PC Review


Reply
Thread Tools Rate Thread

Automatically reinstalling Compact Framework after hard reset??

 
 
SteveV
Guest
Posts: n/a
 
      11th Mar 2004
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
 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      11th Mar 2004
netcf.all.wce4.ARMV4.cab from the Developer distribution of CF SP2 works
fine for me. Weird.


"SteveV" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
Microsoft MVP ¸­¨Õ»a\(Jan Yeh\) for Windows CE .NE
Guest
Posts: n/a
 
      12th Mar 2004
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

"SteveV" <(E-Mail Removed)> ¦b¶l¥ó
news:(E-Mail Removed) ¤¤¼¶¼g...
> 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



 
Reply With Quote
 
SteveV
Guest
Posts: n/a
 
      12th Mar 2004
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


"Microsoft MVP ¸*¨Õ»a\(Jan Yeh\) for Windows CE .NET" <(E-Mail Removed)> wrote in message news:<#cGa#k$(E-Mail Removed)>...
> 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
>
> "SteveV" <(E-Mail Removed)> ¦b¶l¥ó
> news:(E-Mail Removed) ¤¤¼¶¼g...
> > 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

 
Reply With Quote
 
SteveV
Guest
Posts: n/a
 
      12th Mar 2004
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.


skicow <(E-Mail Removed)> wrote in message news:<718A0D0C-2ACF-4C30-8D1E-(E-Mail Removed)>...
> Hi,
>
> You can use the command line parameter /noui for wceload.exe which will not display the installing progress widow.
>
> As for installing without the 'Comfirm File Replace' and 'Already Installed' dialog, I know you can do it by changing the registry setting of 'Instl' (or Install) in 'HKLM\SOFTWARE\Apps\<companyname><applicationname>' to 0(zero), I do it in my app on an iPAQ h2210, but I'm not sure if it will work with the CF, you could try and let us know if it works
>
> Having to reinstall the newest CF patch after a hard reset is one reason why I don't want to move beyond the CF that's installed on the handhelds that we are distributing our application on.
>
> Good Luck,
> skicow

 
Reply With Quote
 
=?Utf-8?B?c2tpY293?=
Guest
Posts: n/a
 
      15th Mar 2004
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
 
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
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft C# .NET 0 24th May 2007 03:22 AM
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft Dot NET Framework 2 22nd May 2007 02:35 AM
.Net compact Framework throwing formatException which 'normal' framework doesn't John Haxton Microsoft Dot NET Framework 0 20th Apr 2004 02:47 PM
Building a SOAP Message (in Compact Framework) [REPLYING FROM microsoft.public.dotnet.framework] news.microsoft.com Microsoft Dot NET Compact Framework 1 2nd Apr 2004 10:14 PM
Building a SOAP Message (in Compact Framework) [REPLYING FROM microsoft.public.dotnet.framework] news.microsoft.com Microsoft Dot NET Framework 0 16th Mar 2004 04:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 PM.