PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Install database folder

Reply

Install database folder

 
Thread Tools Rate Thread
Old 14-01-2006, 09:16 AM   #1
Henrik
Guest
 
Posts: n/a
Default Install database folder


I have in my project add a database, but when I made a cab file, and install
it, the database is install in the same folder as the program.

How due I get the database install in the "My Documents" folder?



Henrik

Denmark


  Reply With Quote
Old 14-01-2006, 12:24 PM   #2
marciocamurati
Guest
 
Posts: n/a
Default Re: Install database folder

A doubt you create your DB at your application or you add the DB to
your application at the project with the VS ?

[]s

  Reply With Quote
Old 14-01-2006, 02:30 PM   #3
Henrik Absalon
Guest
 
Posts: n/a
Default Re: Install database folder

Yes I add the DB to my projekt with the VS, but I can't get it in the right
folder!

Henrik

"marciocamurati" <marcio.camurati@gmail.com> skrev i en meddelelse
news:1137241471.498629.275280@g43g2000cwa.googlegroups.com...
>A doubt you create your DB at your application or you add the DB to
> your application at the project with the VS ?
>
> []s
>



  Reply With Quote
Old 14-01-2006, 10:54 PM   #4
Simon Hart
Guest
 
Posts: n/a
Default Re: Install database folder

Try checking the .INF file for the correct deployment path.

"Henrik" <absalon@it.dk> wrote in message
news:ugBoCtOGGHA.1180@TK2MSFTNGP09.phx.gbl...
>I have in my project add a database, but when I made a cab file, and
>install it, the database is install in the same folder as the program.
>
> How due I get the database install in the "My Documents" folder?
>
>
>
> Henrik
>
> Denmark
>
>



  Reply With Quote
Old 15-01-2006, 12:18 PM   #5
Henrik
Guest
 
Posts: n/a
Default Re: Install database folder

Where can I find the ini file?


"Simon Hart" <srhartone@[no spam]yahoo.com> skrev i en meddelelse
news:OevO91VGGHA.1100@TK2MSFTNGP10.phx.gbl...
> Try checking the .INF file for the correct deployment path.
>
> "Henrik" <absalon@it.dk> wrote in message
> news:ugBoCtOGGHA.1180@TK2MSFTNGP09.phx.gbl...
>>I have in my project add a database, but when I made a cab file, and
>>install it, the database is install in the same folder as the program.
>>
>> How due I get the database install in the "My Documents" folder?
>>
>>
>>
>> Henrik
>>
>> Denmark
>>
>>

>
>



  Reply With Quote
Old 15-01-2006, 12:32 PM   #6
Simon Hart
Guest
 
Posts: n/a
Default Re: Install database folder

It's an .INF file not .INI file. You can find it in your release
directory/debug of your CAB project. When you look in the .INF check the
section labeled [DestinationDirs].



"Henrik" <absalon@it.dk> wrote in message
news:%233xaN3cGGHA.2444@TK2MSFTNGP11.phx.gbl...
> Where can I find the ini file?
>
>
> "Simon Hart" <srhartone@[no spam]yahoo.com> skrev i en meddelelse
> news:OevO91VGGHA.1100@TK2MSFTNGP10.phx.gbl...
>> Try checking the .INF file for the correct deployment path.
>>
>> "Henrik" <absalon@it.dk> wrote in message
>> news:ugBoCtOGGHA.1180@TK2MSFTNGP09.phx.gbl...
>>>I have in my project add a database, but when I made a cab file, and
>>>install it, the database is install in the same folder as the program.
>>>
>>> How due I get the database install in the "My Documents" folder?
>>>
>>>
>>>
>>> Henrik
>>>
>>> Denmark
>>>
>>>

>>
>>

>
>



  Reply With Quote
Old 15-01-2006, 01:10 PM   #7
Henrik
Guest
 
Posts: n/a
Default Re: Install database folder

I found it, but the database file was not in the [DestinationDirs]



[DestinationDirs]

Files.Common=0,%InstallDir%

Shortcuts=0,%CE2%\Start Menu

Files.ARMV4=0,%InstallDir%

Files.ARM=0,%InstallDir%

Files.SH3=0,%InstallDir%

Files.MIPS=0,%InstallDir%

Files.X86=0,%InstallDir%

Files.WCE420X86=0,%InstallDir%



I found the file in:



[SourceDisksFiles]

Scubase PPC.exe=1

FISH.BMP=2

PIN.BMP=3

scubase.ico=4

Scubase.sdf=5 - Here is the file

scubase1.ico=6



And in:



[Files.Common]

Scubase PPC.exe,,,0

FISH.BMP,,,0

PIN.BMP,,,0

scubase.ico,,,0

