Jump to content

Replacement System Files & Windows File Protection


Recommended Posts

I edit lots of my system files with replacement icons (shell32,shdocv,mshtml,explorer,cpl files, and tons more)....

To change them all I do is rename or copy over the file in the dllcache folder....rename the file in the system32 folder...then put the new edited file in the system32 folder and reboot....

Then rebuild the icon cache using TweakUI and they're good to go....

I've tried changing all of these files at the end of my unattended install, but I'm having problems...somehow they files in the dllcache folder are changed, but the system32 folder always ends up not working (after rebooting, the original is back in the system32 folder, and the icons are back to the originals)....

During my unattended install, it says the files are copied successfully, so what am I missing? Is it refreshing them before I have a chance to reboot?

Does anyone have any answers on this? Or any things for me to try? I would really appreciate any help, as this batch file will replace them all in 5 seconds, whereas it takes me about 10 minutes doing it manually...

Thanks...

Here is the end of my hotfixes batch file...

ECHO Installing Pre-Sp2 Updates for IE6 and OE6...
start /wait %systemdrive%\install\Hotfixes\q817979.exe /Q:A /R:N
ECHO.
ECHO Installing Pre-Sp2 Updates for IE6 and OE6...
start /wait %systemdrive%\install\Hotfixes\q818060.exe /Q:A /R:N
ECHO.
ECHO Installing Windows Media Player 9 Security Update...
start /wait %systemdrive%\install\Hotfixes\WindowsMedia9-KB819639-x86-ENU.exe /Q:A /R:N
ECHO.
ECHO Copying patched UXTheme.dll...
REN %systemroot%\System32\dllcache\uxtheme.dll uxtheme.old
COPY "%systemdrive%\Install\Uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\uxtheme.dll uxtheme.old
COPY "%systemdrive%\Install\Uxtheme\uxtheme.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched shdocvw.dll...
REN %systemroot%\System32\dllcache\shdocvw.dll shdocvw.old
COPY "%systemdrive%\Install\SystemFiles\shdocvw.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\shdocvw.dll shdocvw.old
COPY "%systemdrive%\Install\SystemFiles\shdocvw.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched mstsc.exe...
REN %systemroot%\System32\dllcache\mstsc.exe mstsc.old
COPY "%systemdrive%\Install\SystemFiles\mstsc.exe" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\mstsc.exe mstsc.old
COPY "%systemdrive%\Install\SystemFiles\mstsc.exe" "%systemroot%\System32\"
ECHO.
ECHO Copying patched mshtml.dll...
REN %systemroot%\System32\dllcache\mshtml.dll mshtml.old
COPY "%systemdrive%\Install\SystemFiles\mshtml.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\mshtml.dll mshtml.old
COPY "%systemdrive%\Install\SystemFiles\mshtml.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched msgina.dll...
REN %systemroot%\System32\dllcache\msgina.dll msgina.old
COPY "%systemdrive%\Install\SystemFiles\msgina.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\msgina.dll msgina.old
COPY "%systemdrive%\Install\SystemFiles\msgina.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched mstask.dll...
REN %systemroot%\System32\dllcache\mstask.dll mstask.old
COPY "%systemdrive%\Install\SystemFiles\mstask.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\mstask.dll mstask.old
COPY "%systemdrive%\Install\SystemFiles\mstask.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched browselc.dll...
REN %systemroot%\System32\dllcache\browselc.dll browselc.old
COPY "%systemdrive%\Install\SystemFiles\browselc.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\browselc.dll browselc.old
COPY "%systemdrive%\Install\SystemFiles\browselc.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched url.dll...
REN %systemroot%\System32\dllcache\url.dll url.old
COPY "%systemdrive%\Install\SystemFiles\url.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\url.dll url.old
COPY "%systemdrive%\Install\SystemFiles\url.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched mydocs.dll...
REN %systemroot%\System32\dllcache\mydocs.dll mydocs.old
COPY "%systemdrive%\Install\SystemFiles\mydocs.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\mydocs.dll mydocs.old
COPY "%systemdrive%\Install\SystemFiles\mydocs.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched netshell.dll...
REN %systemroot%\System32\dllcache\netshell.dll netshell.old
COPY "%systemdrive%\Install\SystemFiles\netshell.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\netshell.dll netshell.old
COPY "%systemdrive%\Install\SystemFiles\netshell.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched wiashext.dll...
REN %systemroot%\System32\dllcache\wiashext.dll wiashext.old
COPY "%systemdrive%\Install\SystemFiles\wiashext.dll" "%systemroot%\System32\dllcache\"
REN %systemroot%\System32\wiashext.dll wiashext.old
COPY "%systemdrive%\Install\SystemFiles\wiashext.dll" "%systemroot%\System32\"
ECHO.
ECHO Copying patched iexplore.exe...
COPY "%systemdrive%\Install\SystemFiles\iexplore.exe" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\iexplore.exe" "C:\Program Files\Internet Explorer\"
ECHO.
ECHO Copying patched explorer.exe...
REN %systemroot%\System32\dllcache\explorer.exe explorer.old
COPY "%systemdrive%\Install\SystemFiles\explorer.exe" "%systemroot%\System32\dllcache\"
REN %systemroot%\explorer.exe explorer.old
COPY "%systemdrive%\Install\SystemFiles\explorer.exe" "%systemroot%\"
ECHO.
ECHO Copying new cpl files...
ECHO Beginning with access.cpl...
COPY "%systemdrive%\Install\SystemFiles\access.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\access.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now appwiz.cpl...
COPY "%systemdrive%\Install\SystemFiles\appwiz.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\appwiz.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now desk.cpl...
COPY "%systemdrive%\Install\SystemFiles\desk.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\desk.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now hdwwiz.cpl...
COPY "%systemdrive%\Install\SystemFiles\hdwwiz.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\hdwwiz.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now inetcpl.cpl...
COPY "%systemdrive%\Install\SystemFiles\inetcpl.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\inetcpl.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now intl.cpl...
COPY "%systemdrive%\Install\SystemFiles\intl.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\intl.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now joy.cpl...
COPY "%systemdrive%\Install\SystemFiles\joy.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\joy.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now main.cpl...
COPY "%systemdrive%\Install\SystemFiles\main.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\main.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now mmsys.cpl...
COPY "%systemdrive%\Install\SystemFiles\mmsys.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\mmsys.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now ncpa.cpl...
COPY "%systemdrive%\Install\SystemFiles\ncpa.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\ncpa.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now nusrmgr.cpl...
COPY "%systemdrive%\Install\SystemFiles\nusrmgr.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\nusrmgr.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now powercfg.cpl...
COPY "%systemdrive%\Install\SystemFiles\powercfg.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\powercfg.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now sysdm.cpl...
COPY "%systemdrive%\Install\SystemFiles\sysdm.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\sysdm.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now telephon.cpl...
COPY "%systemdrive%\Install\SystemFiles\telephon.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\telephon.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now timedate.cpl...
COPY "%systemdrive%\Install\SystemFiles\timedate.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\timedate.cpl" "%systemroot%\System32\"
ECHO.
ECHO And now sapi.cpl...
COPY "%systemdrive%\Install\SystemFiles\sapi.cpl" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\sapi.cpl" "%systemdrive%\Program Files\Common Files\Microsoft Shared\Speech\"
ECHO.
ECHO Installing MSN Messenger Plus
ECHO Please wait...
start /wait %systemdrive%\install\MSNMessengerPlus\MsgPlus220.exe /SilentInstallNoSponsor
ECHO.
ECHO Copying patched shell32.dll...
COPY "%systemdrive%\Install\SystemFiles\shell32.dll" "%systemroot%\System32\dllcache\"
COPY "%systemdrive%\Install\SystemFiles\shell32.dll" "%systemroot%\System32\"
ECHO.
ECHO Restarting the PC in 60 seconds...
psshutdown.exe -r -t 60 -f -m "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"
ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\install
RD /S /Q %systemdrive%\Drivers
ECHO.
EXIT

