all groups > dotnet compact framework > december 2007 >
You're in the

dotnet compact framework

group:

CAB install file in root folder


CAB install file in root folder isineiro@gmail.com
12/21/2007 3:07:50 AM
dotnet compact framework:
Hi.

I want to generate a CAB which install a file in root folder. Inside
VS 2005 I can not put a file in root folder. I try to edit the .inf
file to generate the CAB mannually with cabwiz but give me errors.

..inf file
---------------

[SourceDisksFiles]
"System.Data.SQLite.dll"=1

[DestinationDirs]
Files.Common1=0,""

[Files.Common1]
"System.Data.SQLite.dll","System.Data.SQLite.dll",,0


----------------
CabWiz.log
----------------

Error: Section [DestinationDirs] key "Files.Common1" requires valid
data

.....

What I'm doing incorrectly?

Thanks in advance.

Re: CAB install file in root folder isineiro@gmail.com
12/21/2007 7:57:39 AM
Hi.

I had also tried with "\" but didn't works. Gives me another error.

--- .inf ----

[SourceDisksNames]
1=,"Common1",,"C:\Archivos de programa\SQLite.NET\bin\CompactFramework
\"

[SourceDisksFiles]
"System.Data.SQLite.dll"=1

[DestinationDirs]
Files.Common1=0,"\"

--- Cabwiz.log ----
Error: Section [DestinationDirs] not successfully processed

[quoted text, click to view]
Re: CAB install file in root folder ctacke/
12/21/2007 8:56:18 AM
The root destination is not an empty string, it would be "\"


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


[quoted text, click to view]

Re: CAB install file in root folder Simon Hart [MVP]
12/22/2007 8:37:00 AM
Try using double slash "\\".
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


[quoted text, click to view]
Re: CAB install file in root folder isineiro@gmail.com
12/24/2007 4:46:35 AM
Hi.

Using double slash "\\" gives me the same error.

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"\\"

CabWiz.log
-------
Error: Section [DestinationDirs] not successfully processed

Iago.

[quoted text, click to view]
Re: CAB install file in root folder Simon Hart [MVP]
12/24/2007 5:22:01 AM
Could you post the whole INF file here please.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


[quoted text, click to view]
Re: CAB install file in root folder isineiro@gmail.com
12/26/2007 12:36:14 AM
Hi, Simon.

This is the content of the file instalacionInventario.inf

instalacionInventario.inf
----------------------------------

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

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

[Strings]
Manufacturer="SNL"

[CEDevice]
VersionMin=4.0
VersionMax=6.99
BuildMax=0xE0000000

[DefaultInstall]
CEShortcuts=Shortcuts
AddReg=RegKeys
CopyFiles=Files.Common1,Files.Common2

[SourceDisksNames]
1=,"Common1",,"C:\Archivos de programa\SQLite.NET\bin\CompactFramework
\"
2=,"Common2",,"D:\Proyectos\Visual .Net 2005\pda\inventario\obj\Release
\"

[SourceDisksFiles]
"System.Data.SQLite.dll"=1
"inventario.exe"=2

[DestinationDirs]
Shortcuts=0,%CE2%\Start Menu
Files.Common1=0,"\\"
Files.Common2=0,"SNL\Inventario"

[Files.Common1]
"System.Data.SQLite.dll","System.Data.SQLite.dll",,0

[Files.Common2]
"inventario.exe","inventario.exe",,0


[Shortcuts]
"Inventario",0,"inventario.exe","%CE11%"
"Inventario",0,"inventario.exe","Windows\Desktop"
"Inventario",0,"inventario.exe","%CE17%"

[RegKeys]

--- End of instalacionInventario.inf ----

[quoted text, click to view]
Re: CAB install file in root folder Christopher Fairbairn
1/7/2008 12:00:00 AM
Hi,

[quoted text, click to view]

Generally installing files into the root folder of the filesystem is a bad
thing to be doing.

For example by doing this you don't give the user a chance to decide to
install their application(s) onto a removeable SD Card, since the files will
end up in the root folder even if the user selects their storage card as the
desired installation folder when installing the CAB file.

It is better to use the "relative" directories such as "program files" which
will resolve to a different path depending upon the user's desired
installation target.

Can you describe the need to place System.Data.SQLite.dll within the root
folder in more detail? From the name of the dll, it would appear that that
it would be better to place this file within the Global Assembly Cache (GAC)
since it would appear to be reusable by multiple application. If it is only
utilised by your own application it would be more advisable to install the
assembly within your main application directory.

Thanks,
Christopher Fairbairn
AddThis Social Bookmark Button