PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Install database folder
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Install database folder
![]() |
Install database folder |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
A doubt you create your DB at your application or you add the DB to
your application at the project with the VS ? []s |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 >> >> > > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
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 >>> >>> >> >> > > |
|
|
|
#7 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#8 |
|
Guest
Posts: n/a
|
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? > > |
|
|
|
#9 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#10 |
|
Guest
Posts: n/a
|
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 > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