Scubase.sdf,,,0 - Here it is.

scubase1.ico,,,0



Can you help me?


  Reply With Quote
Old 15-01-2006, 01:21 PM   #8
Guest
 
Posts: n/a
Default Re: Install database folder

Right. All items marked as Files.Common go to %InstallDir%, which is
defined in Strings. I wouldn't have structered my INF quite this way, so
the fix is a bit of a pain to stick with theirs, but it would be like this.
First, remove the reference to the SDF in the Files.Common section. Then
add this:

[Files.Database]
Scubase.sdf,,,0

Now under the [DestinationDirs] section, add the following:

Files.Database=0,"\My Documents"

Of course that should be a localizes string, which is something like %CE2%
for My Documents, but I don't recall it off the top of my head, so I'll let
you Google for the right one.

-Chris


"Henrik" <absalon@it.dk> wrote in message
news:ua$MQUdGGHA.648@TK2MSFTNGP14.phx.gbl...
>I found it, but the database file was not in the [DestinationDirs]
>
>
>
> [DestinationDirs]
>
> Files.Common=0,%InstallDir%
>
> Shortcuts=0,%CE2%\Start Menu
>
> Files.ARMV4=0,%InstallDir%
>
> Files.ARM=0,%InstallDir%
>
> Files.SH3=0,%InstallDir%
>
> Files.MIPS=0,%InstallDir%
>
> Files.X86=0,%InstallDir%
>
> Files.WCE420X86=0,%InstallDir%
>
>
>
> I found the file in:
>
>
>
> [SourceDisksFiles]
>
> Scubase PPC.exe=1
>
> FISH.BMP=2
>
> PIN.BMP=3
>
> scubase.ico=4
>
> Scubase.sdf=5 - Here is the file
>
> scubase1.ico=6
>
>
>
> And in:
>
>
>
> [Files.Common]
>
> Scubase PPC.exe,,,0
>
> FISH.BMP,,,0
>
> PIN.BMP,,,0
>
> scubase.ico,,,0
>
> Scubase.sdf,,,0 - Here it is.
>
> scubase1.ico,,,0
>
>
>
> Can you help me?
>
>



  Reply With Quote
Old 15-01-2006, 02:03 PM   #9
Henrik
Guest
 
Posts: n/a
Default Re: Install database folder

I made the change in the inf file, then I open VS and use "Build Cab File"
to make new cab file, but then is the change I made in the inf file gone?







"<ctacke/>" <ctacke_AT_OpenNETCF_com> skrev i en meddelelse
news:uWM$UadGGHA.2948@TK2MSFTNGP10.phx.gbl...
> Right. All items marked as Files.Common go to %InstallDir%, which is
> defined in Strings. I wouldn't have structered my INF quite this way, so
> the fix is a bit of a pain to stick with theirs, but it would be like
> this. First, remove the reference to the SDF in the Files.Common section.
> Then add this:
>
> [Files.Database]
> Scubase.sdf,,,0
>
> Now under the [DestinationDirs] section, add the following:
>
> Files.Database=0,"\My Documents"
>
> Of course that should be a localizes string, which is something like %CE2%
> for My Documents, but I don't recall it off the top of my head, so I'll
> let you Google for the right one.
>
> -Chris



  Reply With Quote
Old 15-01-2006, 02:17 PM   #10
Guest
 
Posts: n/a
Default Re: Install database folder

The "Build CAB Files" menu overwrites the INF every time. Use the BAT file
that it generates to re-gen the cabs after the first try.

-Chris


"Henrik" <absalon@it.dk> wrote in message
news:%23uVB3xdGGHA.1552@TK2MSFTNGP10.phx.gbl...
>I made the change in the inf file, then I open VS and use "Build Cab File"
>to make new cab file, but then is the change I made in the inf file gone?
>
>
>
>
>
>
>
> "<ctacke/>" <ctacke_AT_OpenNETCF_com> skrev i en meddelelse
> news:uWM$UadGGHA.2948@TK2MSFTNGP10.phx.gbl...
>> Right. All items marked as Files.Common go to %InstallDir%, which is
>> defined in Strings. I wouldn't have structered my INF quite this way, so
>> the fix is a bit of a pain to stick with theirs, but it would be like
>> this. First, remove the reference to the SDF in the Files.Common section.
>> Then add this:
>>
>> [Files.Database]
>> Scubase.sdf,,,0
>>
>> Now under the [DestinationDirs] section, add the following:
>>
>> Files.Database=0,"\My Documents"
>>
>> Of course that should be a localizes string, which is something like
>> %CE2% for My Documents, but I don't recall it off the top of my head, so
>> I'll let you Google for the right one.
>>
>> -Chris

>
>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off