views:

353

answers:

3

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?

+2  A: 

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.

Ken White
+1  A: 

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.

Ben S
A: 

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.

Will
@Will if you check out http://portableapps.com/apps/internet/firefox_portable firefox can be made portable, how can it be modified so that it does not "have any dependencies on system resources (such as the registry)"
Lazer
Well, FF is open source, so editing the source to remove any dependencies that prevent it from running off a thumb drive isn't impossible. As to "how" its done, I've got no clue what the changes are.
Will