Windows 便携式应用程序到底如何工作?
便携式应用程序可以从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
任何以独立方式存储所有必需信息的应用程序都可以变得“可移植”。
例如,eclipse 不需要安装并将所有首选项保留在工作区中,因此可以认为它是可移植的。
以下任何一项都不能立即移植的应用程序:
需要 为了使这些应用程序可移植,可以在迷你虚拟机中处理或运行它们(例如 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:
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.
它们不会在注册表或硬盘上存储任何内容。应用程序配置选项和其他设置保存在 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.
它们对需要更高级别安全性访问的系统资源(例如注册表)没有任何依赖关系,也不对拇指驱动器上的应用程序未附带的任何库有任何依赖关系(除非这些依赖关系通常是在典型安装中找到)。
大多数简单的应用程序都满足这些要求,并且假设可以通过拇指驱动器运行。
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.