Portable application

Portable application
A USB drive can carry portable applications

A portable application (portable app), sometimes also called standalone, is a computer software program designed to run independently from an operating system. This type of application is stored on a removable storage device such as a CD, USB flash drive, flash card, or floppy disk – storing its program files, configuration information and data on the storage medium alone.

Portable applications can be run on any computer system with which they are compatible but typically require a specific operating system (such as Microsoft Windows XP or above, certain version of a Linux distro, etc.)

Depending on the operating system, portability is more or less complex to implement; to operating systems such as AmigaOS, all applications are by definition portable. Portable apps are distinct from software portability where software allows its source code to be compiled for different computing platforms.

Contents

Portable Windows applications

A portable application does not leave its files or settings on the host computer. Typically the application does not write to the Windows registry or store its configuration files (such as an INI file) in the user's profile; instead, it stores its configuration files in the program's directory. Another requirement, since file paths will often differ on changing computers due to variation in Windows drive letter assignments, is the need for applications to store them in a relative format. While some applications have options to support this behavior, many programs are not designed to do this. A common technique for such programs is the use of a launcher program to copy necessary settings and files to the host computer when the application starts and move them back to the application's directory when it closes.

An alternative strategy for achieving application portability within Windows, without requiring application source code changes, is application virtualization: An application is "sequenced" or "packaged" against a runtime layer that transparently intercepts its file system and registry calls, then redirects these to other persistent storage without the application's knowledge. This approach leaves the application itself unchanged, yet portable.

The same approach [1] is used for individual application components: run-time libraries, COM components or ActiveX, not only for the entire application. As a result, when individual components are ported in such manner they are able to be: integrated into original portable applications, repeatedly instantiated (virtually installed) with different configurations/settings on the same operating system (OS) without mutual conflicts. As the ported components do not affect the OS-protected related entities (registry and files), the components will not require administrative privileges for installation and management.

Microsoft saw the need for an application-specific registry [2] for its Windows operating system as far back as 2005. It eventually incorporated some of this technology, using the techniques mentioned above, via its Application Compatibility Database [3] using its Detours [4] code library, into Windows XP. It did not, however, make any of this technology available via one of its system APIs.

Portability on Linux and UNIX-like systems

Programs written with a Unix-like base in mind often do not make any assumptions. Whereas many Windows programs assume the user is an administrator—something very prevalent in the days of Windows 95/98/ME (and to some degree in Windows XP/2000, though not in Windows Vista)—such would quickly result in "Permission denied" errors in Unix-like environments since users will be in an unprivileged state much more often. Programs are therefore generally designed around using the HOME environment variable to store settings (e.g. $HOME/.w3m for the w3m browser). The dynamic linker provides an environment variable LD_LIBRARY_PATH that programs can use to load libraries from non-standard directories. Assuming /mnt contains the portable programs and configuration, a command line may look like:

HOME=/mnt/home/user LD_LIBRARY_PATH=/mnt/usr/lib /mnt/usr/bin/w3m www.example.com

A linux application without need for a user-interaction (e.g. adapting a script or environment variable) on varying directory paths can be achieved with the GCC Linker option $ORIGIN which allows a relative library search path.[5]

Not all programs honor this – some completely ignore $HOME and instead do a user lookup in /etc/passwd to find the home directory, therefore thwarting portability.

Some Linux distributions already have native support for portable apps (Super OS, with RUNZ files).

There are also cross-distro package formats that don't require installation or admin rights to run.[6]

See also

References

  1. ^ Portable Wrapper[dead link]
  2. ^ Portable Application Registry
  3. ^ Secrets of the Application Compatibility Database
  4. ^ Microsoft Research Detours
  5. ^ Hustvedt, Eskild (2009-02-08). "Our new way to meet the LGPL". http://blog.linuxgamepublishing.com/2009/02/08/our-new-way-to-meet-the-lgpl/. Retrieved 2011-03-09. "You can use a special keyword $ORIGIN to say ‘relative to the actual location of the executable’. Suddenly we found we could use -rpath $ORIGIN/lib and it worked. The game was loading the correct libraries, and so was stable and portable, but was also now completely in the spirit of the LGPL as well as the letter!" 
  6. ^ "AppImages". http://www.elementary-project.com/wiki/index.php?title=AppImages. Retrieved 2010-07-25. 

Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Portable application creators — allow the creation of portable applications (also called: portable apps). They usually use application virtualization. Contents 1 Creators of independent portable applications 2 Related software 3 See also …   Wikipedia

  • Portable Application Description — is a machine readable document format designed by the Association of Shareware Professionals.It allows authors to provide product descriptions and specifications to online sources in a standard way, using a standard data format in XML that will… …   Wikipedia

  • Portable Application Description — (kurz PAD) ist ein XML Format zur standardisierten Beschreibung von Software durch den Hersteller, welches von der Association of Shareware Professionals erfunden wurde. In einer PAD Datei legt der Softwarehersteller Informationen über ein… …   Deutsch Wikipedia

  • Portable Application Description — У этого термина существуют и другие значения, см. PAD. PAD (Portable Application Description)  текстовый файл в формате XML, разработанный Association of Shareware Professionals (англ.) и содержащий: информацию о программном продукте… …   Википедия

  • Portable Application — …   Deutsch Wikipedia

  • Portable application — …   Википедия

  • PAD (Portable Application Description) — текстовый файл в формате XML, содержащий: информацию о программном продукте (стоимость, версия, производитель, адрес сайта, ссылка на закачку, скриншоты и т.п.), лицензионное соглашение и условия распространения; пресс релиз о выходе новой версии …   Википедия

  • Portable — may refer to:* Portable building, a manufactured structure that is built off site and moved in upon completion of site and utility work * Portable classroom, a temporary building installed on the grounds of a school to provide additional… …   Wikipedia

  • Portable Executable — Not to be confused with Portable application. Portable Executable Filename extension .cpl, .exe, .dll, .ocx, .sys, .scr, .drv Developed by Microsoft Type of format Binary, executable, object, shared libraries …   Wikipedia

  • Portable Operating System Interface — POSIX DIN/EN/ISO/IEC 9945 Entwickler Portable Application Standards Committee Aktuelle Version IEEE Std 1003.1 2008 Betriebssystem Betriebssystem unabhängig Kategorie Programmierschn …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”