如何修补Windows Vista以启用自定义主题(视觉样式)

本文详细介绍了如何修补Windows Vista以允许安装自定义主题。关键步骤包括下载修补的主题文件,创建系统还原点,使用“获取所有权”工具重命名文件,并通过命令行或工具进行文件替换。修补过程中需要注意安全风险,出现问题时可通过系统还原或论坛求助。
摘要由CSDN通过智能技术生成

Have you ever wondered why Windows Vista allows you to choose themes, but there’s no way to add custom themes without additional software? The reason is because Windows checks the themes with a cryptographic key, so you have to patch windows to allow custom-created themes to install.

您是否曾经想过为什么Windows Vista允许您选择主题,但是如果没有其他软件就无法添加自定义主题? 原因是因为Windows使用加密密钥检查主题,所以您必须修补Windows以允许安装自定义主题。

image

IMPORTANT NOTE: Patching windows isn’t necessarily “safe” and shouldn’t be attempted unless you are willing to troubleshoot problems. There’s also some chance that it would void your warranty, etc etc. The point is that you might encounter problems.

重要说明:修补窗口不一定是“安全的”,除非您愿意对问题进行故障排除,否则不应尝试。 也有可能使您的保修等无效。关键是您可能会遇到问题。

First Step – Download the Patched Theme Files

第一步–下载修补的主题文件

This is an incredibly important step, as you don’t want to rename any files in the system32 directory without having the patched versions for the right version of Vista.

这是非常重要的一步,因为您不想在没有正确版本的Vista的修补程序版本的情况下重命名system32目录中的任何文件。

You’ll need to browse to the Within Windows site and download the correct version for your operating system. If you are running SP1, make sure you get the correct version, whether 32-bit or 64-bit.

您需要浏览到“ Windows内”站点,并下载适用于您的操作系统的正确版本。 如果您正在运行SP1,请确保获得正确的版本,无论是32位还是64位。

Update: If you are using 64-bit Vista, use the file that says AMD64, even if you have an Intel chip.

更新:如果您使用的是64位Vista,则即使您使用Intel芯片,也请使用显示AMD64的文件。

image

There are three .dll files included in this package:

此程序包中包含三个.dll文件:

  • themeui.dll

    themeui.dll
  • uxtheme.dll

    uxtheme.dll
  • shsvcs.dll

    shsvcs.dll

All of these files are normally located in the C:\Windows\System32 directory. Those files will need to be replaced with the patched versions in order to enable custom themes.

所有这些文件通常都位于C:\ Windows \ System32目录中。 这些文件将需要替换为修补版本,以启用自定义主题。

Once you’ve downloaded the files you’ll need to extract them using a utility that can process .rar files, like WinRar or the free jZip utility. Make sure that you have extracted the files before you move on to the next step!

下载完文件后,您需要使用可以处理.rar文件的实用程序将其解压缩,例如WinRar或免费的jZip实用程序 。 在继续下一步之前,请确保已解压缩文件!

Second Step – Create a System Restore Point

第二步–创建系统还原点

You should create a system restore point before moving fowards, just in case there are any problems, so you can roll things back.

向前移动之前,您应该创建一个系统还原点,以防万一出现任何问题,以便将其回滚。

Create a System Restore Point in Windows Vista

在Windows Vista中创建系统还原点

Patching Files Using Take Ownership Utility

使用Take Ownership Utility修补文件

Patching these files is easiest if you use the Take Ownership context menu item, which will help you assign ownership of these files to your user account which will allow you to rename the files.

如果使用“ 获取所有权”上下文菜单项 ,修补这些文件是最简单的,这将帮助您将这些文件的所有权分配给您的用户帐户,从而允许您重命名文件。

Browse down to C:\Windows\System32\ and then put the following into the search box so you can see all the files at the same time (make sure to use capital letters for “OR”)

向下浏览到C:\ Windows \ System32 \,然后将以下内容放入搜索框,以便您可以同时查看所有文件(确保对“或”使用大写字母)

