Help - Search - Members - Calendar
Full Version: Neep help with this INF file
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Worf
Hi.

I am learning to write inf file to install some programs, the ones i have done so far install ok but for some reason this one does not and i have used one of the others as a template.

CODE

[Version]
Signature="$WINDOWS NT$"

[Optional Components]
retrogames

[retrogames]
OptionDesc = "Retro Games"
Tip = "Play Retro Games From The Past On Your PC."
Modes = 0,1,2,3
Copyfiles = CopyChronosMain,CopyChronosFont,CopyChronosLevel,CopyChronosSfx,CopyChronosGfx

[SourceDisksNames.x86]
1 = "Retro Game Files","retro.cab",,"i386"

[DestinationDirs]
CopyChronosMain = 16422,%CHRONOSMAIN%
CopyChronosFont = 16422,%CHRONOSFONT%
CopyChronosLevel = 16422,%CHRONOSLEVEL%
CopyChronosSfx = 16422,%CHRONOSSFX%
CopyChronosGfx = 16422,%CHRONOSGFX%

[SourceDisksFiles]
Chronos.exe =1
Chronos.html =1
Chronos.png =1
Chronos2.png =1
Chronos2.png.jfm =1
Chronos3.png =1
Chronos3.png.jfm =1
Chronos.png.jfm =1
Style.css =1
hiscore.dat =1
levelhigh.dat =1
levelmid.dat =1
levellow.dat =1
profile.dat =1
beep.wav =1
chrono.mp3 =1
explodemid.wav =1
levelbonus.wav =1
timegate.wav =1
vbonus.wav =1
vgameover.wav =1
vmulti.wav =1
vshield.wav =1
vtarget50.wav =1
vtimefield.wav =1
vtriple.wav =1
beeplow.wav =1
explode.wav =1
laser.wav =1
stun.wav =1
turret.wav =1
vexlife.wav =1
vlbonus.wav =1
vreact.wav =1
vtarget25.wav =1
vtargetdestroyed.wav =1
vtitle.wav =1
zap.wav =1
background.png =1
ballnasty.png =1
bonusbooster.png =1
bonuslevel.png =1
bonusmulti.png =1
bonusscore.png =1
bonusshield.png =1
bonustriple.png =1
border.png =1
bullet.png =1
bullet-x.png =1
coinnasty.png =1
down.png =1
endboss.png =1
explosion.png =1
eyes.png =1
lasburst.png =1
logo.png =1
logo2.png =1
mcursor.png =1
missilenasty.png =1
pulse.png =1
pulse2.png =1
pulse3.png =1
saurcernasty.png =1
shield.png =1
ship.png =1
shipflame.png =1
slabnasty.png =1
smoke.png =1
splash.png =1
squarenasty.png =1
stars.png =1
system.png =1
tbullet.png =1
title.png =1
up.png =1
warp.png =1
world.png =1
yingnasty.png =1

[CopyChronosMain]
Chronos.exe
Chronos.html

[CopyChronosFont]
chronos.png
chronos.png.jfm
chronos2.png
chronos2.png.jfm
chronos3.png
chronos3.png.jfm
style.css

[CopyChronosLevel]
hiscore.dat
levelhigh.dat
levelmid.dat
levellow.dat
profile.dat

[CopyChronosSfx]
beep.wav
chrono.mp3
explodemid.wav
levelbonus.wav
timegate.wav
vbonus.wav
vgameover.wav
vmulti.wav
vshield.wav
vtarget50.wav
vtimefield.wav
vtriple.wav
beeplow.wav
explode.wav
laser.wav
stun.wav
turret.wav
vexlife.wav
vlbonus.wav
vreact.wav
vtarget25.wav
vtargetdestroyed.wav
vtitle.wav
zap.wav

[CopyChronosGfx]
background.png
ballnasty.png
bonusbooster.png
bonuslevel.png
bonusmulti.png
bonusscore.png
bonusshield.png
bonustriple.png
border.png
bullet.png
bullet-x.png
coinnasty.png
down.png
endboss.png
explosion.png
eyes.png
lasburst.png
logo.png
logo2.png
mcursor.png
missilenasty.png
pulse.png
pulse2.png
pulse3.png
saucernasty.png
shield.png
ship.png
shipflame.png
slabnasty.png
smoke.png
splash.png
squarenasty.png
stars.png
system.png
tbullet.png
title.png
up.png
warp.png
world.png
yingnasty.png

