為什麼不是所有的應用程式都是可移植的?

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

為什麼不是所有的應用程式都是可移植的?It’s a question that nags at anyone who has fallen in love with portable apps: why aren’t all applicati*** portable?

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

問題

超級使用者讀者Tom喜歡行動式應用程式提供的乾淨組織,並想知道為什麼所有東西都不可移植:

I’ve recently been trying to ‘install’ stuff a lot less on my Windows machine (I hate installers – I need to know where programs put stuff…), choosing to use portable or standalone versi*** of applicati*** instead.

I put them all in a ‘Programs’ dir on a drive separate from my Windows partition, so whenever I reinstall, I have all my applicati*** available with minimal effort and on the plus side, I get a nice clean setup.

Applicati*** like Office and Creative Suite still require me to go through a horribly long installation process where a thousand random libraries and tools are thrown across my system.

Why do Windows apps still need installing? Why can’t we just drag Photoshop to a folder à la OSX and just have it work? Does anyone else focus on portable apps, or am I just being OCD about the whole thing?

我們當然是行動式應用程式的粉絲,也希望瞭解事情的真相。

答案

超級使用者撰稿人David Whitney提供了一些關於為什麼許多應用程式不可移植以及Windows如何實施某種反可移植性安排的見解:

Installers are a result of years of evolution and a little bit of (simplified) history helps understand why they do what they do..

The Windows 3.1 model suggested config.ini style configuration files per application with supporting shared libaries going into system folders to prevent duplication and wasted disk space.

Windows 95 introduced the registry allowing a central store for application configuration replacing many configuration files. More importantly, windows configuration was stored in the same place.

The registry became bloated due to applicati*** not cleaning up after themselves. DLL hell happened as a result of multiple versi*** of the same shared libraries overwriting each other.

.NET introduced the concept of app.config (almost ini files mark 2, this time with a little more structure saving developers wasting time writing manual parsers). The GAC was introduced to version shared assemblies in an attempt to prevent DLL Hell.

In Windows XP and moreso in Vista, Microsoft attempted to define the userspace as a place to store user data and configuration files in a single standard location to allow for roamning profiles and easy migration (just copy your profile) with the applicati*** installed in Program Files.

So I guess, the reason is that “applicati*** in Windows are designed to live in one place, their shared dependencies in another, and the user specific data in another”, which pretty much works against the concept of xcopying a single location.

.. and that’s before you have to configure user accounts, and setup and ensure security permissi***, and download updates, and install windows services…

xcopy is the “simple case” and certainly isn’t a best fit for everything.

不幸的是,對於所有便攜裝置的愛好者來說,許多應用程式——尤其是像Office這樣的大型應用程式——將仍然牢牢地固定在作業系統上並分佈在整個作業系統中。


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

 

  • 發表於 2021-04-12 04:53
  • 閱讀 ( 28 )
  • 分類:網際網路

你可能感興趣的文章

萬神殿解釋:看看極簡基本作業系統桌面

...dows和macOS不同,它們只提供一個可供使用的介面。這就是為什麼我們大多數人都不知道桌面環境與核心、引導載入程式或這兩個作業系統的任何其他部分是分開的。當你不能互換零件時,區別就沒那麼重要了。 ...

  • 發佈於 2021-03-11 21:24
  • 閲讀 ( 62 )

從microsoft應用商店下載windows桌面應用程式的3個原因

...大多數情況下,轉換工作幾乎不需要接觸程式碼,這就是為什麼我們看到越來越多的桌面應用程式作為UWP應用程式提供的原因。值得注意的例子包括iTunes、Spotify、WhatsApp、Krita和Kodi。 ...

  • 發佈於 2021-03-12 08:17
  • 閲讀 ( 54 )

不要買智慧電視:買一臺roku吧!

...不像他們的智慧產品線那樣大力推廣他們的非智慧電視。為什麼?因為它們便宜多了。 ...

  • 發佈於 2021-03-14 01:49
  • 閲讀 ( 51 )

unity解釋:看看ubuntu的預設桌面環境

Ubuntu是最著名的Linux版本。這就是為什麼數百萬人第一次發現了Linux,並繼續吸引新使用者進入開源作業系統的世界。所以Ubuntu使用的介面是很多人都會看到的。 ...

  • 發佈於 2021-03-15 14:58
  • 閲讀 ( 44 )

如何在android和termux上使用linux命令列

... 為什麼使用termux? ...

  • 發佈於 2021-03-18 07:26
  • 閲讀 ( 63 )

在windows上執行linux應用程式和遊戲的4種方法

...您所需要的只是一臺可以隨時輕鬆訪問的Linux機器,那麼為什麼不考慮使用專用的Linux機器呢? ...

  • 發佈於 2021-03-24 10:20
  • 閲讀 ( 50 )

如何(以及為什麼)執行可移植版本的windows

...戶,你攜帶的東西就少了,你所有的喜好都隨你而來。 為什麼您可能需要行動式視窗 旅行是一種痛苦,尤其是飛行時。你的隨身攜帶物品有限,你的手提箱會增加飛行費用。你帶的越多,你就越後悔旅行,尤其是如果你需要...

  • 發佈於 2021-04-03 19:29
  • 閲讀 ( 38 )

什麼是副檔名?

...,但是如果您有興趣瞭解更多,請檢視我們的指南,瞭解為什麼Linux和macOS不需要副檔名。 相關:MIME型別解釋:為什麼Linux和MacOSX不需要副檔名 如果更改檔案的副檔名會發生什麼情況? 根據我們在上一節中剛剛討論的內容,當...

  • 發佈於 2021-04-05 07:11
  • 閲讀 ( 72 )

什麼是電子應用,為什麼它們變得如此普遍?

...間,而且記憶體消耗也不低。是什麼佔用了這麼多資源?為什麼開發人員使用效率如此低下的東西? 電子應用程式很容易** 桌面應用程式很難**,尤其是如果你想讓它們跨平臺的話。例如,訪問檔案系統在Windows中的工作方式...

  • 發佈於 2021-04-07 04:02
  • 閲讀 ( 44 )

如何在windows上使用fat32格式化大於32gb的usb驅動器

...T32只能用於格式化2 GB到32 GB之間的驅動器,這很可能就是為什麼Windows和其他系統上的本機工具有這樣的限制。事實是,FAT32的理論卷大小限制為16 TB,而目前的實際容量限制為8 TB,對於大多數USB驅動器來說已經足夠了。 我們將...

  • 發佈於 2021-04-07 12:08
  • 閲讀 ( 44 )
0RL484FBRJ40
0RL484FBRJ40

0 篇文章

作家榜

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

相關推薦