Windows 便携式应用程序到底如何工作?

发布于 2024-08-06 15:50:44 字数 281 浏览 3 评论 0原文

便携式应用程序可以从 USB 驱动器 等运行,因此非常方便,但不幸的是它们速度很慢(因为 USB 驱动器通常速度较慢)。

便携式应用程序的安装与普通应用程序的安装究竟有何不同?

我知道他们不会创建注册表之类的,但是他们如何实现与其他“正常”应用程序相同的功能?

Portable applications can be run from USB-drives and all and are thus very convenient, but unfortunately they are slow (as a USB drive is usually slower).

How exactly does the installation of a portable app differ from that of a normal app?

I know they do not create registries and all, but then how do they achieve the same thing as other, 'normal' apps?

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

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

发布评论

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

评论(3

韶华倾负 2024-08-13 15:50:44

任何以独立方式存储所有必需信息的应用程序都可以变得“可移植”。

例如,eclipse 不需要安装并将所有首选项保留在工作区中,因此可以认为它是可移植的。

以下任何一项都不能立即移植的应用程序:

  • 使用注册表
  • 使用用户的主目录,即:“C:\Users”或“C:\Documents and Settings”
  • 将某些文件安装到硬编码位置

需要 为了使这些应用程序可移植,可以在迷你虚拟机中处理或运行它们(例如 ThinApp ),以便注册表调用和文件访问被修改为引用 USB 内的位置。

Any application that stores all required information in a self-contained way can be made "portable".

For exmaple, eclipse doesn't require installation and keeps all preferences within the workspace, so it could be considered portable.

An application which any of the following isn't immediately portable:

  • Uses the registry
  • Uses the user's home directory ie: "C:\Users" or "C:\Documents and Settings"
  • Requires installation of certain files to hard-coded locations

In order to make these applications portable they can be processed or run within a mini-VM (like ThinApp) so that calls that registry calls and file accesses are modified to refer to locations within the USB.

滿滿的愛 2024-08-13 15:50:44

它们不会在注册表或硬盘上存储任何内容。应用程序配置选项和其他设置保存在 USB 驱动器上,通常(但并非总是)以 .INI 文件或 XML 文件形式保存。

They don't store anything in the registry or on the hard disk. Application configuration options and other settings are saved on the USB drive, usually (but not always) in either an .INI file or an XML file.

昔日梦未散 2024-08-13 15:50:44

它们对需要更高级别安全性访问的系统资源(例如注册表)没有任何依赖关系,也不对拇指驱动器上的应用程序未附带的任何库有任何依赖关系(除非这些依赖关系通常是在典型安装中找到)。

大多数简单的应用程序都满足这些要求,并且假设可以通过拇指驱动器运行。

They don't have any dependencies on system resources (such as the registry) that require a higher level of security to access, nor do they have any dependencies on any libraries not shipped with the application on the thumb drive (unless the dependencies are commonly found in a typical install).

Most simple apps meet these requirements and could hypothetically be run off a thumb drive.

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