98 SE SP 3.19 Mar 11, 2013
#801
Posted 07 November 2011 - 09:15 PM
#802
Posted 08 November 2011 - 07:39 AM
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
Posted 08 November 2011 - 07:57 AM
#804
Posted 08 November 2011 - 08:26 AM
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.
#806
Posted 08 November 2011 - 10:07 AM
Quote
- 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.
#807
Posted 08 November 2011 - 10:32 AM
dencorso, on 08 November 2011 - 10:07 AM, said:
Sure, no problem. As soon as MS acknowledge Win98SE as their best OS version ever released.
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...
#808
Posted 08 November 2011 - 10:34 AM
I tried you method and, I failed
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
This post has been edited by PROBLEMCHYLD: 08 November 2011 - 10:38 AM
#809
Posted 08 November 2011 - 10:45 AM
Drugwash, on 08 November 2011 - 10:32 AM, said:
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.
#810
Posted 08 November 2011 - 11:10 AM
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
Posted 08 November 2011 - 11:17 AM
This post has been edited by PROBLEMCHYLD: 08 November 2011 - 12:57 PM
#812
Posted 08 November 2011 - 01:55 PM
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.
;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"
This post has been edited by Drugwash: 08 November 2011 - 01:57 PM
#813
Posted 08 November 2011 - 02:31 PM
Drugwash, on 08 November 2011 - 01:55 PM, said:
Drugwash, on 08 November 2011 - 01:55 PM, said:
HKLM, "Software\Microsoft\Windows\CurrentVersion\RenameFiles\MyDir", REPLICAT.0,, "Replication Manager 4.0"
This post has been edited by PROBLEMCHYLD: 08 November 2011 - 02:35 PM
#814
Posted 08 November 2011 - 04:41 PM
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
Posted 08 November 2011 - 04:57 PM
Drugwash, on 08 November 2011 - 04:41 PM, said:
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.
#816
Posted 08 November 2011 - 05:44 PM
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
Posted 08 November 2011 - 07:09 PM
This post has been edited by PROBLEMCHYLD: 08 November 2011 - 07:10 PM
#818
Posted 09 November 2011 - 02:17 PM
#819
Posted 09 November 2011 - 04:55 PM
This post has been edited by PROBLEMCHYLD: 11 November 2011 - 10:05 PM
#820
Posted 09 November 2011 - 05:09 PM
PROBLEMCHYLD, on 09 November 2011 - 04:55 PM, said:
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.
This post has been edited by Dave-H: 09 November 2011 - 05:13 PM



Help


Back to top