Link to comment
Share on other sites


I do 'em myself using Resource Hacker (ResHack)....

These ones use the SnowE icons....

It would be soooooooooo nice if I could change these automatically on install....it's a pain to do it otherwise :/

Link to comment
Share on other sites

I always remove the cd from the drive ( I have a pause at the start of my batch file reminding me to do so :) )...

At one poing early on in the install I do get the usual Window that pops up asking for the cd....I could go ahead and click Cancel, then Yes to confirm my choice....but of course I'm trying to make this "unattended"... so instead I've left it on the screen and awaited the automatic reboot..

Still open to any other ideas....

Link to comment
Share on other sites

Yup....after I enter my Username, my batch file comes up, telling me to remove the cd....I do so, then it copies all of the files, waits a minute and reboots...

And when I get back to Windows again, the dllcache folder has the new file, while the system32 folder has the old one...Rebuilding the Icon Cache does nothing...it's really frustrating...

It should work the same way as the uxtheme file....but it's not...

If you think it would help, I could post my batch files.... ?

Link to comment
Share on other sites

I've searched the drive after the install (using shell32 as an example, because it's the main icon file)...

The system shows 4 shell32 files.....1 in the system32 folder @ about 8.1 mb (the stock sp1 file)......1 in the dllcache folder @ 34.8 mb (my edited file)....and 1 each in 2 different hidden Hotfix uninstall folders - both of which aren't 8.1mb.

Something's screwy...and it's driving me nuts! :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...