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

Re: Install database folder by marciocamurati

marciocamurati
Sat Jan 14 06:24:31 CST 2006

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

[]s


Re: Install database folder by Henrik

Henrik
Sat Jan 14 08:30:53 CST 2006

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
>



Re: Install database folder by Simon

Simon
Sat Jan 14 16:54:33 CST 2006

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
>
>



Re: Install database folder by Henrik

Henrik
Sun Jan 15 06:18:32 CST 2006

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
>>
>>
>
>



Re: Install database folder by Simon

Simon
Sun Jan 15 06:32:29 CST 2006

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
>>>
>>>
>>
>>
>
>



Re: Install database folder by Henrik

Henrik
Sun Jan 15 07:10:30 CST 2006

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?



Re: Install database folder by ctacke/>

ctacke/>
Sun Jan 15 07:21:21 CST 2006

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?
>
>



Re: Install database folder by Henrik

Henrik
Sun Jan 15 08:03:29 CST 2006

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



Re: Install database folder by ctacke/>

ctacke/>
Sun Jan 15 08:17:43 CST 2006

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
>
>



Re: Install database folder by Henrik

Henrik
Sun Jan 15 08:57:50 CST 2006

Where can I find the BAT file?

If it is the dos file BuildCab in the obj\Debug folder, nothing happens if I
push it?

Or is it the Batch Build in VB.Net ?






"<ctacke/>" <ctacke_AT_OpenNETCF_com> skrev i en meddelelse
news:O9Tt05dGGHA.3056@TK2MSFTNGP09.phx.gbl...
> 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.



Re: Install database folder by Simon

Simon
Sun Jan 15 10:08:19 CST 2006

Ensure you run the BuildCab.bat file from within the VS Command Prompt. You
are better off taking a copy of this batch file and placing it somewhere
else so it doesn't get recreated everytime your generate new cab files.
Then within this new file, modify the CabWiz path to your new .INF file.

Cheers
Simon.

"Henrik" <absalon@it.dk> wrote in message
news:eIqpOQeGGHA.3200@tk2msftngp13.phx.gbl...
> Where can I find the BAT file?
>
> If it is the dos file BuildCab in the obj\Debug folder, nothing happens if
> I push it?
>
> Or is it the Batch Build in VB.Net ?
>
>
>
>
>
>
> "<ctacke/>" <ctacke_AT_OpenNETCF_com> skrev i en meddelelse
> news:O9Tt05dGGHA.3056@TK2MSFTNGP09.phx.gbl...
>> 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.
>
>



Re: Install database folder by Henrik

Henrik
Sun Jan 15 11:21:22 CST 2006

thanks

"Simon Hart" <srhartone@[no spam]yahoo.com> skrev i en meddelelse
news:uPlZm3eGGHA.3056@TK2MSFTNGP09.phx.gbl...
> Ensure you run the BuildCab.bat file from within the VS Command Prompt.
> You are better off taking a copy of this batch file and placing it
> somewhere else so it doesn't get recreated everytime your generate new cab
> files.
> Then within this new file, modify the CabWiz path to your new .INF file.
>
> Cheers
> Simon.
>
> "Henrik" <absalon@it.dk> wrote in message
> news:eIqpOQeGGHA.3200@tk2msftngp13.phx.gbl...
>> Where can I find the BAT file?
>>
>> If it is the dos file BuildCab in the obj\Debug folder, nothing happens
>> if I push it?
>>
>> Or is it the Batch Build in VB.Net ?
>>
>>
>>
>>
>>
>>
>> "<ctacke/>" <ctacke_AT_OpenNETCF_com> skrev i en meddelelse
>> news:O9Tt05dGGHA.3056@TK2MSFTNGP09.phx.gbl...
>>> 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.
>>
>>
>
>