為什麼無法在windows中同時解除安裝多個程式?

假設您有一小群程式要在Windows系統上解除安裝,但Windows只允許您一次解除安裝一個程式。為什麼?是什麼阻止您同時解除安裝多個程式?...

為什麼無法在windows中同時解除安裝多個程式?

假設您有一小群程式要在Windows系統上解除安裝,但Windows只允許您一次解除安裝一個程式。為什麼?是什麼阻止您同時解除安裝多個程式?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Jeroen Bollen想知道為什麼一個人不能在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.

是什麼阻止人們在Windows中同時解除安裝多個程式?

答案

超級使用者貢獻者ultrasawblade和techie007為我們提供了答案。首先,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 reas*** 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.

然後是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.


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 10:47
  • 閱讀 ( 31 )
  • 分類:網際網路

你可能感興趣的文章

如何在debian和ubuntu中使用apt並告別apt-get

... 但他們為什麼要這樣做,真正改變的是什麼? ...

  • 發佈於 2021-03-13 11:28
  • 閲讀 ( 56 )

7個免費的windows工具來自動執行重複的任務

...體是一件痛苦的事,但解除安裝所有軟體則更糟。這就是為什麼我依賴於批次解除安裝應用程式的方法。 ...

  • 發佈於 2021-03-14 01:07
  • 閲讀 ( 58 )

這就是軟體安裝程式在windows、macos和linux上的工作方式

...的命令。但是當你執行安裝程式或者發出命令時,會發生什麼呢? ...

  • 發佈於 2021-03-14 18:20
  • 閲讀 ( 48 )

瞭解如何使用python虛擬環境

...用Python虛擬環境,那麼您可以處理的專案就沒有限制了!為什麼不學習如何讀寫谷歌工作表,為自己創造一個新的工作環境呢。 ...

  • 發佈於 2021-03-16 10:00
  • 閲讀 ( 58 )

使用新電腦前的9件事

... 當您的電腦遇到問題,無法啟動時,USB恢復驅動器可以幫助您解決這些問題。恢復驅動器將您的電腦引導到Windows恢復環境中,該環境由許多有用的實用程式組成。 ...

  • 發佈於 2021-03-20 06:53
  • 閲讀 ( 56 )

如何從windows雙啟動pc安全解除安裝ubuntu

... 還需要時不時地使用Linux嗎?為什麼不使用微軟商店中的Windows subsystem for Linux軟體在Windows內部安裝Linux呢?或者,看看如何禁用UEFI安全引導來雙引導任何系統。 ...

  • 發佈於 2021-03-21 17:45
  • 閲讀 ( 50 )

如何在pc上下載、安裝和更新directx

... 為什麼要安裝這麼多directx版本? ...

  • 發佈於 2021-03-25 16:40
  • 閲讀 ( 54 )

修復:我的網路攝像頭無法在Windows10上工作

...器並重新啟用裝置。 相關:如何禁用網路攝像頭(以及為什麼要禁用) 安裝或更新網路攝像頭驅動程式 當你自動連線一個裝置時,windows10會嘗試安裝裝置驅動程式,而且它通常都能正常工作。但它並不總是正常工作。在某些...

  • 發佈於 2021-04-04 05:57
  • 閲讀 ( 49 )

windows10的新bashshell所能做的一切

...ux發行版 相關報道:在windows10上,Ubuntu、openSUSE和Fedora有什麼區別? 秋季Creators更新還支援多個Linux發行版,以前只有Ubuntu可用。最初,您可以安裝Ubuntu、openSUSE-Leap、SUSE-Linux-Enterprise-Server、Debian-GNU/Linux或Kali-Linux。Fedora也即將推...

  • 發佈於 2021-04-06 14:44
  • 閲讀 ( 58 )

如何在windows10上安裝和使用linux bash shell

...行版很快就要上市了。 關於windows10的bashshell你需要知道什麼 相關:Windows10新BashShell的所有功能 這不是一個虛擬機器、一個容器或為Windows編譯的Linux軟體(比如Cygwin)。相反,windows10提供了一個完整的Windows子系統,用於執行Lin...

  • 發佈於 2021-04-06 16:32
  • 閲讀 ( 55 )
vq207902
vq207902

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