[Strings]
RETROGAMES = "Retro Games"
CHRONOSMAIN = "Retro Games\Chronos"
CHRONOSFONT = "Retro Games\Chronos\Font"
CHRONOSLEVEL = "Retro Games\Chronos\Level"
CHRONOSSFX = "Retro Games\Chronos\Sfx"
CHRONOSGFX = "Retro Games\Chronos\Gfx"



Many Thanks For Any Help

Worf
Yzöwl
Would it have something to do with using unquoted destination directories containing spaces?
ricktendo64
I wanna recommend to you a program by n7Epilson called FGCBA, you use it to test your entries.ini and inf files

CODE
**** FGCBA 0.897 * by n7Epsilon * http://tinyurl.com/lslmm ****
- Starting Logger "All your bug are report by me!!" -

I: Date/Time of execution: 4/1/2008 10:27:57 PM UTC

I: Specified Parameters:
* C:\Documents and Settings\Administrator\Desktop\test.inf
* /log:C:\Documents and Settings\Administrator\Desktop\log_test.txt

I: Dump of ParamsTable (ArgumentParser v2):
* log = C:\Documents and Settings\Administrator\Desktop\log_test.txt


I: ExtINFParser engaged, attempting read "test.inf"

** Reading INF file: test.inf...
I: Read variables in [Strings] section:
RETROGAMES = "Retro Games"
CHRONOSMAIN = "Retro Games\Chronos"
CHRONOSFONT = "Retro Games\Chronos\Font"
CHRONOSLEVEL = "Retro Games\Chronos\Level"
CHRONOSSFX = "Retro Games\Chronos\Sfx"
CHRONOSGFX = "Retro Games\Chronos\Gfx"

- Warn: [DefaultInstall] section does not exist in test.inf
* Parsing [Optional Components] section...
* Parsing [retrogames] section...
- Processing CopyFiles directive...
* Parsing [SourceDisksNames.x86] section...
* Parsing [SourceDisksFiles] section...
* Parsing [DestinationDirs] section...
- Parsing [CopyChronosMain] section...
- Parsing [CopyChronosFont] section...
- Parsing [CopyChronosLevel] section...
- Parsing [CopyChronosSfx] section...
- Parsing [CopyChronosGfx] section...
- Error: Orphaned file "saucernasty.png" in [CopyChronosGfx] This file was never referenced by [SourceDisksFiles] in test.inf!
- Error: "saurcernasty.png" is specified in [SourceDisksFiles] but not in any of the CopyFiles sections in test.inf!

!- 1 warning(s):
- [DefaultInstall] section does not exist in test.inf
!- 1 warning(s).

!- 2 error(s):
- Orphaned file "saucernasty.png" in [CopyChronosGfx] This file was never
referenced by [SourceDisksFiles] in test.inf!

- "saurcernasty.png" is specified in [SourceDisksFiles] but not in any of the
CopyFiles sections in test.inf!
!- 2 error(s).

!!!!- Critical error(s) detected, process aborted.

- Stopping Logger -

It says you have a typo. The SourceDisksFiles and CopyFiles filename do not match

QUOTE
[SourceDisksFiles]
saurcernasty.png =1

[CopyChronosGfx]
saucernasty.png

Yzöwl the spaces wont hurt if they are already quoted in strings
Worf
Well ricktendo64, you have done it again thanks alot. I can now move on thumbup.gif

How i missed that i dont know, i had completely rewritten the inf file and still made a typo, thanks for the program, will sure use that to check my infs.

Once again thank you

Worf
LUZR4LIFE
QUOTE (ricktendo64 @ Apr 1 2008, 06:30 PM) *
I wanna recommend to you a program by n7Epilson called FGCBA, you use it to test your entries.ini and inf files

CODE
**** FGCBA 0.897 * by n7Epsilon * http://tinyurl.com/lslmm ****
- Starting Logger "All your bug are report by me!!" -

I: Date/Time of execution: 4/1/2008 10:27:57 PM UTC

I: Specified Parameters:
* C:\Documents and Settings\Administrator\Desktop\test.inf
* /log:C:\Documents and Settings\Administrator\Desktop\log_test.txt

I: Dump of ParamsTable (ArgumentParser v2):
* log = C:\Documents and Settings\Administrator\Desktop\log_test.txt


I: ExtINFParser engaged, attempting read "test.inf"

** Reading INF file: test.inf...
I: Read variables in [Strings] section:
RETROGAMES = "Retro Games"
CHRONOSMAIN = "Retro Games\Chronos"
CHRONOSFONT = "Retro Games\Chronos\Font"
CHRONOSLEVEL = "Retro Games\Chronos\Level"
CHRONOSSFX = "Retro Games\Chronos\Sfx"
CHRONOSGFX = "Retro Games\Chronos\Gfx"

