MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically.

Windows 7 component remover

Recommended Posts

I just wanted to let you know that I released a new version of remove (v0.9; see first post). It has mainly a few bug fixes, some new xmls, dependency checking is implemented and seems to be working (skip with -n) and there a few new command line options (-n and -b for benchmarking).

I know it's been a while and in the meantime Windows 8 is out, but I'm still working on it, though not so frequently any more.

Let me know how it works for you.

@smilodon: If you're still around, can you test this release and report back?

Share this post

Link to post

Share on other sites

I've been using previous versions without problem but I'm having an issue with v0.9. I'm getting an error and the image size is not shrinking.

I am calling this from a batch file, using the command:

Remove.exe -d "..\..\..\Config\RemoveFiles" -m "%MountDir%"

The XMLs have been updated with the new ones in the zip.

The output says:

Checking dependencies..Read xml files and gather information.. ..reading xml files..100% [========================================================================] ..resolving folder wildcards.. ..resolving file wildcards.. ..resolving registry wildcards.. ..resolving package dependencies..100% [========================================================================] ..done!Write batch file.. ..directories.. ..files.. ..deleteLine entries.. ..done!Write .reg file.. ..done!Removing components.. ..backing up permissions.. ..setting permissions and removing files..100% [========================================================================] ..removing registry entries.. ..editing files.. 0% [= ]Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.Odd number of elements in anonymous hash at script/remove.pl line 1070.100% [========================================================================] ..restoring permissions and removing temporary files....done!

Share this post

Link to post

Share on other sites

hmm, I missed that warning before releasing it. It's fixed, but since it's a purely cosmetic issue, it will have to wait until the next release. But, it's nothing to worry about. I just tested it and it works all right. Your image size does not shrink if you do not export the modified image from the ortiginal wim file to a new one. I use imagex for that (imagex /export), but there are other tools out there (windows 7 toolkit springs to mind). Have you tested the installation in a virtual machine? Did it remove the components you selected?