Jump to content

Question regarding greating INF file


Worf

Recommended Posts

Hi.

I am having a slight problem with one line in an INF file.

I want to install files that is not in a .CAB but in .jp_ format. Now in my inf file i have the following line:

[sourceDisksNames.x86]

1="Default Wallpaper","\win51ip",,"\i386"

Now if i create a folder called 'I386' and copy my files into it and also the inf file then copy win51ip file outside the I386 folder and just write click on my inf file and select install, it install the files fine. But if i put it into my xp source and install Windows, Windows will tell me that it can not find the files to install.

I have created inf files for .CAB file and they install fine but its just with this line i am having problems with and i don't want to put them into a .CAB file.

Many Thanks

Worf

Edited by Worf
Link to comment
Share on other sites

Make sure you are doing sourcedisksfiles because this may be the cause, it would help if you posted the entire inf file

Here is my INF file.

[Version]
signature="$WINDOWS NT$"
ClassGUID={00000000-0000-0000-0000-000000000000}
DriverVer=14/05/2009,5.1.2600.5512

[DestinationDirs]
Wallpaper.CopyFiles = 10,Web\Wallpaper



[SourceDisksNames.x86]
1="Default Wallpaper","WIN51",,"i386"




[DefaultInstall]
Modes = 0,1,2,3
Copyfiles = Wallpaper.CopyFiles


[SourceDisksFiles]
51385_poster2000_1.jpg = 1
53279_poster2000_2.jpg = 1
56049_poster2000_3.jpg = 1
92511_4.jpg = 1
Aurora_8.jpg = 1
Crepuscolo_9.jpg = 1
Dawn_10.jpg = 1
Grey Shine_11.jpg = 1
Growing Aurora B_12.jpg = 1
Growing Aurora Preview_7.jpg = 1
Growing Aurora_13.jpg = 1
Growing Dawn_14.jpg = 1
Growing Down_16.jpg = 1
img11_17.jpg = 1
wallpaper_5.jpg = 1
Wallpaper_6.jpg = 1
Wooden_15.jpg = 1


[Wallpaper.CopyFiles]
"%51385_POSTER2000_1_JPG_NAME%",51385pos_1.jpg
"%53279_POSTER2000_2_JPG_NAME%",53279pos_2.jpg
"%56049_POSTER2000_3_JPG_NAME%",56049pos_3.jpg
"%92511_4_JPG_NAME%",925114_4.jpg
"%AURORA_8_JPG_NAME%",Aurora8_5.jpg
"%CREPUSCOLO_9_JPG_NAME%",Crepusco_6.jpg
"%DAWN_10_JPG_NAME%",Dawn10_7.jpg
"%GREY SHINE_11_JPG_NAME%",GreyShin_8.jpg
"%GROWING AURORA B_12_JPG_NAME%",GrowingA_9.jpg
"%GROWING AURORA PREVIEW_7_JPG_NAME%",GrowingA_10.jpg
"%GROWING AURORA_13_JPG_NAME%",GrowingA_11.jpg
"%GROWING DAWN_14_JPG_NAME%",GrowingD_12.jpg
"%GROWING DOWN_16_JPG_NAME%",GrowingD_13.jpg
"%IMG11_17_JPG_NAME%",img1117_14.jpg
"%WALLPAPER_5_JPG_NAME%",wallpape_15.jpg
"%WALLPAPER_6_JPG_NAME%",Wallpape_16.jpg
"%WOODEN_15_JPG_NAME%",Wooden15_17.jpg



[Strings]
51385_POSTER2000_1_JPG_NAME = "51385_poster2000_1.jpg"
53279_POSTER2000_2_JPG_NAME = "53279_poster2000_2.jpg"
56049_POSTER2000_3_JPG_NAME = "56049_poster2000_3.jpg"
92511_4_JPG_NAME = "92511_4.jpg"
AURORA_8_JPG_NAME = "Aurora_8.jpg"
CREPUSCOLO_9_JPG_NAME = "Crepuscolo_9.jpg"
DAWN_10_JPG_NAME = "Dawn_10.jpg"
GREY SHINE_11_JPG_NAME = "Grey Shine_11.jpg"
GROWING AURORA B_12_JPG_NAME = "Growing Aurora B_12.jpg"
GROWING AURORA PREVIEW_7_JPG_NAME = "Growing Aurora Preview_7.jpg"
GROWING AURORA_13_JPG_NAME = "Growing Aurora_13.jpg"
GROWING DAWN_14_JPG_NAME = "Growing Dawn_14.jpg"
GROWING DOWN_16_JPG_NAME = "Growing Down_16.jpg"
IMG11_17_JPG_NAME = "img11_17.jpg"
WALLPAPER_5_JPG_NAME = "wallpaper_5.jpg"
WALLPAPER_6_JPG_NAME = "Wallpaper_6.jpg"
WOODEN_15_JPG_NAME = "Wooden_15.jpg"

