• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Legolash2o

win6x_registry_tweak

131 posts in this topic

look at the DISM and pkgmgr logs in C:\Windows\logs

0

Share this post


Link to post
Share on other sites

Thanks, Lego, hadn't seen this yet. Only found it on accident because someone posted a link over here.

http://mikecel79.wordpress.com/2012/02/20/dism-gui-4-0-feature-requests/#comment-204

Does running the DISM remove-feature with the online switch rip everything out of the SXS folder reducing your C: drive ? Or does it just remove the feature from the OS and we can run dism enable-feature without requiring the DVD (i.e. files are still in SXS)

install_wim_tweak.exe /o

This will unhide all the packages on the currently installed OS

Edited by MrJinje
0

Share this post


Link to post
Share on other sites

Found how to clean up WinSxs after removing components:

run "dism /Cleanup-Image /StartComponentCleanup"

don't forget /online or /image: keys :rolleyes:

0

Share this post


Link to post
Share on other sites

I've also found this last year when playing with the Remove flag. The command is now shown in the CBs.log. There is also an async version of it.

0

Share this post


Link to post
Share on other sites

please, can someone post a common "hungry resources" w8 feature list to remove without system-break risk? thanks

0

Share this post


Link to post
Share on other sites

Can I use this tool to uninstall and re-install Windows Defender?

Win8 64-bit Pro. Windows Defender Service is running but when I try to run Windows Defender app to bring up the control panel for it I get:

"An error ocurred in the program during initialization.....

error code 0x80073b01

I must have changed a registry setting or something to break it but in true MS fashion, the error message has no meaningful info aside from the error code which when Googled appears to be a rare error.

0

Share this post


Link to post
Share on other sites

please, can someone post a common "hungry resources" w8 feature list to remove without system-break risk? thanks

Know it's an old thread, but interested in this too. Have a fully up to date install.win @ a staggering 5gb.

Have done some tweaking & removal with dism though nothing considerable! Most 3rd party tools either refuse to work or totally break install!

0

Share this post


Link to post
Share on other sites

I am getting the below "The system cannot find the file specified" error when trying to remove packages with install_wim_tweak. I am trying to remove packages using a WinXP SP3 x86 host system.

set MNT="E:\Mnt\Win7ProNSP1"
install_wim_tweak.exe /p %MNT% /r /c Microsoft-Windows-BLB-Client-Package~31bf3856ad364e35~amd64~en-US~6.1.7601.17514

-------------------------------------------
--------Registry Tweak Tool v1.4.6.0-------
---------------for Windows 6.x-------------
---------Created by Michal Wnuowski--------
-----------Modified by Legolash2o----------
-------------------------------------------

MountPath : "E:\Mnt\Win7ProNSP1"
Component : "Microsoft-Windows-BLB-Client-Package"

------------------Starting-----------------
Creating BKP of registry file... OK
Mounting registry file... OK
Taking Ownership... OK
Editing 'Packages' subkeys 1/1OK
Editing 'PackagesPending' subkeys 1/1OK
Modifying registry completed sucessfully.
Unmounting key... OK
Removing 'Packages'... 1/1The system cannot find the file specified
OK
Removed packages successfully.
Removing 'PackagesPending'... 1/1The system cannot find the file specified
OK
Removed packages successfully.

-------------------Ending------------------

Update: Figured it out if I use dism.exe instead it works fine. I used install_wim_tweak to unhide all the packages.

install_wim_tweak /p %MNT%
dism /image:%MNT% /Remove-Package /PackageName:Microsoft-Windows-Backup-Package~31bf3856ad364e35~amd64~en-US~6.1.7601.17514

The way I recommend is that to:

0. Set your vars

set MNT="E:\Mnt\Win7ProNSP1"

1. Use install_wim_tweak to unhide all the packages

install_wim_tweak /p %MNT%

2. Use DISM to get a list of all packages and export it to a text file:

dism /image:%MNT% /Get-Packages > Dism_Get_Packages_List.txt

3. Then use a text editor with good search/replace functionality and replace "Package Identity : " with "dism /image:%MNT% /Remove-Package /PackageName:" and remove all other metadata lines. Then go through that full package list and delete or REM out the lines for the packages you don't want to remove (using pdf from liquid0624 for reference to choose). Save that as a batch file and run.

Edited by robertcollier4
0

Share this post


Link to post
Share on other sites

