Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

98 SE SP 3.32

* * * * * 1 votes

  • Please log in to reply
2360 replies to this topic

#801
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
Does anybody know how to rename a directory with a inf. Thanks

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013



How to remove advertisement from MSFN

#802
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
I didn't know it either before starting to read this particular page. It's just 3 entries above the previous one I linked to, in an earlier post.
Granted, it took me a few trials before getting to the correct format, maybe because I was trying to watch a movie on TV at the same time.

Anways, since the explanations are not clear enough, let me put it in my own words:
- folder renaming is done just as any file renaming, through registry keys
- all paths that (may) contains spaces must be enclosed in double quotes
- since at least two entries are required, first one will point to the root of the folder that is to be renamed; second entry will contain old folder name and new folder name
In the following example, Im gonna rename the folder G:\Test folder into G:\Renamed test folder. Note that the main registry key to use is HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles" to which arbitrary names can be added to separate different paths; in this case, the arbitrary name is MyDir.
[Version]
Signature="$CHICAGO$"

[DefaultInstall]
AddReg=RegEntries

[RegEntries]
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir",,, "G:"
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir", "Test folder",, "Renamed test folder"
For further clarification, to rename the folder C:\Windows\Local Settings\Apps into C:\Windows\Local Settings\My applications, one would use the following keys in the [RegEntries] section above:
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir",,, "C:\Windows\Local Settings"
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir", "Apps",, "My applications"


#803
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
Thank Drugwash :thumbup I will start testing it in little bit. If all goes well new update later today.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#804
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
You're welcome.
I forgot to mention that the LDID (Logical Disk IDentifier) codes must be used for a correct setup in any circumstances. You probably know them already - they're listed on this page, for anyone interested.
For example, instead of "C:\Windows\Local Settings", use "%25%\Local Settings".

Oh and please, as long as the releases are still in experimental stage, don't use the FINAL attribute, because it's misleading and may even get frustrating. I've got about 5 such "FINAL" packages and that's only because I skipped a few other releases; over 30MB of a package is not that small for a limited download quota over a GPRS connection.:}

#805
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
Thanks infinity :thumbup :lol:

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#806
dencorso

dencorso

    Iuvat plus qui nihil obstat

  • Supervisor
  • 6,116 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag

Donator

Just for a quick reference on what MS says cannot be done to files, using .infs:

Limitations of .inf Files

  • Directories cannot be deleted.
  • Files cannot be moved to a different location when using RenFiles. (The RenFiles command only renames a file in place.)
  • Copies of a file cannot be made. (The CopyFiles command only copies files from the source disk to the destination directory.)

Quoted from this page.

@Drugwash: Your explanations are so much clearer than MS's that I cannot resist asking you to consider writing a full ".inf How to" or Tutorial. Please do consider it. :yes:

#807
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

@Drugwash: Your explanations are so much clearer than MS's that I cannot resist asking you to consider writing a full ".inf How to" or Tutorial. Please do consider it. :yes:

Sure, no problem. As soon as MS acknowledge Win98SE as their best OS version ever released. :D

Seriously now, I knew absolutely nothing about inf structure before PROBLEMCHYLD first asked for help here; all I did was read the available documentation, pass it through my logical filter and then use trial'n'error until the outcome was satisfactory. Anyone could do this, time allowing. And for what it's worth, my plate's already overflowing (need a pinch roller and a few other spare parts for an AKAI GX635D that I have to fix for a good friend - any idea?) and there's no help in view; not to mention I'm not getting any younger... ;) I feel honored for the offer, though.

#808
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
Ok, Drugwash

I tried you method and, I failed :huh:
Maybe I did something wrong. But this is what I'm trying to do

Add JET40REPL.EXE linked here http://support.microsoft.com/kb/321076
but when I add it to my inf, it doesn't create the directory with the long folder name Replication Manager 4.0.
Here is what the the MS original inf file looks like. Please help me when you get some time.

[Version]
Signature="$Chicago$"
Provider=%Msft%
ComponentId={F1CAE27D-85D3-4642-B9E9-48D7F9F56C82}
DriverVer=6-19-2003, 4.0.7512.
FriendlyName=Jet 4.0
VersionMajor=4
VersionMinor=0
BuildNumber=7512
QFENumber=
AdvancedINF=2.5 


[SourceDisksNames]
55=%ID1%,"Jetsetup.CAB",0

[SourceDisksFiles]
msrecr40.dll=55
msrpfs40.dll=55
msrclr40.dll=55
mstrai40.exe=55
mstran40.exe=55

