Tại sao không phải tất cả các ứng dụng đều có thể di chuyển?

Mục lục:

Tại sao không phải tất cả các ứng dụng đều có thể di chuyển?
Tại sao không phải tất cả các ứng dụng đều có thể di chuyển?

Video: Tại sao không phải tất cả các ứng dụng đều có thể di chuyển?

Video: Tại sao không phải tất cả các ứng dụng đều có thể di chuyển?
Video: Thay đổi công cụ tìm kiếm mặc định trên Microsoft edge Windows 10 | namloan✔️ - YouTube 2024, Tháng tư
Anonim
Image
Image

Đó là câu hỏi đặt ra ở bất kỳ ai đã yêu thích ứng dụng di động: tại sao không tất cả các ứng dụng di động?

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 dành cho cộng đồng.

Câu hỏi

Người đọc siêu người dùng Tom yêu thích ứng dụng di động tổ chức sạch sẽ cung cấp và muốn biết tại sao mọi thứ không thể di chuyển được:

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 versions of applications 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 applications available with minimal effort and on the plus side, I get a nice clean setup.

Applications 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?

Chúng tôi chắc chắn là người hâm mộ của các ứng dụng di động và cũng muốn tìm hiểu về mọi thứ.

Câu trả lời

Người đóng góp của SuperUser David Whitney cung cấp một số thông tin chi tiết về lý do tại sao nhiều ứng dụng không di động và cách Windows thực thi một loại sắp xếp chống di động:

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 applications not cleaning up after themselves. DLL hell happened as a result of multiple versions 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 applications installed in Program Files.

So I guess, the reason is that “applications 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 permissions, and download updates, and install windows services…

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

Thật không may cho người hâm mộ của tất cả mọi thứ di động, nhiều ứng dụng đặc biệt là các ứng dụng lớn như Office - sẽ vẫn cố định và phân phối trên toàn bộ hệ điều hành.

Có cái gì để thêm vào lời giải thích? Â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: