MSFN Forum: Inf files + Batch files - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Inf files + Batch files Rate Topic: -----

#1 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 28 August 2011 - 12:10 PM

This is what the inf file looks like in the copyfiles=

CopyFiles=Copy.Boot,Copy.Cab,Copy.Command,Copy.EBD,Copy.GFWin,Copy.GFOffice,Copy.Help,
Copy.HT,Copy.Inf,Copy.IOSubSys,Copy.Machine,Copy.Media,Copy.MSDA,Copy.MUI,Copy.System,
Copy.System32,Copy.SysBckup,Copy.TC,Copy.TEdit,Copy.TViewer,Copy.VMM32,Copy.891711,Copy.918547


but when I add 2 more directories, copy.themes,copy.mspaint
I get a rundll.exe error.
Can someone help me fix this?

Make note that all the directories are on the same line.

This post has been edited by PROBLEMCHYLD: 25 August 2012 - 07:16 AM



#2 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2011 - 12:35 PM

Do you also add the DestinationDirs for them?

Post the entire inf file so we can see

#3 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 28 August 2011 - 02:00 PM

:thumbup

This post has been edited by PROBLEMCHYLD: 17 October 2011 - 09:53 AM


#4 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 28 August 2011 - 03:26 PM

Try changing the single line to this:
CopyFiles=Copy.Boot,Copy.Cab,Copy.Command,Copy.EBD,Copy.GFWin,Copy.GFOffice
CopyFiles=Copy.Help,Copy.HT,Copy.Inf,Copy.IOSubSys,Copy.Machine,Copy.Media
CopyFiles=Copy.MSDA,Copy.MUI,Copy.System,Copy.System32,Copy.SysBckup,Copy.TC
CopyFiles=Copy.TEdit,Copy.TViewer,Copy.VMM32,Copy.891711,Copy.918547
CopyFiles=Copy.themes,Copy.mspaint


#5 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 28 August 2011 - 04:15 PM

That stopped the rundll.exe error, but the 2 directories CopyFiles=Copy.themes,Copy.mspaint
does not replace the files.
Thanks, can you help with me the second problem?

#6 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 28 August 2011 - 04:52 PM

This may sound silly but what happens if you change the last of those lines to read:
CopyFiles=Copy.Themes,Copy.Mspaint


#7 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 28 August 2011 - 05:16 PM

View PostYzöwl, on 28 August 2011 - 04:52 PM, said:

This may sound silly but what happens if you change the last of those lines to read:
CopyFiles=Copy.Themes,Copy.Mspaint


Sorry the files did not copy :huh:

#8 User is offline   5eraph 

  • Update Packrat
  • Group: Supreme Sponsor
  • Posts: 958
  • Joined: 04-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 28 August 2011 - 06:38 PM

Are the new files for Copy.Themes and Copy.Mspaint listed in Slayout1.inf or Slayout2.inf?

#9 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 28 August 2011 - 06:47 PM

View Post5eraph, on 28 August 2011 - 06:38 PM, said:

Are the new files for Copy.Themes and Copy.Mspaint listed in Slayout1.inf or Slayout2.inf?

Slayout1.inf
even in Slayout2.inf they don't copy.

This post has been edited by PROBLEMCHYLD: 28 August 2011 - 06:48 PM


#10 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 634
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 28 August 2011 - 07:33 PM

Try changing to

[ProgramFilesDir] 
HKLM,"%CurrentVersion%","ProgramFilesDir","",%16422%
 
[CommonFilesDir] 
HKLM,"%CurrentVersion%","CommonFilesDir","",%16422%\Common Files


Edit: remove quotes surrounding %16422%

This post has been edited by Geej: 28 August 2011 - 07:43 PM


#11 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 29 August 2011 - 04:16 AM

If you fix the lines as stated above, you can also remove the unnecessary CustomDestination.Section above it and then fix the invalid references, (49001, and 35353), to the custom locations you had created.

Program Files\Common could also be changed to %16427%

[ProgramFilesDir]
HKLM, "%CurrentVersion%", "ProgramFilesDir", "", %16422%

[CommonFilesDir]
HKLM, "%CurrentVersion%", "CommonFilesDir", "", %16427%

