BoardBabe Posted February 3, 2005 Share Posted February 3, 2005 Hey!Im trying to replace notepad.exe, by replacing in windir windir\system32 and windir\dllcahce, as well as edit filelist.xml in windir\resources. Works fine!However i get a message box up after a few secs, to inser XP recovery CD to recover ntoepad. I can click cancel a couple of times and its, ok. But how do i get rid of this message? Link to comment Share on other sites More sharing options...
Astalavista Posted February 3, 2005 Share Posted February 3, 2005 u need to disable windows file protection. Link to comment Share on other sites More sharing options...
tjhart85 Posted February 3, 2005 Share Posted February 3, 2005 You can also try AUTOIT and make a simple script that will wait for the error to pop up and just click cancel for you.You also have the option of replacing NOTEPAD.EX_ in your I386 directory. Just MODIFYPE the file, and then MAKECAB it (and rename it to notepad) Link to comment Share on other sites More sharing options...
DigeratiPrime Posted February 3, 2005 Share Posted February 3, 2005 what about just renaming the ORIGINAL file and changing the extension from .exe to .old then copy the NEW notepad.exe into that folder. Also you can try Safemode.I personally use/reccomend the method tjhart85 describes with Slipstreaming NOTEPAD.EX_ Link to comment Share on other sites More sharing options...
RyanVM Posted February 3, 2005 Share Posted February 3, 2005 A quick note - modifyPE isn't necessary unless you're hacking a file. You can just makecab the file and put it on the CD without that step. Link to comment Share on other sites More sharing options...
Afterdawn Posted February 3, 2005 Share Posted February 3, 2005 If you need to do it manually, remove your WINXP CD and you execute this command from a CMD:del notepad.exe /f /s /q /aNow place your own version of notepad.exe in the folders where notepad.exe was deleted.You can do this with every Windows file you want. Link to comment Share on other sites More sharing options...
BoardBabe Posted February 3, 2005 Author Share Posted February 3, 2005 Here is how I do it: cmdow @ /HID@echo offIF EXIST D:\WIN51 set CDROM=D:IF EXIST E:\WIN51 set CDROM=E:IF EXIST F:\WIN51 set CDROM=F:IF EXIST G:\WIN51 set CDROM=G:IF EXIST H:\WIN51 set CDROM=H:IF EXIST I:\WIN51 set CDROM=I:IF EXIST J:\WIN51 set CDROM=J:REM 1. Prevent the protected file system from doing its thing. attrib -r -h -s %systemroot%\system32\dllcache ren %systemroot%\system32\dllcache\notepad.exe notepad.bak.exe attrib +r +h +s %systemroot%\system32\dllcache REM REM 2. Make backup copies of Notepad in the Windows and System32 folders. copy /Y "%systemroot%\system32\notepad.exe" "%systemroot%\system32\notepad.bak.exe" copy /Y "%systemroot%\notepad.exe" "%systemroot%\notepad.bak.exe" REM REM 3. Copy Notepad to the Windows and System32 folders. copy /Y "%CDROM%\PROGRAMVARE\NOTISBLOKK2\notepad.exe" "%systemroot%\system32\dllcache\notepad.exe" copy /Y "%CDROM%\PROGRAMVARE\NOTISBLOKK2\notepad.exe" "%systemroot%\notepad.exe" copy /Y "%CDROM%\PROGRAMVARE\NOTISBLOKK2\notepad.exe" "%systemroot%\system32\notepad.exe" REMREM 4. Register Notepad settingsREGEDIT /S "%CDROM%\PROGRAMVARE\NOTISBLOKK2\konfigurasjon.reg"EXITBut this makes the Windows File Protection dialogue pop up.I would like to have an option in WPI (im using this on my unattend) to be able to choose wether to install notepad2 or not, so "slipstreaming" by replacing in i386 dir is not the "perfect" option for me.Is the AUTOIT solution the only option? Link to comment Share on other sites More sharing options...
maxXPsoft Posted February 3, 2005 Share Posted February 3, 2005 NO autoit although I use is not the only option. I run scripts and replace it (Notepad) with ConText which is more dynamic cause it allow's file's to be modded while they are open in it. Link to comment Share on other sites More sharing options...
BoardBabe Posted February 3, 2005 Author Share Posted February 3, 2005 Im not really a scripter, and don't get how to make autoit click cancel on that messagebox that pops-up.Could you show me how to make this exe/script? Link to comment Share on other sites More sharing options...
Afterdawn Posted February 3, 2005 Share Posted February 3, 2005 I personally don't like to replace notepad.exe itself, so I run a command-line tool that replaces all instances of notepad in metapad in the registry! (And I put metapad.exe in the system32 and windows folder!)I use this tool:http://www.resplendence.com/rrcomline (20-day trial) Link to comment Share on other sites More sharing options...
BoardBabe Posted February 3, 2005 Author Share Posted February 3, 2005 That's interesting, but it might cause problems since notepad2 has entries in the register. So replacing all "notepad" will replace also notepad2 instances. Im really a n00b at this, but if it makes sence what im saying it will not work :/How about if i replace the NOTEPAD.EX_ in i386 as suggested, how exactly do i extract and do this? Link to comment Share on other sites More sharing options...
BoardBabe Posted February 4, 2005 Author Share Posted February 4, 2005 to replace the NOTEPAD.ex_ is the only thing i have to do toCMDmodifyPE -c Notepad.exemakecab Notepad.exeI get a notepad.ex_ have i done it correct to replace notepad.ex in i386 now? Link to comment Share on other sites More sharing options...
MHz Posted February 4, 2005 Share Posted February 4, 2005 Notepad 2, nice choice. A spin-off of Scite. File associations is the best method. Leaves Notepad, but, hehe, unwanted. Scite4Autoit3 is my only editor. Link to comment Share on other sites More sharing options...
RyanVM Posted February 4, 2005 Share Posted February 4, 2005 to replace the NOTEPAD.ex_ is the only thing i have to do toCMDmodifyPE -c Notepad.exemakecab Notepad.exeI get a notepad.ex_ have i done it correct to replace notepad.ex in i386 now?Yeah, that should be all you have to do. Link to comment Share on other sites More sharing options...
BoardBabe Posted February 4, 2005 Author Share Posted February 4, 2005 Ok, sweet. Let me know if you are able to make a script to auto this instead pls. Cancel the WFP dialog ++. 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