- Warn: [DefaultInstall] section does not exist in test.inf
* Parsing [Optional Components] section...
* Parsing [retrogames] section...
- Processing CopyFiles directive...
* Parsing [SourceDisksNames.x86] section...
* Parsing [SourceDisksFiles] section...
* Parsing [DestinationDirs] section...
- Parsing [CopyChronosMain] section...
- Parsing [CopyChronosFont] section...
- Parsing [CopyChronosLevel] section...
- Parsing [CopyChronosSfx] section...
- Parsing [CopyChronosGfx] section...
- Error: Orphaned file "saucernasty.png" in [CopyChronosGfx] This file was never referenced by [SourceDisksFiles] in test.inf!
- Error: "saurcernasty.png" is specified in [SourceDisksFiles] but not in any of the CopyFiles sections in test.inf!

!- 1 warning(s):
- [DefaultInstall] section does not exist in test.inf
!- 1 warning(s).

!- 2 error(s):
- Orphaned file "saucernasty.png" in [CopyChronosGfx] This file was never
referenced by [SourceDisksFiles] in test.inf!

- "saurcernasty.png" is specified in [SourceDisksFiles] but not in any of the
CopyFiles sections in test.inf!
!- 2 error(s).

!!!!- Critical error(s) detected, process aborted.

- Stopping Logger -

It says you have a typo. The SourceDisksFiles and CopyFiles filename do not match

QUOTE
[SourceDisksFiles]
saurcernasty.png =1

[CopyChronosGfx]
saucernasty.png

Yzöwl the spaces wont hurt

D A M N you Rick. LMAO.
Worf
One other problem i need help with. My ProfileItems not creating a shortcut to the .EXE files, i've tried many ways but just can't get it to create the shortcut on the start menu, i've looked at how it is done and just copied it but still can't get it to work.


Many Thanks

Worf
Gorki
Did you update your .inf so it looks something like this? You must create ProfileItems first.
This should do the work...

QUOTE
[retrogames]
OptionDesc = "Retro Games"
Tip = "Play Retro Games From The Past On Your PC."
Modes = 0,1,2,3
Copyfiles = CopyChronosMain,CopyChronosFont,CopyChronosLevel,CopyChronosSfx,CopyChronosGfx
ProfileItems=RG.AddShortcut

...
...
...

[RG.AddShortcut]
Name =Retro Games
CmdLine =16422,%CHRONOSMAIN%,Chronos.exe
SubDir =%CHRONOSMAIN%
WorkingDir =16422,%CHRONOSMAIN%
InfoTip =Retro Games
Worf
Yep thats what i have done but it just wont create the shortcuts in the start menu as below.

The destination dir is Program Files\Retro Games\Chronos

Start Menu\Retro Games\Chronos\Chronos.exe

ProfileItems = Chronos.AddShortcut

[Chronos.AddShortcut]
Name = Chronos
CmdLine = 16422,%CHRONOSMAIN%,Chronos.exe
SubDir = %CHRONOSMAIN%
WorkingDir = 16422,%CHRONOSMAIN%
InfoTip = An Old Spectrum Game


My other .inf file creates a shortcut but for some reason this one does not. Any other ideas?

Many Thanks
Yzöwl
Guess what?

I bet you knew I was going to say this, but.…

Did the working ones have spaces in their paths?
ricktendo64
Did you by any chance add a [DefaultInstall] section with the same stuff thats under your OCEntry?

BTW the shortcut code looks good, it should be working
Worf
Hi Rick.

I've removed the spaces in the pathadd added the DefaultInstall and still no shortcut mad.gif
below is the inf file again.

CODE
[Version]
Signature="$WINDOWS NT$"

[DefaultInstall]
Modes = 0,1,2,3
Copyfiles = CopyChronosMain,CopyChronosFont,CopyChronosLevel,CopyChronosSfx,CopyChronosGfx
ProfileItems = Chronos.AddShortcut

[Optional Components]
retrogames

[retrogames]
OptionDesc = "Retro Games"
Tip = "Play Retro Games From The Past On Your PC."
Modes = 0,1,2,3
Copyfiles = CopyChronosMain,CopyChronosFont,CopyChronosLevel,CopyChronosSfx,CopyChronosGfx
ProfileItems = Chronos.AddShortcut

[SourceDisksNames.x86]
1 = "Retro Game Files","retro.cab",,"i386"


[DestinationDirs]
CopyChronosMain = 16422,%CHRONOSMAIN%
CopyChronosFont = 16422,%CHRONOSFONT%
CopyChronosLevel = 16422,%CHRONOSLEVEL%
CopyChronosSfx = 16422,%CHRONOSSFX%
CopyChronosGfx = 16422,%CHRONOSGFX%

