Worf Posted May 19, 2009 Posted May 19, 2009 (edited) 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 ThanksWorf Edited May 19, 2009 by Worf Quote
ricktendo Posted May 20, 2009 Posted May 20, 2009 Make sure you are doing sourcedisksfiles because this may be the cause, it would help if you posted the entire inf file Quote
Worf Posted May 21, 2009 Author Posted May 21, 2009 Make sure you are doing sourcedisksfiles because this may be the cause, it would help if you posted the entire inf fileHere 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,3Copyfiles = Wallpaper.CopyFiles[SourceDisksFiles]51385_poster2000_1.jpg = 153279_poster2000_2.jpg = 156049_poster2000_3.jpg = 192511_4.jpg = 1Aurora_8.jpg = 1Crepuscolo_9.jpg = 1Dawn_10.jpg = 1Grey Shine_11.jpg = 1Growing Aurora B_12.jpg = 1Growing Aurora Preview_7.jpg = 1Growing Aurora_13.jpg = 1Growing Dawn_14.jpg = 1Growing Down_16.jpg = 1img11_17.jpg = 1wallpaper_5.jpg = 1Wallpaper_6.jpg = 1Wooden_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"RegardsWorf. Quote
ricktendo Posted May 21, 2009 Posted May 21, 2009 Ok add this to the [Version] section[Version]...LayoutFile=layout.infDelete [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 numberExplanation: 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 Quote
Worf Posted May 21, 2009 Author Posted May 21, 2009 (edited) 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?RegardsWorf Edited May 21, 2009 by Worf Quote
ricktendo Posted May 21, 2009 Posted May 21, 2009 Do not need to add anyting to layout.inf do not edit this file, just add LayoutFile=layout.inf to your inf fileThe only thing we are using layout.inf for is for this:[SourceDisksNames.x86]1 = %cdname%,%cdtagfilei%,,\i386You 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 Quote
Worf Posted May 24, 2009 Author Posted May 24, 2009 Do not need to add anyting to layout.inf do not edit this file, just add LayoutFile=layout.inf to your inf fileThe only thing we are using layout.inf for is for this:[SourceDisksNames.x86]1 = %cdname%,%cdtagfilei%,,\i386You 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 INFThank you ricktendo64, this is the sort of information that i need. If you have anymore information on the installation process i would be greatful.RegardsWorf Quote
Worf Posted May 24, 2009 Author Posted May 24, 2009 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.RegardsWorf Quote
ricktendo Posted May 24, 2009 Posted May 24, 2009 Again layout.infIf 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 Quote
Worf Posted May 26, 2009 Author Posted May 26, 2009 (edited) Again layout.infIf 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 nameSo 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.jpgand in the LAYOUT.INFascent.jpg = 1,,63244,,,,,,3,3Then the jpg's should install? Edited May 26, 2009 by Worf Quote
ricktendo Posted May 26, 2009 Posted May 26, 2009 Did you not hear me?DONT EDIT LAYOUT.INF!!!I dont know why but dontJust add a [sourceDisksFiles] section to SHL_IMG.INF with the files that are new/yoursEDIT: It seems that you will have to patch syssetup.inf if you want to edit it Quote
Worf Posted May 26, 2009 Author Posted May 26, 2009 Did you not hear me?DONT EDIT LAYOUT.INF!!!I dont know why but dontJust add a [sourceDisksFiles] section to SHL_IMG.INF with the files that are new/yoursEDIT: It seems that you will have to patch syssetup.inf if you want to edit itSorry, got confused when you mentioned about the LAYOUT.INF. Will try what you said and hope that that will work.Many ThanksWorf Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.