CAB installation

G

Ganesha

Hi, I want to install a .NET framework CAB file onto the handheld device -
CASIO IT600. I was using wceload.exe with /noaskdest option and it was
installing in windows folder by default.

Now i want to specify the destination directory. i want to do a silent
installation without any user interfaces. I tried using inf file to specify
the .net framework cab but that doesnt work. For the application specific CAB
directory path in inf works. But its not working for .net compact framework.

Is there a way to do a silent installation of .net compact framework CAB to
a specific destination directory on the device. Please let me know if anybody
have done this.

Thanks,
 
S

Simon Hart [MVP]

I'm not sure what OS that device runs but silent installs do not work well on
Windows Mobile (>= WM 5.0). My advice is to avoid attempting to achieve it.
The default directory is specified by the CAB file, you can't change it, you
can only change whether the app gets installed via flash or RAM. Even when
you use an INF, the path is still hardcoded.

If this is your CAB file, simply change the location of where your
application will be deployed. The easiest way to do this is build the CAB in
VS (not command line as you see many sample apps do) and use the file system
editor.
 
G

Ganesha

Thanks Simon.

Simon Hart said:
I'm not sure what OS that device runs but silent installs do not work well on
Windows Mobile (>= WM 5.0). My advice is to avoid attempting to achieve it.
The default directory is specified by the CAB file, you can't change it, you
can only change whether the app gets installed via flash or RAM. Even when
you use an INF, the path is still hardcoded.

If this is your CAB file, simply change the location of where your
application will be deployed. The easiest way to do this is build the CAB in
VS (not command line as you see many sample apps do) and use the file system
editor.
 
G

Ganesha

Hi,
I have one more question. Its regarding SQL Server Compact Edition. Is it
safe to install sql server compact edition in Flashdisk instead of RAM. Will
it cause any problem?

Also is it possible to build a .NET compact framework CAB ourselves by
adding all dlls (that it installs) so that we can specify the destination
directory. This is because .NET framework is taking more space and is
reporting out of memory exception. So would like to install it on FlashDisk.

Can anyone please let me know on this.
 
P

Paul G. Tobey [eMVP]

It doesn't care. I suppose that there would be a problem if the disk wasn't
available when you tried to run some program that uses SQL Compact, but
otherwise, it doesn't matter.

..NET CF 3.5 should be installable to a disk already. Some of the data will,
no matter what you do, be copied to the \windows folder, however. If you
don't have room for that, you'll have to make room.

Paul T.
 
G

Ganesha

Thanks for your time Paul

Paul G. Tobey said:
It doesn't care. I suppose that there would be a problem if the disk wasn't
available when you tried to run some program that uses SQL Compact, but
otherwise, it doesn't matter.

..NET CF 3.5 should be installable to a disk already. Some of the data will,
no matter what you do, be copied to the \windows folder, however. If you
don't have room for that, you'll have to make room.

Paul T.
 
S

Simon Hart [MVP]

If this is under WM5 and onwards, the file system is now on internal flash so
this doesn't use up memory (RAM). However pre WM5 this is not the case. Your
out of memory exceptions, are you getting these when you are running your
applications?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
 
G

Ganesha

Yes the error comes up when running my application. It used 90% of memory. I
even tested with test application(whihc does nothing) to make sure that its
not the problem with my app. Then also it takes most of the memory. I am
using Windows CE Operating System and Compact framework 3.1.
 
S

Simon Hart [MVP]

Before you can determine whether it is your app or not you need to determine
the environment to which it runs which is what you seem to be trying to do.
What version of Windows CE are you running as this makes a massive difference
to whether you should install the framework into flash or filesystem.

There is no such version [3.1] of CF, do you mean 3.5 although this bit of
info is irrelevant at the moment. Have you considered how much free RAM you
have before you run your app? and how much physical RAM do you have on that
device?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
 
G

Ganesha

Sorry, Its .NET Compact Framework 2. I had mentioned the version number for
sqlserverce!!..

Actually, the device on hard reset uses 1.1 MB of memory and on installing
..NET Compact Framework it increases to 4.5 MB. Total RAM is around 46MB. We
would like to keep storage memory as less as possible and give more space for
program memory.



Simon Hart said:
Before you can determine whether it is your app or not you need to determine
the environment to which it runs which is what you seem to be trying to do.
What version of Windows CE are you running as this makes a massive difference
to whether you should install the framework into flash or filesystem.

There is no such version [3.1] of CF, do you mean 3.5 although this bit of
info is irrelevant at the moment. Have you considered how much free RAM you
have before you run your app? and how much physical RAM do you have on that
device?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Ganesha said:
Yes the error comes up when running my application. It used 90% of memory. I
even tested with test application(whihc does nothing) to make sure that its
not the problem with my app. Then also it takes most of the memory. I am
using Windows CE Operating System and Compact framework 3.1.
 
G

Ganesha

Forgot to mention that i am using Windows CE version 5.0

Simon Hart said:
Before you can determine whether it is your app or not you need to determine
the environment to which it runs which is what you seem to be trying to do.
What version of Windows CE are you running as this makes a massive difference
to whether you should install the framework into flash or filesystem.

There is no such version [3.1] of CF, do you mean 3.5 although this bit of
info is irrelevant at the moment. Have you considered how much free RAM you
have before you run your app? and how much physical RAM do you have on that
device?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Ganesha said:
Yes the error comes up when running my application. It used 90% of memory. I
even tested with test application(whihc does nothing) to make sure that its
not the problem with my app. Then also it takes most of the memory. I am
using Windows CE Operating System and Compact framework 3.1.
 

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