如何从 C:\Windows\winsxs 中删除一个文件夹?

发布于 2024-09-03 13:58:50 字数 391 浏览 3 评论 0原文

我已经安装了: Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

并获得以下文件夹: x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91 x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a

我已经卸载了重新分发包,但它们继续在那里。

我想删除它们,因为我想测试我的程序而不安装任何东西(我在另一台计算机上构建它时包含了这些 dll)。

那么,如何从 C:\Windows\winsxs 中删除这些文件夹呢?

预先感谢:D

I've installed:
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

and got the following folders:
x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91
x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a

I allready uninstalled the redistribute package but they continue overthere.

I want to remove them because I want to test my program without installing nothing (I've included those dll's when building it in another computer).

So, how can I remove those folders from C:\Windows\winsxs?

Thanks in advance :D

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

吻风 2024-09-10 13:58:50

您应该尝试使用 rem 命令通过(管理员)命令行删除它们。

You should try to remove them via (Administrator) Command Line using the rem command.

月竹挽风 2024-09-10 13:58:50

你可以使用Windows自带的dism从WinSXS中删除一些不需要的东西。就我而言,它留下了 vc90 的一份副本,但也许其他人会更幸运:

  1. 以管理员身份打开 Powershell

  2. dism /online /Cleanup-image /StartComponentCleanup

You can remove some unneeded things from WinSXS using dism that comes with Windows. In my case, it left one copy of vc90 behind but perhaps others will be luckier:

  1. Open Powershell as administrator

  2. dism /online /Cleanup-image /StartComponentCleanup

夜雨飘雪 2024-09-10 13:58:50

直接修改注册表或文件系统有点危险,因为有很多与已安装的程序集相关的额外配置数据。

这些文件仍然存在的事实并不会造成太大的危害(WinSxS 是一个缓存),重要的是系统是否将它们视为已安装。我在博客中介绍了如何实现此目的: http: //blogs.msdn.com/b/talagrand/archive/2010/03/02/9973115.aspx

Modifying the registry or filesystem directly is a bit dangerous, since there's a lot of extra configuration data associated with installed assemblies.

The fact that those files are still present doesn't do great harm (WinSxS is a cache), what's important is whether the system treats them as installed or not. I've blogged about how to accomplish this here: http://blogs.msdn.com/b/talagrand/archive/2010/03/02/9973115.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文