[DestinationDirs]
Copy.Boot               = 30
Copy.Cab                = 11, Precopy
Copy.Command            = 13
Copy.EBD                = 13, EBD
Copy.GFWin              = 10, MsApps\Grphflt
Copy.GFOffice           = 16427, Micros~1\Grphflt
Copy.Help               = 18
Copy.HT                 = 16422, Access~1\Hypert~1
Copy.Inf                = 17
Copy.IOSubSys           = 12
Copy.Machine            = 10
Copy.Media              = 10, Media
Copy.MSDA               = 16427, System\Oledb~1
Copy.Mspaint            = 16422, Access~1
Copy.MUI                = 11, MUI\%LCID%
Copy.System             = 11
Copy.System32           = 10, System32\Drivers
Copy.Sysbckup           = 10, Sysbckup
Copy.TC                 = 16427, Micros~1\TextConv
Copy.TEdit              = 16427, Micros~1\Triedit
Copy.Themes             = 16422, Plus!
Copy.TViewer            = 16427, Tvview~1
Copy.VMM32              = 22
Copy.891711             = 11, KB891711
Copy.918547             = 11, KB918547
Del.Uninstall           = 13
Del.Windows             = 25
There are a few more references to 35353 below this which look like they should read 16427 to match the above.


Additionally you appear to have an incomplete line:
; TSHOOT.OCX 
HKLM,"Software\Microsoft\Internet Explorer\ActiveX Compatibility\{4B106874-DD36-11D0-8B44-00A024DD9EFF}","Compatibility Flags 


A fixed version of your file is included as an attachment.

Attached File(s)

  • Attached File  fixed.zip (6.06K)
    Number of downloads: 10


#12 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 29 August 2011 - 07:52 AM

Thanks, but know I have another problem
your fixed inf gives me a can not find file Winboot.sys.
Also the files copy themes + copy mspaint still do not copy.

This post has been edited by PROBLEMCHYLD: 29 August 2011 - 08:14 AM


#13 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,369
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 29 August 2011 - 08:17 AM

I have no idea what the contents of your layout files or which files are available for use by the inf.

BTW, since I have only added whitespace to lines containing Winboot.sys, I'd suggest that using a DIRID of 30 for the Boot disk is possibly problematic. Try changing
[DestinationDirs] 
Copy.Boot       = 30
to
[DestinationDirs] 
Copy.Boot       = 24
so that it references the System disk.

#14 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 29 August 2011 - 12:25 PM

Does anyone know how to get the two files above to copy to there directories?

This post has been edited by PROBLEMCHYLD: 29 August 2011 - 07:27 PM


#15 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 30 August 2011 - 06:53 AM

View PostYzöwl, on 29 August 2011 - 08:17 AM, said:

I have no idea what the contents of your layout files or which files are available for use by the inf.

BTW, since I have only added whitespace to lines containing Winboot.sys, I'd suggest that using a DIRID of 30 for the Boot disk is possibly problematic. Try changing
[DestinationDirs] 
Copy.Boot       = 30
to
[DestinationDirs] 
Copy.Boot       = 24
so that it references the System disk.

Thanks for your help Yzöwl. I want the forum to know I'm not the original creator of this service pack but I'm striving to update it.
I have the necessary original Inf files attached below if you don't mind looking @ them. If anything is broken please help me fix them.
Thanks

This post has been edited by PROBLEMCHYLD: 30 August 2011 - 05:04 PM


#16 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 30 August 2011 - 04:36 PM

Here is another file that does not copy.

Html32.cnv

#17 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 17 October 2011 - 09:57 AM

You can mark this as solved. What I had to do to get it working was to shorten the names
example:

CopyFiles=Copy.Boot,Copy.Cab,Copy.Command,Copy.EBD,Copy.GFWin,Copy.GFOffice 
CopyFiles=CBT,CCB,CMD,CEB,CGF,CGR,CHL,CHT,CMP,CTS,CIN,CIO,CMA,CME,CDA,CMU,CWS,C32,CSB,CTC,CTR,CTV,CVM,891711,918547

Everything installs fine. Thanks

This post has been edited by PROBLEMCHYLD: 17 October 2011 - 09:57 AM


#18 User is offline   bphlpt 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,117
  • Joined: 12-May 07

Posted 18 October 2011 - 12:12 AM

I guess it just ended up being too long a command line or variable name/list then? Good to know. I've forgotten what the limits are for Win98.

Cheers and Regards

#19 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 07 November 2011 - 12:01 PM

I need to rename a short file directory to long file directory with a inf file.
How do I do it?

#20 User is offline   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,481
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 08 December 2011 - 10:02 AM

I need some help help creating a batch file to delete this directory triggered by an inf file
C:\Program Files\Common Files\Microsoft Shared\REPLMAN

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy