Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

[HELP] Modifying Windows 8 system files


  • Please log in to reply
10 replies to this topic

#1
Tusticles

Tusticles

    Member

  • Member
  • PipPip
  • 228 posts
  • OS:Windows 8 x64
  • Country: Country Flag
Can someone tell me why I can't modify the system files in Windows 8 64bit? Tried Restorator and resource hacker, , replaced the img resources in DLL, backed up the original files (shell32.dll and explorerframe.dll) and replaced with the modified files, then restarted pc and guess what, the files were corrupted... restored backup, alright... Then I tried to modify the windows 8 system files in windows7( I have dual boot ), it worked, the files were not corrupted, replaced the files in windows 8 system32 dir then restarted. The files were successfully loaded but no resources changed, opened the dll in restorator and the modified image returned to default, then I opened the DLL in windows 7 and the image was different, I don't understand, Any help? Thank you.

Edited by Tusticles, 27 May 2013 - 11:36 AM.



How to remove advertisement from MSFN

#2
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 951 posts
  • OS:Windows 7 x86
  • Country: Country Flag
replace them in either safe mode or PE
think that otherwise software protection platform kicks in and prevents replacement
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#3
Dubby

Dubby

    Newbie

  • Member
  • 17 posts
  • OS:Windows 7 x64
  • Country: Country Flag
it;s already covered here:
http://www.msfn.org/...l-in-windows-8/

the last post..

#4
MrGRiM

MrGRiM

    Advanced Member

  • Member
  • PipPipPip
  • 332 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

I made my own installer with Inno Setup http://www.jrsoftware.org/isinfo.php, to patch system files using respatch files created with Restorator and then using some batch files to first save permissions of the files and then one to make a copy of the original file and move it to a directory where the file is patched, then the batch moves the original file to a backup folder and moved the modified file back, after that it restores ownership to trustedinstaller and then I have one more match file to restore the permissions.

Note: restoring ownership to trusted installer on the shell32.dll seemed to create problems but permissions can still be restored.
Here is an example of some of the batch files I made for the shell32.dll

@ECHO OFF

SET PATH1=%windir%\system32

icacls %PATH1%\shell32.dll /save shell32.AclFile

REM - End Apps & Services that MAY be using shell32.dll....
cd\
taskkill /f /IM explorer.exe
taskkill /f /IM nvvsvc.exe
taskkill /f /IM WLIDSVCM.EXE
taskkill /f /IM dllhost.exe

REM Stopping Software Protection Services
NET stop "Software Protection" /y
NET STOP SuperFetch

EXIT

@ECHO OFF
REM Set File Paths
SET PATH1=%windir%\system32
SET PATH2="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\Patching Temp1"
SET PATH3="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\ResPatch_Files"
SET PATH4="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\ResPatch_Files\FolderBand"
SET PATH5="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\ResPatch_Files\CPNavPanes"
SET PATH6="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\system32"
REM Set File Names
SET FILE1=shell32.dll
REM Taking ownership system32
takeown /a /f %PATH1%\%FILE1%
ICACLS %PATH1%\%FILE1% /Grant *S-1-5-32-544:F	
REM Copy System Files to Shell32_Patch_System_Backup
COPY /Y %PATH1%\%FILE1% %PATH2%
REM Patch System Files
%PATH3%\Patch_shell32.exe -quiet -nobackup -auto -guiless -force -dir %PATH2%
%PATH4%\Patch_shell32.exe -quiet -nobackup -auto -guiless -force -dir %PATH2%
%PATH5%\Patch_shell32.exe -quiet -nobackup -auto -guiless -force -dir %PATH2%
REM Move Original Files to Backup
Move %PATH1%\%FILE1% %PATH6%\%FILE1%
REM Move Patched Files Back
Move %PATH2%\%FILE1% %PATH1%\%FILE1%
EXIT

@ECHO OFF
REM Restore Ownership
REM icacls %windir%\system32\shell32.dll" /setowner "NT Service\TrustedInstaller" /T /C
REM Restore File Permisions
icacls "%windir%\system32" /restore "%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\AclFile\shell32.AclFile"
REM Start Software Protection
NET START "Software Protection"
START %windir%\"explorer.exe"
REM %1 is the number of seconds for the delay, as specified on the command line
>  "%Temp%.\Restart.vbs" ECHO Set wshShell = WScript.CreateObject( "WScript.Shell" )
>> "%Temp%.\Restart.vbs" ECHO ret = wshShell.Popup( "Restart Computer to Complete Changes", %~1, "Restart Windows", vbInformation )
CSCRIPT //NoLogo "%Temp%.\Restart.vbs"
DEL "%Temp%.\Restart.vbs"
EXIT


#5
Tusticles

Tusticles

    Member

  • Member
  • PipPip
  • 228 posts
  • OS:Windows 8 x64
  • Country: Country Flag

I made my own installer with Inno Setup http://www.jrsoftware.org/isinfo.php, to patch system files using respatch files created with Restorator and then using some batch files to first save permissions of the files and then one to make a copy of the original file and move it to a directory where the file is patched, then the batch moves the original file to a backup folder and moved the modified file back, after that it restores ownership to trustedinstaller and then I have one more match file to restore the permissions.

Note: restoring ownership to trusted installer on the shell32.dll seemed to create problems but permissions can still be restored.
Here is an example of some of the batch files I made for the shell32.dll

@ECHO OFF

SET PATH1=%windir%\system32

icacls %PATH1%\shell32.dll /save shell32.AclFile

REM - End Apps & Services that MAY be using shell32.dll....
cd\
taskkill /f /IM explorer.exe
taskkill /f /IM nvvsvc.exe
taskkill /f /IM WLIDSVCM.EXE
taskkill /f /IM dllhost.exe

