Slimming Down Windows XP The Complete Guide 【 10章完整版 】

               

  网上有一个汉化好的 压榨XP手册 是基于他的汉化版 现在我贴出的是英文原版

你还可以向作者捐献15$以便获得一个自动优化XP的脚本

原文:http://www.bold-fortune.com/forums/index.php?showforum=13

Thanks go out to Fred Langa for his acknowledgment of Slimming Down windows

Bold,

Awesome job on the "Slimming Down XP" article. I especially like the fact that your penchant for deleting files is tempered by the idea that (1) the OS should still work as required and (2) that there be zero errors in the Event Viewer. Like you, I can't stand errors in the Event Viewer; makes me feel dirty! And any schmuck can delete files willy-nilly, but it takes real talent, thought, and patience to do it the way you did. I can only imagine how long all the trial and error must have taken. Years, I'd bet.

Anyway, just wanted to drop a note letting you know that your efforts are appreciated.

Ugly Genius


Why I Don't Use Programs Like XPLite and nLite

Sure, programs can be written that will remove some applications and their specifics. Many programmers use the "inf file method". That is to say, if files are listed within the .inf file for a certain windows component, all you have to do is remove those particular files, and wallah! component gone.

Deleting whole components, however, oftentimes also removes some files that are necessary to an individual's use of a computer.

Users put their computers to many different uses. And all have very different needs from another.

Let me give you a couple of examples of what I'm talking about.

You decide you no longer want windows Media Player on your system.

You set your file removal program to delete all files associated with WMP. ...Which would mean that you also won't be needing the codecs installed for WMP. So you set the program to also delete all WMP codecs.

But you're also a big fan of Yahoo Chat.

Only now, you can't get Yahoo Chat to work properly. You want to talk with your friends in Voice, but you no longer have the ability...because along with all the other WMP codecs, you've deleted the specific codecs that allow this function.

So now we're talking about a program that would have to have a setting to delete windows Media Player and all its codecs, while keeping only the codecs needed by Yahoo Chat.

There are many other variables that would also need to be written into the program. It would have to take into consideration all of the many individual users who all put their computers to all very different uses.

You don't play games on the Internet.

Then you won't be needing all the DirectX files. Unless you decide you like windows Media Player after all. Then you're going to need to keep nine specific DirectX files on your system.

In this instance, you would need incorporated into your file removal program a special setting that would single out and keep the specific DirectX files needed for WMP, while deleting the other ninety-six DirectX files that you won't be needing because you don't play games on the Internet.

You elect to remove DirectX with your file-removal program.

You don't play games on the Internet. You could care less if windows Media Player needs nine DirectX files, because you never use it anyway, and you had the program remove WMP too.

Then you make yourself a nice TV dinner. Grab a bottle of pop from the refrigerator. And make yourself comfortable in front of your computer. It's movie time!

You pop in a DVD. Up springs NVDVD Player. Only it's telling you, "Sorry, you don't seem to have the proper files installed on your system."

You see, NVDVD Player needs seven specific DirectX files to work.

So you decide to re-install DirectX so you can watch your movie.

And now you've defeated your purpose (Remember your purpose?) to remove all unnecessary files from your system. ...Because now you have ninety-eight DirectX files installed on your system that you really don't need.

File removal programs give you a choice: keep an entire windows component and all its associated files, or remove the component completely, and lose function elsewhere.

You set your program to remove the Computer Management and Disk Management.

(The only reason I personally would have for accessing Computer Management would be to utilize Disk Management. The only reason I would have for utilizing Disk Management would be to format a drive. I do that with XP's installation disk during the installation process. The only utilities I need in Computer Management are the Services and Event Viewers, and I can access them both from my Start Menu.)

Your program takes out these files:

capesnpn.dll....Microsoft Certificate Template Management Extension
certmgr.dll.....Certificate MMC (Microsoft Management Console) Snap-In Tool
certmgr.msc.....
compmgmt.msc....Computer Management Console
diskmgmt.msc....Disk Management Console
DISKPART.EXE....
DmAdmin.exe.....Local Disk Manager Administrative Service
dmconfig.dll....Logical Disk Manager Configuration Library
dmdlgs.dll......Disk Management Snap-in Dialogs
dmdskmgr.dll....Disk Management Snap-in Support Library
dmdskres.dll....Disk Management Snap-in Resources
dmintf.dll......Disk Management DCOM Interface Stub
dmocx.dll.......TreeView OCX
DMREMOTE.EXE....Logical Disk Manager
DmServer.dll....Logical Disk Manager service dll
dmutil.dll......Logical Disk Manager Utility Library
dmview.ocx......Disk Management Snap-in
fsmgmt.msc......Microsoft Common Console Document (Shared Folders)
localsec.dll....Local Users and Groups MMC Snapin
lusrmgr.msc.....Microsoft Common Console Document
mmcshext.dll....MMC Shell Extension DLL
mycomput.dll....Computer Management
ntmsapi.dll.....Removable Storage Public Interfaces
ntmsmgr.dll.....Removable Storage Service
osuninst.dll....Uninstall Interface
sendcmsg.dll....Send Console Message
smlogcfg.dll....Performance Logs and Alerts Snap-in

Oops! Now you can't get into your Device Manager, because Device Manager is dependent upon the dmocx.dll.

See what I mean? There are just too many variables involved. It is impossible to have a file removal program remove whole components without disrupting an individual's use of a computer. Many times, while removing components, these programs remove along with them files that also have other uses.

"Aha!" you say. "nLite has an 'additional files to keep' box. Why not use this nLite feature to keep all the files you don't want it to remove along with certain whole components?"

With some 1,800 individual system32 files alone, a person would have quite a few decisions to make. You would really need to know your stuff to setup that program effectively.

And it is not always just about the choices we make about which files to keep or delete. It is also about which registry entries should be intact after the installation.

Some files we delete should never be UnRegistered...meaning their registry entries, or at least some of them, should never be removed. The files themselves can be removed, but UnRegister them, and you've got problems.

If certain files are removed before the installation, their registry entries are not delivered to the registry. Would it not follow, that if some their registry entries are needed, that they would not be present?

Some people refuse to look at this, or choose ignore it. I personally believe it is one of the reasons programs that remove files pre-installation are doomed to forever leave the individual user with post-installation problems

Take for example my favorite (or at least one of the more interesting) .OCX files, the daxctle.ocx.

This one .OCX file is attached to 11,741 Registry Keys and 12,864 Values under HKEY_CLASSES_ROOT/Interface...and every one of them will be removed by UnRegistering it.

11,741 registry Keys and 12,864 Values That's a lot. ...No, that's really, really a lot. And those numbers show up after I have run registry cleaners. I have seen it associated with as many as 13,583 Registry Keys before any registry cleaner was used.

It's not so much I need the daxctle.ocx on my system, I don't. But UnRegistering it removes registry entries which belong additionally to other files I do need on my system. I can delete the daxctle.ocx, no problem. But UnRegister it, and WMP10 will not play...anything.

Here are a few other examples of files I delete, but I do not UnRegister.

initpki.dll.....(Microsoft Trust Installation and Setup). Contains functions that support encryption. Should I UnRegister this file, I experience a few problems with Internet Explorer displaying certain items on web pages, and also some problems entering certain web sites. I can delete the initpki.dll and no such problems will occur...just so long as I do not UnRegister it.

mssip32.dll.....(MSSIP32 Forwarder DLL). Should I UnRegister this file, Microsoft Update will not function. I can delete the mssip32.dll and Microsoft Update will still function...just so long as I do not UnRegister it.

softpub.dll.....(Softpub Forwarder DLL). Contains functions that support encryption. Should I UnRegister this file, I experience a few problems with Internet Explorer displaying certain items on web pages, and also some problems entering certain web sites. I can delete the softpub.dll and no such problems will occur...just so long as I do not UnRegister it.

---------------------------------------

Many people have asked me for my batch files. I have declined to release them to the general public. I will however help you get started making your own batch files. You can then add any individual files you want to them. Which individual files you choose to remove from your system will be entirely up to you.

I have incorporated a failsafe feature into my batch files.

Files and folders will be moved and saved (Not deleted permanently. Later that will be up to you.) to a backup folder on C:/. The backup folder is simply named "Backup".

Within the Backup folder, you will find the files and folders you removed, in smart placement. Their order of appearance will be identical to how XP's files and folders appear on your C Drive.

When you remove files and folders from the windows and system32 directories, in the Backup folder you will first see a windows folder. Within the windows folder you will see the individual files and subfolders you removed, including the system32 folder. And within the system32 folder you will see its individual files and subfolders you removed. The same applies to the Documents and Settings and the Program Files directories.

I created this smart placement so you would always know exactly where these files and folders came from should you decide to replace any to their original locations.

Note: Be sure to temporarily delete the Backup folder filled with files and subfolders before using any registry
cleaners. The registry cleaners will more than likely correct the files paths to the Backup folder, rather than remove their paths.


This batch file I designed with individual system32 files in mind.

Copy and Paste between the lines to Notepad. Save as "any name you choose.bat" Then insert your file choices where I have mine.

CODE
IF NOT EXIST "c:/backup/WINDOWS/system32" md c:/backup/WINDOWS/system32
MOVE c:/WINDOWS/system32/$winnt$.inf c:/backup/WINDOWS/system32/
MOVE c:/WINDOWS/system32/aaaamon.dll c:/backup/WINDOWS/system32/
MOVE c:/WINDOWS/system32/ac3filter.cpl c:/backup/WINDOWS/system32/


I designed this particular batch file below a little differently, with the inf folder files in mind. As with the system32 batch file above, it will "move and save" (not delete) files to a Backup folder on C:/.

This one, however, will move all files in the inf folder (C:/WINDOWS/inf), and will instantaneously return the inf files you choose to keep to the inf folder. All this takes place so fast you'll think the files you chose to keep never moved at all.

CODE
IF NOT EXIST "c:/backup/WINDOWS/inf" md c:/backup/WINDOWS/inf
MOVE c:/WINDOWS/inf/*.* c:/backup/WINDOWS/inf/
IF NOT EXIST "c:/WINDOWS/inf" md c:/WINDOWS/inf
MOVE c:/backup/WINDOWS/inf/865.INF c:/WINDOWS/inf/
MOVE c:/backup/WINDOWS/inf/acpi.inf c:/WINDOWS/inf/
MOVE c:/backup/WINDOWS/inf/branches.inf c:/WINDOWS/inf/


---------------------------------------

One very important step before we set about deleting files together.

Create a full system backup image using a good backup program like Acronis or Ghost.

This backup image should be of a full install of XP. It should include all of your programs, drivers, setting changes, and tweaks applied...everything you normally do to make your windows experience an enjoyable one.

So now when you set about deleting files, you'll always have a the perfect safeguard. And you should never have to say on a forum, "I deleted this, and now that doesn't work!"

Well, revert back to your backup image, and don't delete that anymore.

---------------------------------------

The first thing I do is download the "Preview Version of XPLite." It's really makes it easy to disable windows File Protection.

Go to this page. In the upper right-hand corner click on "Download Preview".

http://www.litepc.com/xppreview.html

Open its zip folder and copy the "XPLite_TRIAL.exe" to your Desktop or a folder of your choice.

Open it and go to its "Windows File Protection" tab. Select "Disabled" and then "Apply". Close the program and reboot your computer.

---------------------------------------

This registry tweak helps me easily UnRegister DLL and OCX Files I remove.

It puts two entries into the right-click context menu: "Register" and "UnRegister" when you highlight and right-click on a single DLL or OCX File, or when you highlight and right-click on multiple DLL and OCX Files.

It really makes Registering and UnRegistering DLL and OCX Files very easy. Plus it gives me the ability to UnRegister multiples (even hundreds) of these files at once.

CODE
windows Registry Editor Version 5.00

;Add register / unregister to the context menu for .dll files
[HKEY_CLASSES_ROOT/.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT/dllfile]
@="Application Extension"
[HKEY_CLASSES_ROOT/dllfile/Shell/Register/command]
@="regsvr32.exe /"%1/""
[HKEY_CLASSES_ROOT/dllfile/Shell/UnRegister/command]
@="regsvr32.exe /u /"%1/""

;Add register
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值