Tihiy Posted March 31, 2007 Posted March 31, 2007 I'm writing system file patcher for my customization program.The problem is that Windows [2000 SP4] does not allow to replace system files, e.g. browseui.dll, comdlg32.dllI use MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT flag.It creates proper PendingFileRename key, however, if program is started not in Safe Mode, then file replacing does not happen on next boot.Windows 2000 SP4, sfc disabled via nLite [no dllcache folder at all]So - what to do? How to circumvent this issue?
LeveL Posted March 31, 2007 Posted March 31, 2007 You can always use a live "PE" disc, I don't know if you can makeone out of Windows 2000 but if you have an XP CD then you can make a PE disc, which is a live Windows environment you can bootfrom off a CD, then you can deal with your system whilst it is noteven booted up, you can just copy the files into system32 that way,it cannot possibly stop you doing this because the Windows 2000 OSis not even running!http://www.nu2.nu/pebuilder/
Tihiy Posted March 31, 2007 Author Posted March 31, 2007 Of course i can use another OS but i want my program to replace files automatically without this I wander how other system file patchers [for example Vista Icon/Transformation Pack] do this.
LeveL Posted March 31, 2007 Posted March 31, 2007 (edited) Sorry.Certain DLL files are gonna be hooked into svchost.exe so yeah,I am wondering the same thing about those "Vista Transformation"packs.Look at the software that sometimes says "windows must reboot to continue uninstalling and delete files that are in use". For example,Windowblinds does that.Have you tried the "inuse.exe" command line app?From M$'s own page:File-In-Use Replace Utility (inuse.exe): InUse is a command-line tool thatperforms on-the-fly replacement of files that the operating system currentlyuses. To download this tool, click the following link:http://download.microsoft.com/download/win...EN-US/inuse.exeAlthough since you're using Windows 2000, that small program is in the "Resource Kit Tools" How to use it:http://support.microsoft.com/kb/228930 Edited March 31, 2007 by LeveL
Tihiy Posted March 31, 2007 Author Posted March 31, 2007 Well, it's no use as well as my algorithm - it does not work for system files.So, the question is - how to disable SFC temporarily or register those new files in system..?
gunsmokingman Posted April 1, 2007 Posted April 1, 2007 This is a good tool to replace system files.Replacer
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now