themeui.dll OR uxtheme.dll OR shsvcs.dll

themeui.dll或uxtheme.dll或shsvcs.dll

image

Right-click on the files and choose “Take Ownership” from the menu, and then click through all the UAC prompts.

右键单击文件,然后从菜单中选择“所有权”,然后单击所有UAC提示。

Now you’ll need to rename the files and append .old to the end of the file (either right-click and choose Rename or use the F2 key).

现在,您需要重命名文件,并在文件末尾附加.old(右键单击并选择“重命名”或使用F2键)。

image

At this point you should have 3 files with the .old extension. Whatever you do, DO NOT RESTART your computer at this step, or you’ll be using system restore and probably asking for help on our forum.

此时,您应该有3个扩展名为.old的文件。 无论您做什么,都不要在此步骤中重新启动计算机,否则您将使用系统还原,并且可能会在我们的论坛上寻求帮助

image

Now we need to copy the patched files into the system32 folder. You can just type C:\windows\system32\ into the address bar, and then copy / paste or drag the patched files you downloaded into this folder.

现在,我们需要将修补的文件复制到system32文件夹中。 您只需在地址栏中键入C:\ windows \ system32 \,然后将下载的修补文件复制/粘贴或拖动到此文件夹中。

image

The most important thing here is to make sure that those three files are sitting in the System32 folder. Now you should be able to restart your computer.

这里最重要的是确保这三个文件位于System32文件夹中。 现在,您应该能够重新启动计算机了。

Patch Theme Files Using the Command Line

使用命令行修补主题文件

I recommend using the take ownership script above, rather than this method, but for completeness I’ll explain it as well.

我建议使用上面的“获取所有权”脚本,而不是使用这种方法,但是为了完整起见,我还将对其进行解释。

First you’ll need to open a command prompt in Administrator mode by right-clicking the command prompt and choosing Run as Administrator, and then run these commands to take ownership of the files, and then grant access to the administrators group:

首先,您需要在管理员模式下打开一个命令提示符,方法是右键单击该命令提示符并选择“以管理员身份运行”,然后运行以下命令以获取文件的所有权,然后将访问权限授予管理员组:

takeown /f c:\windows\system32\themeui.dll

带上/fc:\windows\system32\themeui.dll

takeown /f c:\windows\system32\uxtheme.dll

带上/fc:\windows\system32\uxtheme.dll

takeown /f c:\windows\system32\shsvcs.dll

带上/fc:\windows\system32\shsvcs.dll

icacls c:\windows\system32\themeui.dll /grant administrators:F

icacls c:\ windows \ system32 \ themeui.dll / grant管理员:F

icacls c:\windows\system32\uxtheme.dll /grant administrators:F

icacls c:\ windows \ system32 \ uxtheme.dll / grant管理员:F

icacls c:\windows\system32\shsvcs.dll /grant administrators:F

icacls c:\ windows \ system32 \ shsvcs.dll / grant管理员:F

Note: Whatever you do, don’t try and run takeown *.*, because taking ownership of every single file in the windows directory is going to cause all sorts of problems.

注意:无论您做什么,都不要尝试运行takeown *。*,因为获得Windows目录中每个文件的所有权将导致各种问题。

Now that you have taken ownership of the files, you can rename the files to *.old by running these commands:

现在您已拥有文件的所有权,可以通过运行以下命令将文件重命名为* .old:

ren c:\windows\system32\themeui.dll c:\windows\system32\themeui.dll.old

ren c:\ windows \ system32 \ themeui.dll c:\ windows \ system32 \ themeui.dll.old

ren c:\windows\system32\uxtheme.dll c:\windows\system32\uxtheme.dll.old

任c:\ windows \ system32 \ uxtheme.dll c:\ windows \ system32 \ uxtheme.dll.old

ren c:\windows\system32\shsvcs.dll c:\windows\system32\shsvcs.dll.old

任c:\ windows \ system32 \ shsvcs.dll c:\ windows \ system32 \ shsvcs.dll.old

Note: at this point you should be very careful to NOT RESTART your computer, because if you do so things will break.

注意:这时您应该非常小心,不要重新启动计算机,因为这样做可能会导致故障。

Now you can copy the files that you downloaded and extracted into the system32 directory by running a command similar to this one (adjusting for wherever you extracted them to)

现在,您可以通过运行与此命令类似的命令(将其提取到的位置进行调整),将下载并提取的文件复制到system32目录中。

copy c:\users\geek\downloadedfileshere\* c:\windows\system32\

复制c:\ users \ geek \ downloadedfileshere \ * c:\ windows \ system32 \

At this point you can now restart your computer.

此时,您现在可以重新启动计算机。

How to Un-Patch Your System

如何取消系统补丁

If you want to reverse the process, you can simply remove the .dll files that you copied, and then rename the .old files back to .dll.

如果要撤消此过程,只需删除复制的.dll文件,然后将.old文件重命名为.dll。

What To Do if You Have Problems

如果遇到问题该怎么办

If you are having any problems, you should unpatch the system first, or can run System Restore to put the system back to normal. If you are still having problems, head over to our forums and ask your question there.

如果遇到任何问题,则应首先为系统打补丁,或者可以运行系统还原将系统恢复正常。 如果您仍然遇到问题,请转到我们的论坛并在此处提问。

Where to Find Custom Visual Styles

在哪里可以找到自定义视觉样式

If you want to download the custom theme from the first screenshot above, it’s called Ways of Light and can be found here.

如果您想从上面的第一个屏幕截图中下载自定义主题,则将其称为Ways of Light,可以在此处找到

One of the best places to find custom visual styles is deviantART:

查找自定义视觉样式的最佳场所之一是deviantART:

Browse Vista Visual Styles on deviantART

在deviantART上浏览Vista视觉样式

NEXTLevel

下一级

This is one of my favorite themes:

这是我最喜欢的主题之一:

image

Download the NEXTLevel theme.

下载NEXTLevel主题

How to Install a Custom Visual Style

如何安装自定义视觉样式

When you download and extract a custom Visual Style, you’ll need to copy them into the C:\Windows\Resources\Themes directory, usually into a new folder:

下载并解压缩自定义视觉样式时,需要将它们复制到C:\ Windows \ Resources \ Themes目录中,通常复制到新文件夹中:

image

You’ll want to make sure that the folder contains the visual style file within it, and not within a subdirectory of the theme folder:

您需要确保该文件夹中包含视觉样式文件,而不是主题文件夹的子目录中:

image

Note: Some visual styles are structured incorrectly and will have problems. Read this post for more information.

注意:某些视觉样式的结构不正确,会出现问题。 阅读 这篇文章 以获取更多信息。

Now that you’ve patched Windows and installed the theme, you need to open the Classic appearance dialog by right-clicking on the Desktop, choosing Personalize, then Window Color and Appearance. Then you can click the link at the bottom to open the classic appearance properties dialog:

现在,您已经修补了Windows并安装了主题,您需要打开“经典外观”对话框,方法是右键单击桌面,选择“个性化”,然后选择“窗口颜色和外观”。 然后,您可以单击底部的链接以打开经典外观属性对话框:

image

Now you can choose the theme in the list. Note that some themes are based off the Window Aero theme and will show the same name, so if one is selected then just choose the other one. You’ll need to have Aero available in order to use a theme based on Aero, of course.

现在,您可以在列表中选择主题。 请注意,某些主题基于Window Aero主题,并且将显示相同的名称,因此,如果选择了一个,则只需选择另一个即可。 当然,您需要使用Aero才能使用基于Aero的主题。

image

At this point you should be able to see your new custom themes. Enjoy!

此时,您应该可以看到新的自定义主题。 请享用!

翻译自: https://www.howtogeek.com/howto/windows-vista/how-to-patch-windows-vista-to-enable-custom-themes-visual-styles/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值