[Strings]
ID1 = "Jetsetup.cab"
Msft                                       = "Microsoft"
PROGRAMF	    = "Program files"
COMMON                             = "Common files"
SHARED		   = "Microsoft shared"
REPLMAN		    = "Replication Manager 4.0"
VersionStringHere

[DestinationDirs]
INFDIR=17
SYSTEMDIR=11
DAODIR=24,%PROGRAMF%\%COMMON%\%SHARED%\dao
RMDIR=24,%PROGRAMF%\%COMMON%\%SHARED%\%REPLMAN%
RenFilesSection=11  

[DAODIR]

[RMDIR]
msrpfs40.dll,,,96
mstrai40.exe,,,96
mstran40.exe,,,96

[SYSTEMDIR]
msrecr40.dll,,,96
msrclr40.dll,,,96

[DefaultInstall]
RequiredEngine=SETUPAPI
CheckAdminRights=1
Copyfiles=INFDIR,SYSTEMDIR,DAODIR,RMDIR
RegisterOCXs=RegisterOCXSection 

[Uninstall]
UnRegisterOCXs=RegisterOCXSection 

[RegisterOCXSection]
%11%\msjetoledb40.dll
%11%\msrclr40.dll


Edited by PROBLEMCHYLD, 08 November 2011 - 10:38 AM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#809
dencorso

dencorso

    Iuvat plus qui nihil obstat

  • Supervisor
  • 6,116 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag

Donator

@Drugwash: Well, I guess it's your logical filter that makes the difference, plus a gist for formulating it clearly. :thumbup

(need a pinch roller and a few other spare parts for an AKAI GX635D that I have to fix for a good friend - any idea?)

Yes, but you won't like the prices... <link> Working with such beautiful vintage sound equipment has its downsides, price being the worst one, you know. :D

#810
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
@dencorso: Doin' my best to make myself understood, although I sometimes fail miserably - maybe, maybe, not always my fault.
Auction sites don't quite "like" our area - coulnd't blame them, all in all: we got our bad seeds and unfortunately, wind is blowing them towards the most remote areas of the world. I'd rather have some first-hand contacts to deal with, when possible. But thanks for trying to help.

@PROBLEMCHYLD: The original inf file I can read just fine from the package; yours - the failed attempt - is what I can't see anywhere around. If you'd be so kind as to post it, I or someone else could point you to the bug(s).
Off the top of my head, I could think of some quotes missing from folder name, or some section name missing (CopyFiles=[...], RMDIR in [DefaultInstall], possibly).

#811
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
:thumbup

Edited by PROBLEMCHYLD, 08 November 2011 - 12:57 PM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#812
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
You really need to try harder... I explained the best I could...
First key contains the path to the folder to be renamed but it does not contain the folder name!
Second key contains only the folder name, without the path.

That's how it should look like (theoretically - not tested); considering the mess that's in that inf, it would take me too long to analyze and fix it. If it works as is, fully, it's truly a miracle.:blink:
;MSJET SP8
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir",,, "%PROGRAMF%\%COMMON%\%SHARED%" 
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir", REPLICAT.0,, "Replication Manager 4.0"

Edited by Drugwash, 08 November 2011 - 01:57 PM.


#813
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag

You really need to try harder... I explained the best I could...

Before I even posted here, I been working on this the last 3 days with no success, How harder do you want me to try? :huh:

HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir",,, "%PROGRAMF%\%COMMON%\%SHARED%"
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir", REPLICAT.0,, "Replication Manager 4.0"

It still does not create the long file name, but thank you for trying.

Edited by PROBLEMCHYLD, 08 November 2011 - 02:35 PM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#814
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
You're probably right... we all have our limits.

The folder should be created on a file copy operation; apparently this operation does not run, for some reason. Until the copy operation succeeds and the folder is created, no renaming will take place.

Now, if the folder is created but the rename fails, then the problem may reside in the original 8+3 folder name - how did you come up with REPLICAT.0? I don't have any such folder in that path so can't check if the name is correct. You may also try with or without quotes around REPLICAT.0.
It also occured to me that this renaming might have to take place at some other time or in a previously/later run inf.

Of course, the issue may reside in a completely different place, but the file is large and complicated and I can't get to the bottom of this right now, so please try a few more workarounds if/when possible.

#815
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag

You're probably right... we all have our limits.

The folder should be created on a file copy operation; apparently this operation does not run, for some reason. Until the copy operation succeeds and the folder is created, no renaming will take place.

Now, if the folder is created but the rename fails, then the problem may reside in the original 8+3 folder name - how did you come up with REPLICAT.0? I don't have any such folder in that path so can't check if the name is correct. You may also try with or without quotes around REPLICAT.0.
It also occured to me that this renaming might have to take place at some other time or in a previously/later run inf.

Of course, the issue may reside in a completely different place, but the file is large and complicated and I can't get to the bottom of this right now, so please try a few more workarounds if/when possible.

The folder does create and all the files copy. It just won't rename to the long file name. REPLICAT.0 is the name of the folder
when I install the MS installer and view it as a short name.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#816
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
Try to put the rename-related keys in a separate inf file and launch it after the main file, see if it works that way.
Although - after a little bit of thinking - just adding the relevant missing strings to the Strings section might fix it:
[Version]
Signature="$Chicago$"

[DefaultInstall]
AddReg=RegEntries

[RegEntries]
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir",,, "%PROGRAMF%\%COMMON%\%SHARED%"
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir", REPLICAT.0,, "Replication Manager 4.0"

[Strings]
PROGRAMF = "Program files"
COMMON = "Common files"
SHARED = "Microsoft shared"
;REPLMAN = "Replication Manager 4.0"


#817
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
I tried everything that I can think of, and nothing works. I did find out if you extract the installer and run the inf it does not create the directory. So MS is using some other technique.

Edited by PROBLEMCHYLD, 08 November 2011 - 07:10 PM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#818
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
Thanks Drugwash, I figured it out. New update later today.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#819
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
:thumbup Updated :w00t:

Edited by PROBLEMCHYLD, 11 November 2011 - 10:05 PM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#820
Dave-H

Dave-H

    Friend of MSFN

  • MSFN Sponsor
  • 891 posts
  • Joined 04-January 06
  • OS:98SE
  • Country: Country Flag

UPDATES WILL CONTINUE IF ANY BUGS OCCUR OR IF ANY NEW FILES ARE COMPATIBLE.

Glad you sorted out the folder naming problem!
Just one suggestion ProblemChyld.
Are you declaring this to be a final release of SP3?
If so, it should be called 3.0 and should not then be subsequently altered.
Any subsequent fixes or additions should be SP3.1, 3.2 etc.
The title of this thread should be changed to "98 SE SP 3" too, or a new thread started.
Drop the "beta" if it no longer is a beta.
:)

Edited by Dave-H, 09 November 2011 - 05:13 PM.

Dual boot Windows 98SE SP2.1a and Windows XP Professional SP3.
Dual 3.16GHz X5460 Quad Core Xeons with 8GB RAM. ATI Radeon X850 Graphics 1920x1080 32 Bit Colour with Large Fonts.


#821
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag

Glad you sorted out the folder naming problem!
Just one suggestion Problemchyld.
If you are declaring this to be a final release of SP3, it should be 3.0 and should not then be subsequently altered.
Any subsequent fixes or additions should be SP3.1, 3.2 etc.
The title of this thread should be changed to 98 SE SP 3 too, or a new thread started!
Drop the "Beta" if it no longer is a beta.
:)

A mod would have to change the title, or I would have to start a new thread. Its not quite final yet but pretty dang close and its not beta anymore either.

Edited by PROBLEMCHYLD, 09 November 2011 - 05:13 PM.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#822
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
I'm going to add MSXML 4.0 SP 2, are there an objections?

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#823
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,285 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag
I vaguely recall having had some problems with MSXML 4.0, but that was years ago and can't remember the details. If it's not mandatory, you may add it as an optional package. It's worth waiting for other opinions too, maybe it was just me and my notorious bad luck.

#824
bristols

bristols

    Advanced Member

  • Member
  • PipPipPip
  • 451 posts
  • Joined 24-September 05
  • OS:none specified
  • Country: Country Flag

I'm going to add MSXML 4.0 SP 2, are there an objections?


Have you added MSXML 2.5?

Windows 98 SE shipped with MSXML 2.0b (Msxml.dll). MSXML 2.5 SP3 (direct download) was the last version that retained that file name (build 8.00.6730.0). MSXML 2.6 was Msxml2.dll, version 3 was Msxml3.dll, and so on.

List of Microsoft XML Parser (MSXML) versions.

#825
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,534 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
I thought MSXML 4.0 SP2 supersede older versions. If it doesn't then I can add'em all.

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users