Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to install file to storage card

26 views
Skip to first unread message

Brad Wood

unread,
Mar 8, 2005, 4:53:35 PM3/8/05
to
I need to install my application's database to a storage card.

Questions:
- I couldn't find any way to do this with a cabwiz create .cab file. Am
I wrong?
- Consequently, I would have to use a 3rd party tool to create my
install, correct?
- The current deployment model is for Internet connected users to simply
click on links to .cab files which automatically download and run. If I
create an install via a 3rd party, I would no longer be able to use this
simple deployment model, correct?

Ilya Tumanov [MS]

unread,
Mar 8, 2005, 6:10:28 PM3/8/05
to
You can install the database file to the application folder and choose to
install the application to the storage card if you have one.
That would ensure your application can be installed even if you do not have
storage card.
It's not a good idea to hardcode the storage card name.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> Date: Tue, 08 Mar 2005 14:53:35 -0700
> From: Brad Wood <bradley_.wood_@ndsu_.edu>
> User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
> X-Accept-Language: en-us, en
> MIME-Version: 1.0
> Subject: How to install file to storage card
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> Message-ID: <emO3nlCJ...@TK2MSFTNGP12.phx.gbl>
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: 66.28.162.30
> Lines: 1
> Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
2.phx.gbl
> Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.compactframework:72780
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Darren

unread,
Mar 8, 2005, 6:33:43 PM3/8/05
to
You will need to install the database to the CF card if the database is much
larger than the onboard memory.
SQL CE allows for databases as large as 2GB.


""Ilya Tumanov [MS]"" <ily...@online.microsoft.com> wrote in message
news:opLIGQDJ...@TK2MSFTNGXA02.phx.gbl...

Brad Wood

unread,
Mar 8, 2005, 8:15:25 PM3/8/05
to
Ilya Tumanov [MS] wrote:
> You can install the database file to the application folder and choose to
> install the application to the storage card if you have one.
> That would ensure your application can be installed even if you do not have
> storage card.

That's not at all what I need to accomplish. I want the application
installed on volatile memory except for my database; I need that on
non-volatile.

> It's not a good idea to hardcode the storage card name.

I know; that's why I posted this question. I could in fact easily
install my database to a memory card by hard coding the install path in
my cab file setup's .inf, but what I need to do is dynamically find the
path to a storag card (if one exists) and install my database there.

Brad Wood

unread,
Mar 8, 2005, 8:16:30 PM3/8/05
to
Darren wrote:
> You will need to install the database to the CF card if the database is much
> larger than the onboard memory.

Yes I know; I'm asking how this can be done...

Ilya Tumanov [MS]

unread,
Mar 9, 2005, 12:00:01 AM3/9/05
to
Granted, it's a little bit twisted, but it is what you're trying to
accomplish.
You can install data base to the application folder you can redirect to any
installed flash card.
That does not mean you have to install other files to the same location.
You can specify any location you want using available macros.
Allow me to demonstrate:

[Version]
Signature = "$Windows NT$"
Provider = "Some"
CESignature = "$Windows CE$"

[CEStrings]
AppName = "TEST"
InstallDir = %CE1%\%AppName%

[CEDevice]
UnsupportedPlatforms = "HPC","Jupiter"
BuildMax = 0xE0000000

[DefaultInstall]
CopyFiles = Files.Application,Files.DataBase

[DestinationDirs]
Files.Application = 0,%CE1%\%AppName%
Files.DataBase = 0,%InstallDir%

[Files.Application]
"app.txt",app.txt,,0x20000001

[Files.DataBase]
"db.txt",db.txt,,0x20000001

[SourceDisksNames]
1 = ,"Path",,

[SourceDisksFiles]
app.txt = 1
db.txt = 1

That would install db.txt to the storage at your choice (make sure
appropriate command line is used for WCELOAD).
And it would install app.txt to \Program Files\Test.

Alternative solution would be to copy the db file from setup DLL, but that
only would work if it's small enough.
Or, if you're using Active Sync for deployment, you could push DB file to
the storage card separately from the CAB using RAPI.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
> Date: Tue, 08 Mar 2005 18:15:25 -0700


> From: Brad Wood <bradley_.wood_@ndsu_.edu>
> User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
> X-Accept-Language: en-us, en
> MIME-Version: 1.0

> Subject: Re: How to install file to storage card
> References: <emO3nlCJ...@TK2MSFTNGP12.phx.gbl>
<opLIGQDJ...@TK2MSFTNGXA02.phx.gbl>
> In-Reply-To: <opLIGQDJ...@TK2MSFTNGXA02.phx.gbl>


> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit

> Message-ID: <ulzV6VEJ...@TK2MSFTNGP15.phx.gbl>


> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: 66.28.162.30
> Lines: 1
> Path:

TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP15.phx.gbl
> Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.compactframework:72799
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Brad Wood

unread,
Mar 9, 2005, 12:52:21 PM3/9/05
to
Ilya Tumanov [MS] wrote:
> That would install db.txt to the storage at your choice (make sure
> appropriate command line is used for WCELOAD).

So I tried to test out using wceload, and I'm at a loss. Running this
code does nothing:

using OpenNETCF.Diagnostics;
ProcessStartInfo pi = new ProcessStartInfo(@"\Windows\wceload.exe app.cab");
Process.Start( pi );

If I simply run Internet Explorer, it works. I've used Path.Exists to
verify that the paths to wceload.exe and app.cab (in root) as included
in the parameter to ProcessStartInfo are valid. app.cab is a valid cab
that executes fine on its own.

Chris Tacke, eMVP

unread,
Mar 9, 2005, 1:42:55 PM3/9/05
to
You're trying to start the CAB itself, not wceload. Start wceload with the
cab file path as the parameter.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate


"Brad Wood" <bradley_.wood_@ndsu_.edu> wrote in message
news:uwrj$CNJFH...@TK2MSFTNGP14.phx.gbl...

Ilya Tumanov [MS]

unread,
Mar 9, 2005, 2:25:40 PM3/9/05
to
I would guess you're using ProcessStartInfo incorrectly. Consider
installing console to your PPC for experiments.
Do not forget you need WCELOAD to ask you for destination. You should add
/askdest argument to a command line.
Should you use Active Sync for deployment, it would ask for destination.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
> Date: Wed, 09 Mar 2005 10:52:21 -0700


> From: Brad Wood <bradley_.wood_@ndsu_.edu>
> User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
> X-Accept-Language: en-us, en
> MIME-Version: 1.0
> Subject: Re: How to install file to storage card
> References: <emO3nlCJ...@TK2MSFTNGP12.phx.gbl>
<opLIGQDJ...@TK2MSFTNGXA02.phx.gbl>

<ulzV6VEJ...@TK2MSFTNGP15.phx.gbl>
<8VR5dTG...@TK2MSFTNGXA02.phx.gbl>
> In-Reply-To: <8VR5dTG...@TK2MSFTNGXA02.phx.gbl>


> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit

> Message-ID: <uwrj$CNJFH...@TK2MSFTNGP14.phx.gbl>


> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: 66.28.162.30
> Lines: 1
> Path:

TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
4.phx.gbl
> Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.compactframework:72859
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Brad Wood

unread,
Mar 9, 2005, 3:45:33 PM3/9/05
to
Chris Tacke, eMVP wrote:
> You're trying to start the CAB itself, not wceload. Start wceload with the
> cab file path as the parameter.
>

I don't understand; that's exactly what I'm doing. The paramater to
ProcessStartInfo is a command line (@"\Windows\wceload.exe app.cab").
It gives the path to wceload.exe and the path to the cab as wcload's
first parameter (app.cab is in the root).

Chris Tacke, eMVP

unread,
Mar 9, 2005, 4:44:33 PM3/9/05
to
Wow, how the hell did I miss that? I must need more coffee - sorry. try a
fully qualified path to the CAB.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate


"Brad Wood" <bradley_.wood_@ndsu_.edu> wrote in message

news:uD7txjOJ...@TK2MSFTNGP09.phx.gbl...

Brad Wood

unread,
Mar 9, 2005, 5:22:53 PM3/9/05
to
Ilya Tumanov [MS] wrote:
> Consider
> installing console to your PPC for experiments.

I installed "pocket console" and "cmd" from symbolictools. I'm not sure
that those tools are designed for Windows Mobile 2003 SE (screens
jumbled, console doesn't echo text, etc..), but it worked.
The app.txt file went to it's program files directory and the db.txt
file went where I directed it after prompting from wceload.

Is this because the destination for db.txt in the .inf file in your
example is "InstallDir" which does not yet exist that wceload knows to
prompt for the location to install that file while it doesn't prompt for
the location of the app.txt?

Ilya Tumanov [MS]

unread,
Mar 9, 2005, 6:15:24 PM3/9/05
to
No, that's because %InstallDir% is a special macro which can be substituted
upon installation.
Value you have to specify for InstallDir in CEStrings section is just a
default one.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
> Date: Wed, 09 Mar 2005 15:22:53 -0700


> From: Brad Wood <bradley_.wood_@ndsu_.edu>
> User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
> X-Accept-Language: en-us, en
> MIME-Version: 1.0
> Subject: Re: How to install file to storage card
> References: <emO3nlCJ...@TK2MSFTNGP12.phx.gbl>
<opLIGQDJ...@TK2MSFTNGXA02.phx.gbl>
<ulzV6VEJ...@TK2MSFTNGP15.phx.gbl>
<8VR5dTG...@TK2MSFTNGXA02.phx.gbl>

<uwrj$CNJFH...@TK2MSFTNGP14.phx.gbl>
<F8ddJ3N...@TK2MSFTNGXA02.phx.gbl>
> In-Reply-To: <F8ddJ3N...@TK2MSFTNGXA02.phx.gbl>


> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit

> Message-ID: <u#nMKaPJF...@TK2MSFTNGP10.phx.gbl>


> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: 66.28.162.30
> Lines: 1
> Path:

TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP10.phx.gbl
> Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.compactframework:72891
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

0 new messages