Regards

Worf.

Link to comment
Share on other sites

Ok add this to the [Version] section

[Version]
...
LayoutFile=layout.inf

Delete [sourceDisksNames.x86] section and entry

[SourceDisksNames.x86]
1="Default Wallpaper","WIN51",,"i386"

Leave the [sourceDisksFiles] section as is and leave them with =1 as the disk number

Explanation: when the INF looks for what disk equals disk one (=1) it will look in layout.inf file for the SourceDisksNames, it will look for one equals (1=xxxxxxxx,\WIN51,,\i386) and it will find your files in I386 if they are there (make sure they are getting integrated)

BTW how/when does this install?

I dont see a [Optional Components] or a [baseWinOptions] section

Link to comment
Share on other sites

Hi and thank you for your reply and help.

The INF file gets placed in the SYSSETUP.INF in the [infs.Always] i've used this method for when i created installation inf files for my program add-ons.

I take it that when i add them to the LAYOUT.INF i would still have to but there size in bytes also?

By the way, what is [baseWinOptions] as i have never heard of that one?

Regards

Worf

Edited by Worf
Link to comment
Share on other sites

Do not need to add anyting to layout.inf do not edit this file, just add LayoutFile=layout.inf to your inf file

The only thing we are using layout.inf for is for this:

[SourceDisksNames.x86]
1 = %cdname%,%cdtagfilei%,,\i386

You keep the [sourceDisksFiles] and the list = 1 in your INF, when it comes time to find what disk 1 equals THEN! and only then it will go to layout.inf because it cannot find a [sourceDisksNames.x86] in your INF

Link to comment
Share on other sites

Do not need to add anyting to layout.inf do not edit this file, just add LayoutFile=layout.inf to your inf file

The only thing we are using layout.inf for is for this:

[SourceDisksNames.x86]
1 = %cdname%,%cdtagfilei%,,\i386

You keep the [sourceDisksFiles] and the list = 1 in your INF, when it comes time to find what disk 1 equals THEN! and only then it will go to layout.inf because it cannot find a [sourceDisksNames.x86] in your INF

Thank you ricktendo64, this is the sort of information that i need. If you have anymore information on the installation process i would be greatful.

Regards

Worf

Link to comment
Share on other sites

One thing i forgot to ask is.

How does the default wallpaper get installed by SHL_IMG.INF as there is no [sourceDisksNames.x86] or [sourceDisksFiles]?

All referances to the wallpapers i have found is only in TXTSETUP.SIF, DOSNET.INF and SHL_IMG.INF.

Regards

Worf

Link to comment
Share on other sites

Again layout.inf

If we compress our files in i386 we don need to use [sourceDisksNames] because the path is already defined in layout.inf, all we need to tell our INF to do is look in layout.inf for what one equals (1=????)

We only have to add the list of files [sourceDisksFiles.x??] because our list of files is not present in layout.inf, but for shl_img.inf you will find that all the sourcedisksfiles/names are listed and shl_img.inf tells windows to use layout.inf to find the file and disk name

Link to comment
Share on other sites

Again layout.inf

If we compress our files in i386 we don need to use [sourceDisksNames] because the path is already defined in layout.inf, all we need to tell our INF to do is look in layout.inf for what one equals (1=????)

We only have to add the list of files [sourceDisksFiles.x??] because our list of files is not present in layout.inf, but for shl_img.inf you will find that all the sourcedisksfiles/names are listed and shl_img.inf tells windows to use layout.inf to find the file and disk name

So if i put my jpg file as is in SHL_IMG.INF and also in the LAYOUT.INF they should install?

Example using an existing jpg file:

In the SHL_IMG.INF

[Wallpaper.CopyFiles]

"%ASCENT_JPG_NAME%",ascent.jpg

and in the LAYOUT.INF

ascent.jpg = 1,,63244,,,,,,3,3

Then the jpg's should install?

Edited by Worf
Link to comment
Share on other sites

Did you not hear me?

DONT EDIT LAYOUT.INF!!!

I dont know why but dont

Just add a [sourceDisksFiles] section to SHL_IMG.INF with the files that are new/yours

EDIT: It seems that you will have to patch syssetup.inf if you want to edit it

Sorry, got confused when you mentioned about the LAYOUT.INF. Will try what you said and hope that that will work.

Many Thanks

Worf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...