hey guys, very usefull thread, indeed. I used install_wim_tweak on a mounted image and unhid the packages. I ran the "get-packages" dism command and saved the list to a ms word file (the list of packages is like 30 pages and it's only the names like "Microsoft-Media-Foundation-Package~31bf3856ad364e35~x86~~6.1.7600.16385").

my image is win7 sp1 x86.

the problem is that when I try to run " /get-packageinfo /packagename: ... " dism command, most of the time I get an error message saiyng: "the specified package is not valid Windows package". For instance it shows such an error for the package I mentioned above.

So is it that despite tweaking the image with install_wim_tweak, dism still will not be able to get and display the info, the content of the package ? the feauters?

If so, is there any documentations describing these packages ?

otherwise, how am I supposed to know what I am removing ?

cheers,

eveafterdark

PS just to be more specific: the 30 pages list is created when running install_wim_tweak with /l, no idea why there's so many of them ...
running dism get-packages creates shorter list with some info like this: Release Type : Language Pack

Edited by eveafterdark
0

Share this post


Link to post
Share on other sites

Is a /h key a really working? When I put it as parameter to restore original permissions for registry, install_wim_tweak just ignore it and take ownership again:

D:\Test>utils\install_wim_tweak /p Mount /h---------------------------------------------------Registry Tweak Tool v1.4.6.0----------------------for Windows 6.x----------------------Created by Michal Wnuowski-------------------Modified by Legolash2o-----------------------------------------------------MountPath : "Mount"------------------Starting-----------------Creating BKP of registry file...         OKMounting registry file...                OKTaking Ownership...                      OKEditing 'Packages' subkeys        571/571OKEditing 'PackagesPending' subkeys        FAIL - Key not existModifying registry completed sucessfully.-------------------Ending------------------Unmounting key...                        OK
0

Share this post


Link to post
Share on other sites

Is a /h key a really working? When I put it as parameter to restore original permissions for registry, install_wim_tweak just ignore it and take ownership again:

D:\Test>utils\install_wim_tweak /p Mount /h---------------------------------------------------Registry Tweak Tool v1.4.6.0----------------------for Windows 6.x----------------------Created by Michal Wnuowski-------------------Modified by Legolash2o-----------------------------------------------------MountPath : "Mount"------------------Starting-----------------Creating BKP of registry file...         OKMounting registry file...                OKTaking Ownership...                      OKEditing 'Packages' subkeys        571/571OKEditing 'PackagesPending' subkeys        FAIL - Key not existModifying registry completed sucessfully.-------------------Ending------------------Unmounting key...                        OK

have u check the list package available with dism command?

dism /image:"mounted drive" /get-packages > "path to save file"\"name of the list package file".txt 
0

Share this post


Link to post
Share on other sites
have u check the list package available with dism command?

dism /image:"mounted drive" /get-packages > "path to save file"\"name of the list package file".txt 

Yes, I realized that /h key doesn't restore original permissions for a registry but only hides back a packages. Will try to do it by SubinACL.

0

Share this post


Link to post
Share on other sites

have u check the list package available with dism command?

dism /image:"mounted drive" /get-packages > "path to save file"\"name of the list package file".txt 

Yes, I realized that /h key doesn't restore original permissions for a registry but only hides back a packages. Will try to do it by SubinACL.

kels have stated in the previous post :

*/d will not delete owners keys.

is that what u means? but u need to use that before unhide the hidden package...

0

Share this post


Link to post
Share on other sites

So I used this to delete the pre installed flash on my computer because I have windows 8 and IE was fucking up but all other browsers are shitty with playing videos so I need IE back. Can anyone tell me how I can get flash for IE 11 back?

0

Share this post


Link to post
Share on other sites

So I used this to delete the pre installed flash on my computer because I have windows 8 and IE was f***ing up but all other browsers are s***ty with playing videos so I need IE back. Can anyone tell me how I can get flash for IE 11 back?

 same thing here. want to know how i could re-install the built in flash? i know i could install flash from adobe.com, but is there a way to re-install the built in flash in win 8.1? Thanks guys :)

0

Share this post


Link to post
Share on other sites

 same thing here. want to know how i could re-install the built in flash? i know i could install flash from adobe.com, but is there a way to re-install the built in flash in win 8.1?

You need to first extract the adobe flash .cab from a .wim that still has it. 

 

What's that ?  You don't know how to extract packages from a .wim, try Bubbles Super Nasty SFX Extractor Tool.  (written by myself and bubbles)  The trick apparently is to do all this under the TrustedInstaller account so that things extract properly (don't worry, instructions included).  It helps you create a package that can be re-inserted via DISM add-package command (or something similarly easy). 

 

http://forums.mydigitallife.info/threads/48325-VBScript-Aunty-Mel-s-Cheap-And-Nasty-SxS-Package-Extractor-%28Updated-2013-09-30%29/page2?p=848055&viewfull=1#post848055

0

Share this post


Link to post
Share on other sites

I've uploaded 1.4.7 which just adds credits to Aviv00. I've noticed how bad/messy/un-organised the code is. :(

 

So if anyone is interested, I'm willing to tidy it up a bit? Possibly add a GUI to it (but still have the same commands).

1

Share this post


Link to post
Share on other sites

I've uploaded 1.4.7 which just adds credits to Aviv00. I've noticed how bad/messy/un-organised the code is. :(

 

So if anyone is interested, I'm willing to tidy it up a bit? Possibly add a GUI to it (but still have the same commands).

 

I wrote this a week or three ago, the packages tabpage is basically an install_wim_tweak gui.  It does wildcards, unhides single packages, pre-populated drop-down list, etc.  All credits to Lite8 / Aviv00 for the original idea back in 2008 that everyone has since stolen. 

 

380467687a69e22308fee990e334135c.png

1

Share this post


Link to post
Share on other sites

Guys, I've a problem concerning Windows 7 SP1.

 

I downloaded the install image directly from Digital River. It is an official image of Windows 7 from Microsoft with Service Pack 1.

 

What bothers me is the fact that this image have 7600 SxS cache files, not just the indexes (manifests). Because when I do a "Light" version of Win7 ver7600 I got 1.5GB occupied on disk. When I try to repeat the procedure with Win7 ver7601 I got 3.4GB occupied on disk.

 

I am using install_wim_tweak.exe to unhide the packages, and when I remove them to hide them back again.

 

The other glitch is that I am unable to remove the following packages:

Microsoft-Windows-Client-Wired-Network-Drivers-packageMicrosoft-Windows-Common-Modem-Drivers-packageMicrosoft-Windows-Printer-Drivers-packageMicrosoft-Windows-Tuner-Drivers-package

Basically these are Drivers packages, but I do not need them. When I try to remove them using DISM i got error: 1168.

And have to discard all changes on the image.

 

When i use install_wim_tweak with /r option I have an error message saying File not found. And when I check with dism /get-packages, the questioned ones are still there.

 

Checked the DISM logs, and I got there a lot of E_PATH_NOTFOUND and ACCESSDENIED errors.

It seems that a file is missing from these packages. How can I find which one is this file?

 

If I leave the mentioned packages untouched, and try to boot the 3.4GB "lighted" Win7ver7601 I always got:

'winload.exe' Windows cannot verify the digital signature for this file 

even before the install procedure had begun.

 

Of course I had pressed F8 choose

"Disable driver signing"

 

but then I got an error saying that classpnp.sys is not found. Which is not true because the file is located in \windows\system32\drivers\ and in the same time it is in the SxS cache directory.

 

Have you ever had a chance to modify Win7SP1 in any way using DISM and Install_wim_tweaks?

Edited by DreamworlD
0

Share this post


Link to post
Share on other sites

Of course you will have 7600 files, SP is an update to the RTM system, not a new system, it doesn't replace all of its components
 

install_wim_tweak /p C:\mount /c Microsoft-Windows-Common-Modem-Drivers-Packagedism /image:C:\Mount /remove-package /packagename:Microsoft-Windows-Common-Modem-Drivers-Package~31bf3856ad364e35~x86~~6.1.7601.17514install_wim_tweak /p C:\mount /h /c Microsoft-Windows-Common-Modem-Drivers-Package
Edited by abbodi1406
0

Share this post


Link to post
Share on other sites

I'm trying to use this tool to unlock permissions on a .wim mounted using DISM. Before I tried this tool on the mounted wim I tried adding driver packages and receive:

 

Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SOFTWARE
2015-02-04 13:02:44, Info                  
CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/Mount/Windows/System32/config/SOFTWARE, the client may still need it open. [hrESULT = 0x80070005 - E_ACCESSDENIED]
 
There is a similar error for config\SYSTEM,SECURITY,SAM,COMPONENTS, and DEFAULT. I have set administrator to the owner of these files and given full control with the intent to set back after.
 
I receive the same error even after having run: install_wim_tweak.exe /p <MountPath>
 
I'm still getting the same error. Is there a way to use this wim_tweak tool to get rid of the error and allow the addition of the driver packages? I think I need to unlock these registry keys maybe? I have ran both the wim_tweak tool and DISM as admin so I don't believe that is the issue. Also added an exclusion to AV so it isn't scanning the mount location.
 
Thanks
0

Share this post


Link to post
Share on other sites

i was removing Adobe Flash Package manually through PowerShell.

Needless to say this is much easier!

 

Tested, confirmed.

Thanks

 

M4TOqIV.png

Edited by ElChapo
0

Share this post


Link to post
Share on other sites

Would be nice to have some gui for the noobs like me, i usually use wintoolkit because i can see what i whant to do or not do.

 

I dont understand  DISM functions, imagex  etc ...

 

Or maybe a new wintoolkit  who wil unhide the component packages.

 

I have tried install_wim_tweak but i have registry file errors, i am trying to modify an install.wim file to remove like : cortana, xbox  ....  from my windows 8.1 x64,   do i need  more files ??

 

thks

Edited by coromonadalix
0

Share this post


Link to post
Share on other sites

I thought I'd make a friendly request here for someone to compile the latest version of install_wim_tweak to run on .NET4(.6). This way, one shouldn't have install an entire .NET runtime on Windows 10 in order remove a couple of components.

0

Share this post


Link to post
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.