Jump to content
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. ×

Windows 7 component remover


 Share

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?

Link to comment
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% [= ]O
dd 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!

Link to comment
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?

Thanks for reporting the bug!

Link to comment
Share on other sites

I do export the image. I have a scripting system in place that automates the entire customization process. The only thing I'm changing is replacing remove.exe. I'm using XMLs from the v0.9 zip.

When looking at your git hub, version 73b2d4 on date 2013-01-23 and all previous versions work as expected.

http://sourceforge.net/p/w7cr/git/ci/820b07d62b7ea3cbac16a2d1611f33031bafe939/log/?path=/remove/bin/remove.exe

Without running remove.exe, the ISO size is 5,153,614 KB.

Using remove.exe from the v0.9 zip, the size is 5,148,822 KB

Using remove.exe from tree 73b2d4, the size is 4,299,794 KB.

I didn't thoroughly test it in VirtualBox; but at a glance, wordpad and some other things were still there.

Edited by NateExMachina
Link to comment
Share on other sites

  • 8 years later...
Posted (edited)

If anybody is still working on this:

 

Error

C:\remove>remove
remove: extraction of C:\Users\SIW2\AppData\Local\Temp\par-53495732\cache-765dd4
40b03a8366b2b9ad7839b678612be6013d/remove.exe (custom Perl interpreter) failed (
errno=17)

C:\remove>

These are the files in the temp folder it refers to

remove-error.png.71319ba7c87d9a3746c95f902e7cef97.png

 

Edited by SIW2
Link to comment
Share on other sites

  • 5 months later...

Huh! I'm surprised people still use this. :huh:


As to your error, I assume you are using the latest version on sf.net. Unfortunately, I don't know what caused this error. It seems to be a problem with Perl. What you can try is to delete the whole "par-53495732" folder, reboot the computer and try to run it again.

By the way, if you run it without mounting or extracting a windows installation image into mount, you will get the following error:

It seems, the Windows installation wim file is not mounted in mount!

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...