bigred Posted August 12, 2003 Share Posted August 12, 2003 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:NECHO.ECHO Installing Pre-Sp2 Updates for IE6 and OE6...start /wait %systemdrive%\install\Hotfixes\q818060.exe /Q:A /R:NECHO.ECHO Installing Windows Media Player 9 Security Update...start /wait %systemdrive%\install\Hotfixes\WindowsMedia9-KB819639-x86-ENU.exe /Q:A /R:NECHO.ECHO Copying patched UXTheme.dll...REN %systemroot%\System32\dllcache\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\Uxtheme\uxtheme.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\uxtheme.dll uxtheme.oldCOPY "%systemdrive%\Install\Uxtheme\uxtheme.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched shdocvw.dll...REN %systemroot%\System32\dllcache\shdocvw.dll shdocvw.oldCOPY "%systemdrive%\Install\SystemFiles\shdocvw.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\shdocvw.dll shdocvw.oldCOPY "%systemdrive%\Install\SystemFiles\shdocvw.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched mstsc.exe...REN %systemroot%\System32\dllcache\mstsc.exe mstsc.oldCOPY "%systemdrive%\Install\SystemFiles\mstsc.exe" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\mstsc.exe mstsc.oldCOPY "%systemdrive%\Install\SystemFiles\mstsc.exe" "%systemroot%\System32\"ECHO.ECHO Copying patched mshtml.dll...REN %systemroot%\System32\dllcache\mshtml.dll mshtml.oldCOPY "%systemdrive%\Install\SystemFiles\mshtml.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\mshtml.dll mshtml.oldCOPY "%systemdrive%\Install\SystemFiles\mshtml.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched msgina.dll...REN %systemroot%\System32\dllcache\msgina.dll msgina.oldCOPY "%systemdrive%\Install\SystemFiles\msgina.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\msgina.dll msgina.oldCOPY "%systemdrive%\Install\SystemFiles\msgina.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched mstask.dll...REN %systemroot%\System32\dllcache\mstask.dll mstask.oldCOPY "%systemdrive%\Install\SystemFiles\mstask.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\mstask.dll mstask.oldCOPY "%systemdrive%\Install\SystemFiles\mstask.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched browselc.dll...REN %systemroot%\System32\dllcache\browselc.dll browselc.oldCOPY "%systemdrive%\Install\SystemFiles\browselc.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\browselc.dll browselc.oldCOPY "%systemdrive%\Install\SystemFiles\browselc.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched url.dll...REN %systemroot%\System32\dllcache\url.dll url.oldCOPY "%systemdrive%\Install\SystemFiles\url.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\url.dll url.oldCOPY "%systemdrive%\Install\SystemFiles\url.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched mydocs.dll...REN %systemroot%\System32\dllcache\mydocs.dll mydocs.oldCOPY "%systemdrive%\Install\SystemFiles\mydocs.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\mydocs.dll mydocs.oldCOPY "%systemdrive%\Install\SystemFiles\mydocs.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched netshell.dll...REN %systemroot%\System32\dllcache\netshell.dll netshell.oldCOPY "%systemdrive%\Install\SystemFiles\netshell.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\netshell.dll netshell.oldCOPY "%systemdrive%\Install\SystemFiles\netshell.dll" "%systemroot%\System32\"ECHO.ECHO Copying patched wiashext.dll...REN %systemroot%\System32\dllcache\wiashext.dll wiashext.oldCOPY "%systemdrive%\Install\SystemFiles\wiashext.dll" "%systemroot%\System32\dllcache\"REN %systemroot%\System32\wiashext.dll wiashext.oldCOPY "%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.oldCOPY "%systemdrive%\Install\SystemFiles\explorer.exe" "%systemroot%\System32\dllcache\"REN %systemroot%\explorer.exe explorer.oldCOPY "%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 PlusECHO Please wait...start /wait %systemdrive%\install\MSNMessengerPlus\MsgPlus220.exe /SilentInstallNoSponsorECHO.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%\installRD /S /Q %systemdrive%\DriversECHO.EXIT Link to comment Share on other sites More sharing options...
DaveXP Posted August 12, 2003 Share Posted August 12, 2003 Were you get all the hacks from. Good Work Link to comment Share on other sites More sharing options...
DaveXP Posted August 12, 2003 Share Posted August 12, 2003 its WFP that doing it remove the Cd from the drive after you get to the first batch file that should work. Link to comment Share on other sites More sharing options...
bigred Posted August 12, 2003 Author Share Posted August 12, 2003 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 More sharing options...
bigred Posted August 12, 2003 Author Share Posted August 12, 2003 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 More sharing options...
Aaron Posted August 12, 2003 Share Posted August 12, 2003 So you've removed the cd at the very start, but the files still get reverted back to their original versions? Link to comment Share on other sites More sharing options...
bigred Posted August 12, 2003 Author Share Posted August 12, 2003 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 More sharing options...
DaveXP Posted August 12, 2003 Share Posted August 12, 2003 There could be a hidden system folder with the files back up if they get change you can never be sure wat M$ are doing with there OS's. Link to comment Share on other sites More sharing options...
bigred Posted August 12, 2003 Author Share Posted August 12, 2003 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 More sharing options...
DaveXP Posted August 14, 2003 Share Posted August 14, 2003 explorer, iexplorer and notepad which i have hacked work ok when copying maybe its one of you cpl files cause the system to restart the files before it copys or some thing like that. Link to comment Share on other sites More sharing options...
bigred Posted August 14, 2003 Author Share Posted August 14, 2003 Nah...I got it worked out...the key for me is rebooting after I install the hotfixes....and before I change all of the system files...I think my CD is finally perfect! Link to comment Share on other sites More sharing options...
Mpak Posted August 15, 2003 Share Posted August 15, 2003 bigred, FileInUse, InUse.exe from Win2k ResKit is not for you?http://support.microsoft.com:80/support/kb...s/q228/9/30.asp Link to comment Share on other sites More sharing options...
bigred Posted August 15, 2003 Author Share Posted August 15, 2003 Thanks Mpak...but I'm using the RunOnce key to run my batch file....and it's working fine. I've tried too many things to change something now! Link to comment Share on other sites More sharing options...
Geckotek Posted August 15, 2003 Share Posted August 15, 2003 I wish we could find a way to hack the WFP and change all the files we wanted in the i386 folder on the CD instead of copying them after the install. GRRRRR Link to comment Share on other sites More sharing options...
DaveXP Posted August 15, 2003 Share Posted August 15, 2003 Here is a hacked copy of the windows file protection and the reg file needed to disable ithttp://www.geocities.com/davessitexp/and its for SP1 Link to comment Share on other sites More sharing options...
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