[SourceDisksFiles]
Chronos.exe =1
Chronos.htm =1
Chronos.png =1
Chronos2.png =1
Chronos2.png.jfm =1
Chronos3.png =1
Chronos3.png.jfm =1
Chronos.png.jfm =1
Style.css =1
hiscore.dat =1
levelhigh.dat =1
levelmid.dat =1
levellow.dat =1
profile.dat =1
beep.wav =1
chrono.mp3 =1
explodemid.wav =1
levelbonus.wav =1
timegate.wav =1
vbonus.wav =1
vgameover.wav =1
vmulti.wav =1
vshield.wav =1
vtarget50.wav =1
vtimefield.wav =1
vtriple.wav =1
beeplow.wav =1
explode.wav =1
laser.wav =1
stun.wav =1
turret.wav =1
vexlife.wav =1
vlbonus.wav =1
vreact.wav =1
vtarget25.wav =1
vtargetdestroyed.wav =1
vtitle.wav =1
zap.wav =1
background.png =1
ballnasty.png =1
bonusbooster.png =1
bonuslevel.png =1
bonusmulti.png =1
bonusscore.png =1
bonusshield.png =1
bonustriple.png =1
border.png =1
bullet.png =1
bullet-x.png =1
coinnasty.png =1
down.png =1
endboss.png =1
explosion.png =1
eyes.png =1
lasburst.png =1
logo.png =1
logo2.png =1
mcursor.png =1
missilenasty.png =1
pulse.png =1
pulse2.png =1
pulse3.png =1
saurcernasty.png =1
shield.png =1
ship.png =1
shipflame.png =1
slabnasty.png =1
smoke.png =1
splash.png =1
squarenasty.png =1
stars.png =1
system.png =1
tbullet.png =1
title.png =1
up.png =1
warp.png =1
world.png =1
yingnasty.png =1


[CopyChronosMain]
Chronos.exe
Chronos.htm


[CopyChronosFont]
chronos.png
chronos.png.jfm
chronos2.png
chronos2.png.jfm
chronos3.png
chronos3.png.jfm
style.css

[CopyChronosLevel]
hiscore.dat
levelhigh.dat
levelmid.dat
levellow.dat
profile.dat

[CopyChronosSfx]
beep.wav
chrono.mp3
explodemid.wav
levelbonus.wav
timegate.wav
vbonus.wav
vgameover.wav
vmulti.wav
vshield.wav
vtarget50.wav
vtimefield.wav
vtriple.wav
beeplow.wav
explode.wav
laser.wav
stun.wav
turret.wav
vexlife.wav
vlbonus.wav
vreact.wav
vtarget25.wav
vtargetdestroyed.wav
vtitle.wav
zap.wav


[CopyChronosGfx]
background.png
ballnasty.png
bonusbooster.png
bonuslevel.png
bonusmulti.png
bonusscore.png
bonusshield.png
bonustriple.png
border.png
bullet.png
bullet-x.png
coinnasty.png
down.png
endboss.png
explosion.png
eyes.png
lasburst.png
logo.png
logo2.png
mcursor.png
missilenasty.png
pulse.png
pulse2.png
pulse3.png
saurcernasty.png
shield.png
ship.png
shipflame.png
slabnasty.png
smoke.png
splash.png
squarenasty.png
stars.png
system.png
tbullet.png
title.png
up.png
warp.png
world.png
yingnasty.png


[Chronos.AddShortcut]
Name = Chronos
CmdLine = 16422,%CHRONOSMAIN%,Chronos.exe
SubDir = %CHRONOSMAIN%
WorkingDir = 16422,%CHRONOSMAIN%
InfoTip = An Old Spectrum Clasic Game


[Strings]
CHRONOSMAIN = "Retro Games\Chronos"
CHRONOSFONT = "Retro Games\Chronos\Font"
CHRONOSLEVEL = "Retro Games\Chronos\Level"
CHRONOSSFX = "Retro Games\Chronos\Sfx"
CHRONOSGFX = "Retro Games\Chronos\Gfx"



below is an inf file i did that creates a shortcut

CODE
[Version]
Signature="$WINDOWS NT$"
Product=%product%
Version=%version%

[Optional Components]
pagedfrg

[pagedfrg]
OptionDesc = "Page Defrag"
Tip = "Defrags System File On Bootup"
Modes = 0,1,2,3
Copyfiles = DestGrp,DestGrp1
AddReg = PagedFrg_Reg
ProfileItems = PagedfrgInstallItems,PagedfrgInstallHelp

