Portable Application - Portable Windows Applications

Portable Windows Applications

A portable application does not leave its files or settings on the host computer, which may be convenient or required if you have no administrator privileges on a 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 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 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 using its Detours code library, into Windows XP. It did not, however, make any of this technology available via one of its system APIs.

Read more about this topic:  Portable Application

Famous quotes containing the words portable and/or windows:

    “Wotever is, is right, as the young nobleman sveetly remarked wen they put him down in the pension list ‘cos his mother’s uncle’s vife’s grandfather vunce lit the king’s pipe vith a portable tinder-box.”
    Charles Dickens (1812–1870)

    —and then it was
    There interposed a Fly—

    With Blue—uncertain stumbling Buzz—
    Between the light—and me—
    And then the Windows failed—and then
    I could not see to see—
    Emily Dickinson (1830–1886)