Custom INF Files section

  • Thread starter Thread starter chris-s
  • Start date Start date
C

chris-s

Hi folks,

I want to create a custom [Files.____] tag in my cab inf file so that I can
get some files to be installed in a specific folder, the \windows folder in
this case.

I cannot include these files in the [Files.Common] or [Files.Arm] since
these are set to be installed into the apps install dir.

I create all the entries for a new tag as below, but it will not work. The
new files do not get included into the cab, putting the files into the
[Files.Common] and it works ok. Any suggestions?



[SourceDisksNames]
9=,"Common9",,"D:\Source\VS.NET2003\MYFILES\"

[SourceDisksFiles]
MYWINDOWSFILE.DLL=9

[DestinationDirs]
Files.Windows=0,%CE2%

[Files.Windows]
MYWINDOWSFILE.DLL,,,0

Chris.
 
Sorry, I forgot to include in my sample....


[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common
CopyFiles=Files.Windows


Chris
 
Chris,
You need to add your new section (e.g. Files.MyNewFileBlock) to the default
install section, to the CopyFiles entry:

[SourceDisksFiles]
packman.exe=1
packman.lnk = 1

[DefaultInstall]
CopyFiles = Files1, Files2

[Files1]
packman.exe

[Files2]
packman.lnk

[DestinationDirs]
DefaultDestDir = 0,%InstallDir%
Files2 = 0,%CE17%

This installs the exe to its own default install location, but the link gets
put on the start menu.

Marcus
 
Needs to be comma separated, not two entries:
[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common, Files.Windows

That should do the trick.


chris-s said:
Sorry, I forgot to include in my sample....


[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common
CopyFiles=Files.Windows


Chris


chris-s said:
Hi folks,

I want to create a custom [Files.____] tag in my cab inf file so that I can
get some files to be installed in a specific folder, the \windows folder in
this case.

I cannot include these files in the [Files.Common] or [Files.Arm] since
these are set to be installed into the apps install dir.

I create all the entries for a new tag as below, but it will not work. The
new files do not get included into the cab, putting the files into the
[Files.Common] and it works ok. Any suggestions?



[SourceDisksNames]
9=,"Common9",,"D:\Source\VS.NET2003\MYFILES\"

[SourceDisksFiles]
MYWINDOWSFILE.DLL=9

[DestinationDirs]
Files.Windows=0,%CE2%

[Files.Windows]
MYWINDOWSFILE.DLL,,,0

Chris.
 
Thanks, that worked great.

Chris


Marcus Perryman said:
Needs to be comma separated, not two entries:
[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common, Files.Windows

That should do the trick.


chris-s said:
Sorry, I forgot to include in my sample....


[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common
CopyFiles=Files.Windows


Chris


chris-s said:
Hi folks,

I want to create a custom [Files.____] tag in my cab inf file so that
I
can
get some files to be installed in a specific folder, the \windows
folder
in
this case.

I cannot include these files in the [Files.Common] or [Files.Arm] since
these are set to be installed into the apps install dir.

I create all the entries for a new tag as below, but it will not work. The
new files do not get included into the cab, putting the files into the
[Files.Common] and it works ok. Any suggestions?



[SourceDisksNames]
9=,"Common9",,"D:\Source\VS.NET2003\MYFILES\"

[SourceDisksFiles]
MYWINDOWSFILE.DLL=9

[DestinationDirs]
Files.Windows=0,%CE2%

[Files.Windows]
MYWINDOWSFILE.DLL,,,0

Chris.
 
Back
Top