Why .NET Compact Framework disppear after shut down?

G

Guest

I have a problem that the .NET Compact Framework disappeared after my smart device shut down. Now I have to install the Framework again when I start the smart device. I am using Ce .Net version 4.0 running on SH3 and the .NET Compact Framework is the one comes with .NET Framework 1.1. How can I solve the problem

In fact, I guess the problem is that the memory lost when there is no power supply since the only place that files would not disappear is SD Card. Is there anyway that I can force the compaact framework installed in the SD Card? Simply change the installation path only creates a empty foler in SD Card with all the framework files in somewhere else.
 
P

Peter Foot [MVP]

The framework has to be installed in system memory, not on a storage card -
a number of files are required in the \windows folder. Normally you would
want the framework built into rom so it is always ready available after a
cold boot. On devices such as Pocket PC where the framework may be a RAM
install it is fairly uncommon to cold boot the device as instead they merely
suspend and don't shut down completely, hence the contents of RAM are not
lost.

The best workaround I could suggest is that you could write a basic
AutoRun.exe application on the SD Card which gets automatically called when
the card is inserted (or on system initialise) and place the framework cab
file on the SD Card. Have your Autorun program call the cabfile to
automatically install the framework.

Peter
 
G

Guest

Hi Peter

Thank you for your help. How can I create a basic AutoRun.exe that can run without the compact framework

Kempton
 
J

Jan Yeh [MVP]

Dear Kempton,

You have to write AutoRun.exe in eVC.

In AutoRun.exe, you can check the device whether .NETcf is stalled, and
then install .NETcf if it is never installed.

If your device has flash memory folder, you can just put .cab files of
..NETcf
in that folder, instead of SD card.

--
Best Regards,
Jan Yeh

eMVP, MCAD, .NETcf Developer
Mobile Mind Company @ Taiwan
 
G

Guest

Thank Jan Ye

I am new to eVC, how can I run the AutoRun.exe automatically when the deivce start?
 
P

Paul G. Tobey [eMVP]

I've done this type of thing for OpenNETCF files on our device by putting
the DLL files themselves, rather than the CABs in persistent storage and
simply copying them to the \Windows directory on startup. This seems to be
faster than a complete install, although I assume that either would work.

Paul T.
 
G

Ginny Caughey [MVP]

Kempton,

You should also be aware the the Compact Framework is only officially
supported on CE version 4.1 and higher (plus all versions of PocketPC).
--
Ginny Caughey
..Net Compact Framework MVP

Kempton said:
I have a problem that the .NET Compact Framework disappeared after my
smart device shut down. Now I have to install the Framework again when I
start the smart device. I am using Ce .Net version 4.0 running on SH3 and
the .NET Compact Framework is the one comes with .NET Framework 1.1. How can
I solve the problem?
In fact, I guess the problem is that the memory lost when there is no
power supply since the only place that files would not disappear is SD Card.
Is there anyway that I can force the compaact framework installed in the SD
Card? Simply change the installation path only creates a empty foler in SD
Card with all the framework files in somewhere else.
 
G

Guest

Can I make it in storage card? Since everything written in the Ram will be lost and I cannot write anything to the Rom.
 
C

Chris Tacke, eMVP

Autorun works only from a removable media and is run only on insertion.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Kempton said:
Can I make it in storage card? Since everything written in the Ram will be
lost and I cannot write anything to the Rom.
 
P

Paul G. Tobey [eMVP]

It depends on the device. There may be some scheme which allows it to be
done, or there may not. We aren't going to be able to help you; contact the
device OEM.

Paul T.

Kempton said:
Can I make it in storage card? Since everything written in the Ram will be
lost and I cannot write anything to the Rom.
 

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