CAB install file in root folder

I

isineiro

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.

Iago.
 
I

isineiro

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

The root destination is not an empty string, it would be "\"

--

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


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

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

What I'm doing incorrectly?
Thanks in advance.
 
S

Simon Hart [MVP]

Try using double slash "\\".
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


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

The root destination is not an empty string, it would be "\"

--

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


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

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

What I'm doing incorrectly?
Thanks in advance.
 
I

isineiro

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.

Try using double slash "\\".
--
Simon Hart
Visual Developer - Device Application Development MVPhttp://simonrhart.blogspot.com

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
The root destination is not an empty string, it would be "\"
--
Chris Tacke, eMVP
Join the Embedded Developer Communityhttp://community.opennetcf.com

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.
Iago.
 
S

Simon Hart [MVP]

Could you post the whole INF file here please.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


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.

Try using double slash "\\".
--
Simon Hart
Visual Developer - Device Application Development MVPhttp://simonrhart.blogspot.com

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
On 21 dic, 15:56, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
The root destination is not an empty string, it would be "\"

Chris Tacke, eMVP
Join the Embedded Developer Communityhttp://community.opennetcf.com
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

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

What I'm doing incorrectly?
Thanks in advance.
 
I

isineiro

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

Could you post the whole INF file here please.
--
Simon Hart
Visual Developer - Device Application Development MVPhttp://simonrhart.blogspot.com

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

Try using double slash "\\".
--
Simon Hart
Visual Developer - Device Application Development MVPhttp://simonrhart.blogspot.com
:
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
On 21 dic, 15:56, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
The root destination is not an empty string, it would be "\"
--
Chris Tacke, eMVP
Join the Embedded Developer Communityhttp://community.opennetcf.com

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.
Iago.
 
C

Christopher Fairbairn

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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top