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

win6x_registry_tweak

- - - - -

  • Please log in to reply
63 replies to this topic

#1
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
EXE
Attached File  install_wim_tweak.exe   45KB   1705 downloads

SOURCE

Attached File  win6x_registry_tweak_src_v1.4.6.7z   39.38KB   689 downloads

-----------------------------------------------------------------------------------------------------
Before i start i have to say that this tool was originally released by wnuku and that i have just updated it with extra features, colours and bug fixes.

This little tool un-hides "packages" like Windows Media Center/Player, IE, IIS, Games, etc... so you can lower the size of your install.wim
Attached File  New.png   217.37KB   724 downloads
Top left is un-hiding a specific package, top right is writing the log of available files to a txt file, bottom left is un-hiding all components of an image and finally the bottom right is un-hiding all the packages from current installed OS.

install_wim_tweak.exe /?
This will show all available options..

install_wim_tweak.exe /p <MountPath>
This will unhide all the packages in the selected image

install_wim_tweak.exe /o
This will unhide all the packages on the currently installed OS

install_wim_tweak.exe /p <MountPath> /l
This will list all the packages available in the selected image and write them to a text file in the same directory.

install_wim_tweak.exe /o /l
This will list all the packages available on the installed OS and write them to a text file in the same directory.

install_wim_tweaks.exe /p <MountPath> /c Microsoft-Windows-.........
This will just inhide the selected component from the selected image, can also be used with /o. If you add /r at the end it will remove the package.


Changes made from the original version by wnuku

*/h will restore them to default (must use without /h first)

*/n will not create backups (faster)
*/d will not delete owners keys.
*/m is no longer needed, will do the task by default
*/l will output a list of all packages to a text file.
*/o will use currently installed image.
*fixed a bug where it did not work if there was a space in the mountpath.
*/c <PackageName> will un-hide specific package
* using /r with /c will remove the package
*Win32Security.dll file is no longer needed
*Added new colours, errors are displayed in Red
*Fixed bug crashing at end of running
*Fixed bug where it cannot unmount registry if something fails
*Added specific component selection
*Fixed some other bugs
*Added an appropriate small icon for the app

Also normally you will have to put the specific component name i.e.
"/c Microsoft-Hyper-V-Common-Drivers-Package~31bf3856ad364e35~x86~~6.1.7601.17514"
but if for example you put "/c Microsoft-Hyper-V-Common-Drivers-Package" it will show all packages starting with that.

F.A.Q
If you have any questions let me know...

Edited by Legolash2o, 15 August 2011 - 02:52 AM.



How to remove advertisement from MSFN

#2
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

awesome! :)




edit:

Question! I previously exported only Professional version from my installation and put the image back. After that I ran this tweak and had packages listed. There's like 500 of them, most listed for each Windows edition. Does that work as intended?


Edited by TheWalrus, 28 July 2011 - 01:42 PM.


#3
ricktendo

ricktendo

    Group: Banned Members

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,283 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Unhiding single packages is what I always wanted, thanks for this update

#4
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag

awesome! :)




edit:

Question! I previously exported only Professional version from my installation and put the image back. After that I ran this tweak and had packages listed. There's like 500 of them, most listed for each Windows edition. Does that work as intended?



What command did you exactly run? there may be abit more if there are updates installed/integrated :)

#5
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
v1.3.6 has been released, if you add /r when using the /c command it will remove the package :D

install_wim_tweak.exe /p "C:\Mount" /c Microsoft-Hyper-V-Guest-Integration-Drivers-Package~31bf3856ad364e35~amd64~~6.1.7601.17514 /r
install_wim_tweak.exe /p "C:\Mount" /c Microsoft-Hyper-V /r
install_wim_tweak.exe /p "C:\Mount" /c Microsoft-Windows-LocalPack /r

Edited by Legolash2o, 28 July 2011 - 02:42 PM.


#6
ricktendo

ricktendo

    Group: Banned Members

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,283 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks again!!!

Edited by ricktendo64, 28 July 2011 - 02:42 PM.


#7
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
1.3.7, fixed a bug with the package removal, well... i just forgot to add a line of code :P

#8
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator


awesome! :)




edit:

Question! I previously exported only Professional version from my installation and put the image back. After that I ran this tweak and had packages listed. There's like 500 of them, most listed for each Windows edition. Does that work as intended?



What command did you exactly run? there may be abit more if there are updates installed/integrated :)

Nothing too exotic.



magex /export e:\Win7\sources\install.wim 4 e:\install.wim

cut, replace the original
install_wim_tweak.exe /p e:\mount /l

The report lists it like so:

Microsoft-Windows-Security-SPP-Component-SKU-Enterprise-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Enterprise-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-HomeBasic-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-HomeBasic-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-HomePremium-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-HomePremium-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-Professional-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Professional-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-Starter-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Starter-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package~31bf3856ad364e35~amd64~~6.1.7601.





Ok I take it partially back, because the editions are not listed for all the packages. It's the weird version numbers. Why is it so? I thought this would be what'd it look like after SP installation, but this is a disk with SP already included straight from MSDN...

Do I need to remove each package for every component to get rid of it completely?

Edited by TheWalrus, 28 July 2011 - 02:56 PM.


#9
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Nothing too exotic.



magex /export e:\Win7\sources\install.wim 4 e:\install.wim

cut, replace the original
install_wim_tweak.exe /p e:\mount /l

The report lists it like so:

Microsoft-Windows-Security-SPP-Component-SKU-Enterprise-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Enterprise-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-HomeBasic-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-HomeBasic-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-HomePremium-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-HomePremium-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-Professional-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Professional-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-Starter-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Starter-Package~31bf3856ad364e35~amd64~~6.1.7601.17514
Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package~31bf3856ad364e35~amd64~~6.1.7600.16385
Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package~31bf3856ad364e35~amd64~~6.1.7601.





Ok I take it partially back, because the editions are not listed for all the packages. It's the weird version numbers. Why is it so? I thought this would be what'd it look like after SP installation, but this is a disk with SP already included straight from MSDN...

Do I need to remove each package for every component to get rid of it completely?


It's working exactly how it should. If you want you can just run...

install_wim_tweak.exe /p "e:\mount" /c Microsoft-Windows-Security-SPP-Component-SKU /r



That should remove them all :)

if you type in
Dism.exe /image:E:\mount /get-packages /format:table

they should be removed. install_wim_tweak will still list them even if they are removed, as the key still remains in the registry.

Edited by Legolash2o, 28 July 2011 - 03:02 PM.


#10
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Ah, so if I don't specify the full name, it will automatically assume a kind of wildcard? a-we-so-me!

This will make the hell of 50-pages long batch file for removing stuff much more bearable :P



#11
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
yeah if you type install_wim_tweak.exe /p "e:\Mount" /c Microsoft-Windows /r, it will remove every package containing Microsoft-Windows.

#12
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
v1.3.8, last build of the night released, fixed an issue where it could not remove a package from current windows :)

Edited by Legolash2o, 28 July 2011 - 03:30 PM.


#13
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Great. Do you have any idea why are the other versions listed though?

#14
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Don't have a clue, ask Microsoft. :P

Edited by Legolash2o, 28 July 2011 - 03:40 PM.


#15
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Is it possible to log what was actually physically deleted? Or is the program actually using DISM?

I just tried to remove several whole packages one after another and at some point file count stopped decreasing no matter what I try to remove.



edit: of course it uses DISM. Now if only the log was slightly less "talkative"...


Edited by TheWalrus, 28 July 2011 - 05:18 PM.


#16
aviv00

aviv00

    Windowaizer

  • Members
  • PipPipPipPipPip
  • 968 posts
hey Legolash2o i have idea to delete files from winsxs safely

do u want to make it ?

#17
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Sure, i'll give it a go...

#18
aviv00

aviv00

    Windowaizer

  • Members
  • PipPipPipPipPip
  • 968 posts
cool! i added ur msn waiting it to come online

#19
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Lego, could you make a small change to the /l parameter please? Currently there is no option where the list of packages will be saved to. Unless I missed something, it always gets saved in c:\Program Files\Windows AIK\Tools\PETools\, which is not even "the same directory" as the programs says :D (I understand it the way it should be saved in the mounted image's directory instead)



#20
Hybrid Keyrayder

Hybrid Keyrayder

    Newbie

  • Members
  • 19 posts
Hi legolash,

The old tweak.exe used the exit code -532459699 to define the error "registry file not found" when the path was inexistent or incorrect. Could make something similar on your version? For instance if the program finished successfully return errorlevel 0 if registry file not found then return errorlevel 1 etc.
I use it in my batch and it would really be useful for me.

#21
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

What's wrong? :-O





C:\Program Files\Windows AIK\Tools\PETools>d:\programy\install_wim_tweak.exe /p
"e:\mount"
-------------------------------------------
---------Registry Tweak Tool v1.3.8--------
---------------for Windows 6.x-------------
---------Created by Michał Wnuowski--------
-----------Modified by Legolash2o----------
-------------------------------------------

MountPath : "e:\mount"

------------------Starting-----------------
Creating BKP of registry file... OK
Mounting registry file... OK
Taking Ownership... OK
Editing 'Packages' subkeys 243/243OK
Editing 'PackagesPending' subkeys FAIL
Unhandled error occured.
Object reference not set to an instance of an object.

-------------------Ending------------------
Unmounting key... OK
Restoring Backup... OK
Removing Backup file... OK




#22
Legolash2o

Legolash2o

    Windows 7 Toolkit Programmer

  • Members
  • PipPipPipPipPipPip
  • 1,130 posts
  • OS:Windows 7 x64
  • Country: Country Flag
If you use v1.4.4, and then after run it again with /h command it will restore all values (Visibility) to default.

Hi legolash,

The old tweak.exe used the exit code -532459699 to define the error "registry file not found" when the path was inexistent or incorrect. Could make something similar on your version? For instance if the program finished successfully return errorlevel 0 if registry file not found then return errorlevel 1 etc.
I use it in my batch and it would really be useful for me.


Done, it will return error code -532459699

What's wrong? :-O





C:\Program Files\Windows AIK\Tools\PETools>d:\programy\install_wim_tweak.exe /p
"e:\mount"
-------------------------------------------
---------Registry Tweak Tool v1.3.8--------
---------------for Windows 6.x-------------
---------Created by Michał Wnuowski--------
-----------Modified by Legolash2o----------
-------------------------------------------

MountPath : "e:\mount"

------------------Starting-----------------
Creating BKP of registry file... OK
Mounting registry file... OK
Taking Ownership... OK
Editing 'Packages' subkeys 243/243OK
Editing 'PackagesPending' subkeys FAIL
Unhandled error occured.
Object reference not set to an instance of an object.

-------------------Ending------------------
Unmounting key... OK
Restoring Backup... OK
Removing Backup file... OK




This issue was caused because PackagePending subkey could not be found, in v1.4.4 it will just skip this and continue if not found.

Edited by Legolash2o, 12 August 2011 - 04:29 PM.


#23
ricktendo

ricktendo

    Group: Banned Members

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,283 posts
  • OS:Windows 7 x64
  • Country: Country Flag
THX Li

#24
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 5,766 posts
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

ok, I give it a try

#25
Octopuss

Octopuss

    I am the walrus

  • Members
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

If you use v1.4.4, and then after run it again with /h command it will restore all values (Visibility) to default.



This issue was caused because PackagePending subkey could not be found, in v1.4.4 it will just skip this and continue if not found.

I tried to remove packages from my syspreped image, so it must have something to do with that. But I didn't remove anything there so I see no reason why should it not work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN