What Other Methods?

Basics of customization, tutorials and much more.

Moderator: Moderators

What Other Methods?

Postby spidey_dude on 17 Jan 2010, 20:14

Gud Day to all, i have a question regarding on patching sysfiles using Replacer via a Command or Batch,
the code is sort of like this..
DEL "C:\WINDOWS\system32\dllcache\shell32.dll"
COPY "C:\Modified\shell32.dll" "C:\WINDOWS\system32\dllcache\shell32.dll"
DEL "C:\WINDOWS\system32\shell32.dll"
COPY "C:\Modified\shell32.dll" "C:\WINDOWS\system32\shell32.dll"
DEL "C:\WINDOWS\system32\dllcache\msgina.dll"
COPY "C:\Modified\msgina.dll" "C:\WINDOWS\system32\dllcache\msgina.dll"
DEL "C:\WINDOWS\system32\msgina.dll"
COPY "C:\Modified\msgina.dll" "C:\WINDOWS\system32\msgina.dll"

I dont know if this is the right way although i tried this resulting to other System files arent getting patch
and im getting an error["Process cannot access the file because it is being used by another process."],
can someone please tell me what am I doing wrong? any other methods or ideas?
My whole concept with this is making a Package & Deployment Pack with my own modified sysfiles,
so basically I'll just install/run my setup.exe for the next OS install...

Any output is much appreciated,
Thanks in advance,
More Power...
spidey_dude
 
Posts: 2
Joined: 29 Dec 2009, 08:47
Bookmark and Share

Re: What Other Methods?

Postby awergh on 18 Jan 2010, 00:57

That batch file won't work in windows because shell32.dll and msgina.dll are always in use.
What I used to do was
ren %windir%\explorer.exe explorer.d.old
ren %windir%\system32\shell32.dll shell32.d.old
ren %windir%\system32\msgina.dll msgina.d.old
COPY EXPLORER.EXE %windir%
COPY SHELL32.DLL %windir%\system32
COPY MSGINA.DLL %windir%\system32

However I never had to worry about dllcache because NT4 doesn't have that,
and I dont remember why I renamed the extension to .d.old,
.old would work just as well.

This works because even though I rename the file and then on restart it uses the new files.
Explorer.exe doesn't actually need a restart killing the process would be enough

Welcome to WPC
User avatar
awergh
Administrator
Administrator
 
Posts: 560
Joined: 26 Oct 2007, 12:12
Location: Australia
Operating System: Windows 7,XP Pro,2000, NT4,ME, 98SE, 95B, WfW 3.11
Server 2008R2, 2003R2, 2003, NT4 Server, NT4 Terminal Server, NT4 Enterprise Server, Ubuntu 9.04, Ubuntu 9.04 Server, FreeBSD 7
Bookmark and Share

Re: What Other Methods?

Postby spidey_dude on 22 Feb 2010, 21:05

Thank you very big Sir Awergh , i appreciate your reply... Ok now im getting somewhere, well i just to make it all clear, i wanted to make my own Transformation Pack installer.. What are your suggestions in Package and Deployment? im kinda familiar using INNO Setup Compiler and NSIS... What are the 1st mechanics or methods in Replacing system files? i hope someone will share their knowledge in the mentioned problem...


NOTE: I hope to finish this project as soon as possible and ill give credits to this forum and members...

And in addition, I Have my .Reg files all ready for replacing which are (Sounds Scheme, Cursor, Theme Config) and I already Hexxed UxTheme.dll, My Fonts, Media Wavs, Themes and Cursors are good to go...


Any output is much appreciated,
Thanks in advance,
More Power WPC...
spidey_dude
 
Posts: 2
Joined: 29 Dec 2009, 08:47
Bookmark and Share

Re: What Other Methods?

Postby Damian666 on 08 Mar 2010, 17:10

well, there is a tool taht forces windows to replace the files on next reboot.

its called moveex.exe, this will help you.

for package i suggest nsis, basicly because it has high compression rates, and very cusomizable.

but for deployment... well, speaking of a few years of experience, i suggest to code your own.

damian666
Image
User avatar
Damian666
Administrator
Administrator
 
Posts: 752
Joined: 29 Oct 2007, 08:57
Location: nederland
Bookmark and Share


Return to Customization Basics

Who is online

Users browsing this forum: No registered users and 1 guest