REM Stopping Software Protection Services
NET stop "Software Protection" /y
NET STOP SuperFetch

EXIT

@ECHO OFF
REM Set File Paths
SET PATH1=%windir%\system32
SET PATH2="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\Patching Temp1"
SET PATH3="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\ResPatch_Files"
SET PATH4="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\ResPatch_Files\FolderBand"
SET PATH5="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\ResPatch_Files\CPNavPanes"
SET PATH6="%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\system32"
REM Set File Names
SET FILE1=shell32.dll
REM Taking ownership system32
takeown /a /f %PATH1%\%FILE1%
ICACLS %PATH1%\%FILE1% /Grant *S-1-5-32-544:F	
REM Copy System Files to Shell32_Patch_System_Backup
COPY /Y %PATH1%\%FILE1% %PATH2%
REM Patch System Files
%PATH3%\Patch_shell32.exe -quiet -nobackup -auto -guiless -force -dir %PATH2%
%PATH4%\Patch_shell32.exe -quiet -nobackup -auto -guiless -force -dir %PATH2%
%PATH5%\Patch_shell32.exe -quiet -nobackup -auto -guiless -force -dir %PATH2%
REM Move Original Files to Backup
Move %PATH1%\%FILE1% %PATH6%\%FILE1%
REM Move Patched Files Back
Move %PATH2%\%FILE1% %PATH1%\%FILE1%
EXIT

@ECHO OFF
REM Restore Ownership
REM icacls %windir%\system32\shell32.dll" /setowner "NT Service\TrustedInstaller" /T /C
REM Restore File Permisions
icacls "%windir%\system32" /restore "%SystemDrive%\Program Files\Virtual Customs\Shell32 Patch System Backup\AclFile\shell32.AclFile"
REM Start Software Protection
NET START "Software Protection"
START %windir%\"explorer.exe"
REM %1 is the number of seconds for the delay, as specified on the command line
>  "%Temp%.\Restart.vbs" ECHO Set wshShell = WScript.CreateObject( "WScript.Shell" )
>> "%Temp%.\Restart.vbs" ECHO ret = wshShell.Popup( "Restart Computer to Complete Changes", %~1, "Restart Windows", vbInformation )
CSCRIPT //NoLogo "%Temp%.\Restart.vbs"
DEL "%Temp%.\Restart.vbs"
EXIT


This is the only way? Checked the link posted by Dubby and no luck.

#6
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,026 posts
  • OS:none specified
  • Country: Country Flag

This is the only way?

No, there may be many others but all not "easy", "straightforward" or "safe".
Another approach, impersonate "Trusted Installer":
http://www.msfn.org/...ecking-in-win7/
http://www.msfn.org/...ustedinstaller/
maybe it works on Windows 8 too :unsure: .

jaclaz

#7
Tusticles

Tusticles

    Member

  • Member
  • PipPip
  • 228 posts
  • OS:Windows 8 x64
  • Country: Country Flag
I'll give up, f*ck this OS, it sucks, no aero, "facebook design". I get a black screen when booting in safemode. :realmad:

#8
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,026 posts
  • OS:none specified
  • Country: Country Flag

I'll give up, f*ck this OS, it sucks, no aero, "facebook design". I get a black screen when booting in safemode. :realmad:


Well, the considerations you express about the OS are most probably very correct :yes: , but the approach sounds a lot like the fox and the grapes :w00t: :
http://en.wikipedia...._and_the_Grapes

jaclaz

#9
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 951 posts
  • OS:Windows 7 x86
  • Country: Country Flag
I always use PE to change sys files, anything else is trouble :P

Edited by vinifera, 28 May 2013 - 03:59 PM.

If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#10
DosProbie

DosProbie

    Senior Member

  • MSFN Sponsor
  • 683 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

I have another option that I use that may or may not work for everyone, but when I want to update any protected system files I just take out my ssd drive from my lap pop in another drive as the master, hook up a 2.5" usb transfer cable to my orginal drive which is now just a slave, then run a simple batch file that I wrote that renames orginal system files with a .bak extension and copies over the new files, Takes less than 10 mins total to do it this way and on the plus side you don't have to deal with Windows file protection, permission-access denied popups and elabroate scripts that don't always work, praying that all goes well and that you haven't bricked your system..DPPosted Image

#11
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,880 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Unattended, thats the way to fly. I patch several system files, install and no problems because its all done to the image. Course still have to take permissions and all that.

imageres.dll=D:\APPS\_MODfiles\_X64_Win8
shell32.dll=D:\APPS\_MODfiles\_X64_Win8
spwizimg.dll=D:\APPS\_MODfiles\_X64_Win8
background_cli.bmp=D:\APPS\_MODfiles\_X64_Win8
setup.bmp=D:\APPS\_MODfiles\_X64_Win8
winpe.bmp=D:\APPS\_MODfiles\_X64_Win8
basebrd.dll=D:\APPS\_MODfiles\_X64_Win8
explorer.exe=D:\APPS\_MODfiles\_X64_Win8
img0.jpg=D:\APPS\_MODfiles\_X64_Win8
WinLGDep.dll.mui=D:\APPS\_MODfiles\_X64_Win8
Windows.UI.Immersive.dll=D:\APPS\_MODfiles\_X64_Win8
user.bmp=D:\APPS\_MODfiles\_X64_Win8
UserPicture=D:\APPS\_MODfiles\_X64_Win8
spwizres.dll.mui=D:\APPS\_MODfiles\_X64_Win8
w32uires.dll.mui=D:\APPS\_MODfiles\_X64_Win8
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN