Jump to content

Neep help with this INF file


Worf

Recommended Posts

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.


[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

Link to comment
Share on other sites


I wanna recommend to you a program by n7Epilson called FGCBA, you use it to test your entries.ini and inf files

**** FGCBA 0.897 * by n7Epsilon * [url="http://tinyurl.com/lslmm"]http://tinyurl.com/lslmm[/url] ****
- 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

[sourceDisksFiles]

saurcernasty.png =1

[CopyChronosGfx]

saucernasty.png

Yzöwl the spaces wont hurt if they are already quoted in strings

Edited by ricktendo64
Link to comment
Share on other sites

Well ricktendo64, you have done it again thanks alot. I can now move on :thumbup

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

Link to comment
Share on other sites

I wanna recommend to you a program by n7Epilson called FGCBA, you use it to test your entries.ini and inf files

**** FGCBA 0.897 * by n7Epsilon * [url="http://tinyurl.com/lslmm"]http://tinyurl.com/lslmm[/url] ****
- 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

[sourceDisksFiles]

saurcernasty.png =1

[CopyChronosGfx]

saucernasty.png

Yzöwl the spaces wont hurt

D A M N you Rick. LMAO.

Edited by LUZR4LIFE
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Did you update your .inf so it looks something like this? You must create ProfileItems first.

This should do the work...

[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

Link to comment
Share on other sites

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

Edited by Worf
Link to comment
Share on other sites

Hi Rick.

I've removed the spaces in the pathadd added the DefaultInstall and still no shortcut :angry:

below is the inf file again.

[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

[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

Edited by Yzöwl
Code placed into Code Tags
Link to comment
Share on other sites

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!!!
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.



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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...