[SourceDisksNames.x86]
1 = "pagedfrg",\win51ip,,\i386

[SourceDisksFiles]
pagedfrg.exe =1
pagedfrg.hlp =1

[DestinationDirs]
DestGrp = 10
DestGrp1 = 18

[DestGrp]
pagedfrg.exe

[DestGrp1]
pagedfrg.hlp

PagedfrgInstallItems]
Name = Page Defrag
CmdLine = 10,,Pagedfrg.exe
SubDir = System Tools
WorkingDir = 10
pagedfrg_InfoTip = "Defrags System File On Bootup"

[PagedfrgInstallHelp]
Name = Page Defrag Help
CmdLine = 18,,Pagedfrg.hlp
SubDir = System Tools
WorkingDir =18

[pagedFrg_Reg]
HKCU,"Software\Sysinternals\PageDefrag","EulaAccepted",0x10001,01

[Strings]
Product="Pagedfrg"
Version="1.0"



I am pulling my hair out here
Yzöwl
QUOTE
CHRONOSMAIN = "Retro Games\Chronos"
CHRONOSFONT = "Retro Games\Chronos\Font"
CHRONOSLEVEL = "Retro Games\Chronos\Level"
CHRONOSSFX = "Retro Games\Chronos\Sfx"
CHRONOSGFX = "Retro Games\Chronos\Gfx"
I'm still seeing spaces!!!
Worf
Hi Yzöwl

I removed Games in "Retro Games" as you can see below, but the shortcuts are still not being created.

CHRONOSMAIN = "Retro\Chronos"

As i said before the inf file 'pagedfrg' creates the shortcut.

I am wondering if it the one in bold that is the problem? I will try it out and report back

[Chronos.AddShortcut]
Name = Chronos
CmdLine = 16422,%CHRONOSMAIN%,Chronos.exe
SubDir = %CHRONOSMAIN%
WorkingDir = 16422,%CHRONOSMAIN%
InfoTip = An Old Spectrum Clasic Game
LUZR4LIFE
QUOTE (Worf @ Apr 2 2008, 04:48 PM) *
Hi Yzöwl

I removed Games in "Retro Games" as you can see below, but the shortcuts are still not being created.

CHRONOSMAIN = "Retro\Chronos"

As i said before the inf file 'pagedfrg' creates the shortcut.

I am wondering if it the one in bold that is the problem? I will try it out and report back

[Chronos.AddShortcut]
Name = Chronos
CmdLine = 16422,%CHRONOSMAIN%,Chronos.exe
SubDir = %CHRONOSMAIN%
WorkingDir = 16422,%CHRONOSMAIN%
InfoTip = An Old Spectrum Clasic Game

Is the shortcut not being made or is it a broken icon?
When I have a issue with a shorcut I use this.
CODE


CREATE A SHOURTCUT FILE AND CHANGE PROPERTIES TO
%ProgramFiles% (ex. "C:\Unreal Tournament 3" to "%ProgramFiles%\Unreal Tournament 3"

THEN ADD:

[PROGRAM NAME]
CopyFiles =AddShortcut.Files

[DestinationDirs]
AddShortcut.Files =16407,STARTMENUFOLDER
; 16407 = %allusersprofile%\Start Menu\Programs
; 16386 = %userprofile%\Start Menu\Programs

[AddShortcut.Files]
SHORCUTNAME


Hope this helps.
Worf
No the start menu group and shortcut is not being created, but will try your method if i can't get it to work.
LUZR4LIFE
QUOTE (Worf @ Apr 2 2008, 07:56 PM) *
No the start menu group and shortcut is not being created.

Try to do what I explained, that should work. Also, try to remove your "infotip" in your .inf. That may sound weired but I have actually had that issue with some programs, not sure why though so I just do it the way I posted.
Worf
thumbup.gif Well after a lot of messing about, checking and checking the inf file i have finaly got it working.
There was a mistake in one of the files which was not getting installed and was preventing the creation of the shortcuts.


Thank you to all who as helped me here.
ricktendo64
QUOTE (Yzöwl @ Apr 2 2008, 03:18 PM) *
QUOTE
CHRONOSMAIN = "Retro Games\Chronos"
CHRONOSFONT = "Retro Games\Chronos\Font"
CHRONOSLEVEL = "Retro Games\Chronos\Level"
CHRONOSSFX = "Retro Games\Chronos\Sfx"
CHRONOSGFX = "Retro Games\Chronos\Gfx"
I'm still seeing spaces!!!
They are quoted dun worry




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.