Tại sao bạn không thể gỡ bỏ nhiều chương trình đồng thời trong Windows?

Mục lục:

Tại sao bạn không thể gỡ bỏ nhiều chương trình đồng thời trong Windows?
Tại sao bạn không thể gỡ bỏ nhiều chương trình đồng thời trong Windows?

Video: Tại sao bạn không thể gỡ bỏ nhiều chương trình đồng thời trong Windows?

Video: Tại sao bạn không thể gỡ bỏ nhiều chương trình đồng thời trong Windows?
Video: Bài 004 - Hướng dẫn phân vùng và định dạng ổ cứng trong Linux - YouTube 2024, Tháng Ba
Anonim
Giả sử bạn có một loạt các chương trình mà bạn muốn gỡ cài đặt trên hệ thống Windows của mình, nhưng Windows sẽ chỉ cho phép bạn gỡ cài đặt từng chương trình một. Tại sao vậy? Điều gì ngăn bạn gỡ cài đặt nhiều chương trình cùng một lúc?
Giả sử bạn có một loạt các chương trình mà bạn muốn gỡ cài đặt trên hệ thống Windows của mình, nhưng Windows sẽ chỉ cho phép bạn gỡ cài đặt từng chương trình một. Tại sao vậy? Điều gì ngăn bạn gỡ cài đặt nhiều chương trình cùng một lúc?

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Câu hỏi

Trình đọc siêu người dùng Jeroen Bollen muốn biết tại sao một người không thể gỡ cài đặt đồng thời nhiều chương trình trong Windows:

Why does Windows keep you from uninstalling or removing multiple programs simultaneously? What is the reasoning behind this? Will it mess up an internal system?

I do not want to uninstall multiple programs simultaneously, I am simply looking for the reason(s) why it would not be an option.

Điều gì ngăn cản mọi người gỡ cài đặt nhiều chương trình cùng một lúc trong Windows?

Câu trả lời

SuperUser đóng góp ultrasawblade và techie007 có câu trả lời cho chúng tôi. Đầu tiên, ultrasawblade:

If you read anything about how the Windows installer system works, it is obvious that they applied some ideas from transactional databases to program installation and maintenance, not to mention that .msi files themselves are a database.

There is always the question in designing any database – do you want speed or accuracy/safety? Given that installers can modify a system’s configuration and that a mishap could render the system inoperable, safety has been given a priority over speed.

One of the reasons why .msi installers are so slow is because rollback files are made for each file, etc. that will be modified, then deleted afterwards, allowing any changes to be “rolled back” if something goes wrong in the middle of things (such as a power outage or system crash).

Now, I believe the MSI engine itself enforces installing, modifying, or removing only one program at a time. If you try to run an .msi file while another is uninstalling for example, it will either not run, or will wait for the currently running uninstall process to finish. Non-MSI installers may not behave this way since they do not use the MSI engine. But because of this safety design decision, this is probably why appwiz.cpl insists on letting only one uninstaller be called at once.

CCleaner allows you to kick off uninstallers without waiting for previously running ones to finish, but MSI installers will likely still not work in parallel due to the above.

Tiếp theo là câu trả lời từ techie007:

This really only applies to programs that use the Windows Installer system.

If a program uses their own (un)installer systems, then there is nothing stopping you from running another uninstaller at the same time.

The Windows Installer limits the number of instances to avoid conflicts being made by multiple programs while they are changing system-wide (often shared) settings and files.

Most uninstallers track what they are changing so they can roll back successfully if there is a failure. If one is not aware of all the changes being made (by other uninstallers), then it may actually make things WORSE if it tries to roll back a failed install.

The Windows Installer system was created with the intention of being a unified system for all application developers to use (on Windows) in order to help avoid problems like these.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: