Portable application

A USB drive can carry portable applications

A portable application (portable app), sometimes also called standalone software, is a computer program designed to operate without changing other files or requiring other software to be installed. In this way, it can be easily added to, run, and removed from any compatible computer without setup or side-effects.[1]

In practical terms, a portable application often stores user-created data and configuration settings in the same directory it resides in. This makes it easier to transfer the program with the user's preferences and data between different computers. A program that doesn't have any configuration options can also be a portable application.[1]

Portable applications can be stored on any data storage device, including internal mass storage, a file share, cloud storage or external storage such as USB drives, pen drives[2] and floppy disks—storing its program files and any configuration information and data on the storage medium alone. If no configuration information is required a portable program can be run from read-only storage such as CD-ROMs and DVD-ROMs. Some applications are available in both installable and portable versions.

Some applications which are not portable by default do support optional portability through other mechanisms, the most common being command-line arguments. Examples might include /portable to simply instruct the program to behave as a portable program, or --cfg=/path/inifile to specify the configuration file location.

Like any application, portable applications must be compatible with the computer system hardware and operating system.

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 Windows applications

Most portable applications do not leave files or settings on the host computer or modify the existing system and its configuration. The application may not write to the Windows registry[3] or store its configuration files (such as an INI file) in the user's profile, but today, many portables do; many, however, still store their configuration files in the portable directory. Another possibility, since file paths will often differ on changing computers due to variation in drive letter assignments, is that portable applications may 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.[4] 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.[5] It eventually incorporated some of this technology, using the techniques mentioned above, via its Application Compatibility Database[6] using its Detours[7] code library, into Windows XP. It did not make any of this technology available via its system APIs.

Portability on 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 or Windows 7)—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 to use 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.[8]

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

There are also cross-distro package formats that do not require admin rights to run, like Autopackage, AppImage, or CDE, but which gained only limited acceptance and support in the Linux community in the 2000s.[9][10][11] Around 2015 the idea of portable and distro independent packing for the Linux ecosystem got more traction when Linus Torvalds discussed this topic on the DebConf 2014 and endorsed later AppImage for his dive log application Subsurface.[12][13][14] For instance, MuseScore and Krita followed in 2016 and started to use AppImage builds for software deployment.[15][16] RedHat released in 2016 the Flatpak system, which is a successor of Alexander Larsson's glick project which was inspired by klik (now called AppImage).[17] Similarly, Canonical released in 2016 Snap packages for Ubuntu and many other Linux distros.

Many Mac applications that can be installed by drag-and-drop are inherently portable as Mac application bundles.[18] Examples include Mozilla Firefox, Skype and Google Chrome which do not require admin access and do not need to be placed into a central, restricted area. Applications placed into /Users/username/Applications (~/Applications) are registered with macOS LaunchServices in the same way as applications placed into the main /Applications folder. For example, right-clicking a file in Finder and then selecting "Open With..." will show applications available from both /Applications and ~/Applications. Developers can create Mac product installers which allow the user to perform a home directory install, labelled "Install for me only" in the Installer user interface.[19] Such an installation is performed as the user.

See also

References

  1. ^ a b "What is a portable app?". PortableApps.com. Definition. Retrieved 2022-11-15.
  2. ^ "Free Portable Apps and Games for USB ▷ Pendrive Software". pendriveapps.com. 2007-01-08. Retrieved 2024-06-17.
  3. ^ ""What is a Portable App?"". PortableApps.com. Guidelines. Retrieved 2022-11-15.
  4. ^ "Portable Application Conversion Technology". Sphinx Software. Archived from the original on September 7, 2010. Retrieved January 19, 2012.
  5. ^ "Portable Application Registry". ip.com. Retrieved January 19, 2012.
  6. ^ Ionescu, Alex. "Secrets of the Application Compatilibity Database (SDB) – Part 1". Retrieved January 19, 2012.
  7. ^ "Detours". Microsoft Research. Retrieved January 19, 2012.
  8. ^ Hustvedt, Eskild (2009-02-08). "Our new way to meet the LGPL". Archived from the original on 2009-02-20. 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!
  9. ^ Vining, Nicholas (2010-10-13). "Dear Linux Community: We Need To Talk". Gaslamp Games. Retrieved 2011-01-30. The Linux community, in their infinite wisdom, proceeds to flame the hell out of CDE. [...] "We should all just be using package management." Here is what I want to say, and let my words be carried down from the mountaintops, written on tiny stone tablets: Package management is not a universal panacea.
  10. ^ Byfield, Bruce (2007-02-12). "Autopackage struggling to gain acceptance". linux.com. Archived from the original on 2008-03-31. Retrieved 2012-01-21. If Hearn is correct, the real lesson of Autopackage is not how to improve software installation, but the difficulty -- perhaps the impossibility -- of large-scale changes in Linux architecture this late in its history. It's a sobering, disappointing conclusion to a project that once seemed so promising.
  11. ^ "AppImages". Elementary Project. Archived from the original on December 13, 2010. Retrieved January 19, 2012.
  12. ^ Linus Torvalds (2014-08-29). "Q&A with Linus Torvalds" (video). DebConf 2014 Portland. debian.net. 6:28. Retrieved 2016-05-14. I have seen this first hand with the other project I'm involved with, which is my dive log app. We make binaries for Windows and OSX, we basically don't make binaries for Linux. Why? Because making binaries for Linux desktop applications is a major fucking pain in the ass.
  13. ^ Torvalds, Linus. "This is just very cool". Google+. I finally got around to play with the "AppImage" version of +Subsurface, and it really does seem to "just work".
  14. ^ Hohndel, Dirk (2015-11-25). "This is just very cool". Google+. I, as the app maintainer, don't want my app bundled in a distribution anymore. Way to much pain for absolutely zero gain. Whenever I get a bug report my first question is "oh, which version of which distribution? which version of which library? What set of insane patches were applied to those libraries?". No, Windows and Mac get this right. I control the libraries my app runs against. [...] With an AppImage I can give them just that. Something that runs on their computer.
  15. ^ Weiss, Isaac. "MuseScore 2.0.3 is released". MuseScore.org. MuseScore. Archived from the original on 2016-04-23. Retrieved 2016-04-05.
  16. ^ "Krita 3.0 Released". Krita.org. Krita. 2016-05-31.
  17. ^ Experiments with run-timeless app bundles by Alex Larsson (2007)
  18. ^ "Distributing Your Application". developer.apple.com. Retrieved 2017-05-23.
  19. ^ "Distribution XML Reference". developer.apple.com. Retrieved 2017-05-23.

Read other articles:

2022 film directed by R. Parthiban Iravin NizhalTheatrical release posterDirected byR. ParthibanWritten byR. ParthibanProduced byCaldwell Velnambi Anshu Prabhakar Dr. Pinchi Srinivasan Bala Swaminathan Ranjith DhandapaniR. ParthibanStarringR. ParthibanBrigida SagaVaralaxmi SarathkumarRobo ShankarPriyanka RuthAnandha KrishnanJai BalaCinematographyArthur A. WilsonMusic byA. R. RahmanProductioncompaniesBioscope Film FramersAkira Film ProductionsDistributed byV CreationsRelease date 15 July&...

 

BestieGenre Drama Roman SkenarioQueenBSutradaraPritagita ArianegaraPengarah kreatif Akhil A. Azarya S. Pemeran Della Dartyan Aurra Kharishma Gege Elisa Valerie Thomas Kenny Austin Gibran Marten Baim D'bill Zack Lee Medina Didi Riyadi Penata musikRocky IrvanoNegara asalIndonesiaBahasa asliBahasa IndonesiaJmlh. musim1Jmlh. episode10ProduksiProduser eksekutif Monika Rudijono Tina Arwin Produser Sonu S. Sonya S. Dian Lasvita SinematografiRoy Lolang I.C.S.PenyuntingD.K. SenjaPengaturan kamer...

 

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (فبراير 2016) التجمع الثالث أحد مناطق مدينة القاهرة الجديدة والتي تتبع محافظة القاهرة بمصر، ويمتاز بمساكن ذات المساحا...

Kinh điển Phật giáo Kinh Bộ kinh & A-hàm kinh Chuyển pháp luân kinh Pháp cú kinh Từ kinh Bản sinh kinh Tứ niệm xứ kinh Đại-bát Niết-bàn kinh Bát-nhã kinh Bát-nhã tâm kinh Kim Cương kinh Tiểu phẩm bát-nhã kinh Đại phẩm bát-nhã kinh Đại Nhật kinh Pháp Hoa kinh Hoa Nghiêm kinh Lăng-nghiêm kinh Viên Giác Kinh A-di-đà kinh Kim quang minh kinh Tô tất đế yết la kinh Thắng Man kinh Thập địa kinh Duy-ma-cật sở thuy...

 

You can help expand this article with text translated from the corresponding article in French. (April 2023) Click [show] for important translation instructions. View a machine-translated version of the French article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedi...

 

Geschichte und Region/Storia e regioneLogoStato Italia Linguaitaliano e tedesco Periodicitàbiannuale Genererivista di scienze storiche Fondazione1992 SedeBolzano EditoreAssociazione omonima DirettoreMichaela Oberhuber ISSN1121-0303 (WC · ACNP) Sito webstoriaeregione.eu/it/home   Modifica dati su Wikidata · Manuale Geschichte und Region/Storia e regione (abbreviata in GRSR) è una rivista storiografica in lingua italiana e tedesca che esce due volte l'anno a Bolzano. Il ...

Resolusi 1Dewan Keamanan PBBDewan KeamananTanggal25 Januari 1946Sidang no.2KodeS/RES/1 (Dokumen)TopikPembentukan Komite Staf MiliterHasilDiadopsi tanpa pemungutan suaraKomposisi Dewan KeamananAnggota tetap Tiongkok (ROC) Prancis Britania Raya Amerika Serikat Uni SovietAnggota tidak tetap Australia Brasil Mesir Meksiko Belanda Polandia Resolusi 1 Dewan Keamanan Perserikatan Bangsa-Bangsa, diadopsi tanpa pemungutan suara pada 25 J...

 

Carex cuprina Klasifikasi ilmiah Kerajaan: Plantae Divisi: Tracheophyta Kelas: Liliopsida Ordo: Poales Famili: Cyperaceae Genus: Carex Spesies: Carex cuprina Nama binomial Carex cuprina(Sándor ex Heuff.) Nendtv. ex A.Kern. Carex cuprina adalah spesies tumbuhan seperti rumput yang tergolong ke dalam famili Cyperaceae. Spesies ini juga merupakan bagian dari ordo Poales. Spesies Carex cuprina sendiri merupakan bagian dari genus Carex.[1] Nama ilmiah dari spesies ini pertama kali diterbi...

 

American TV series or program It Takes TwoCreated bySusan HarrisStarringRichard CrennaPatty Duke AstinHelen HuntAnthony EdwardsBillie BirdRichard McKenzieRandy DreyfussDella ReeseTheme music composerGeorge Aliceson TiptonComposerGeorge Aliceson TiptonCountry of originUnited StatesNo. of seasons1No. of episodes22ProductionExecutive producersPaul Junger WittTony ThomasSusan HarrisRunning time24–25 minutesProduction companyWitt-Thomas-Harris ProductionsOriginal releaseNetworkABCReleaseOct...

1993 film by Tony Scott For other uses, see True Romance (disambiguation). True RomanceTheatrical release posterDirected byTony ScottWritten byQuentin TarantinoProduced bySamuel HadidaSteve PerryBill UngerStarring Christian Slater Patricia Arquette Dennis Hopper Val Kilmer Gary Oldman Brad Pitt Christopher Walken CinematographyJeffrey L. KimballEdited byMichael TronickChristian WagnerMusic byHans ZimmerProductioncompaniesMorgan Creek ProductionsDavis FilmsDistributed byWarner Bros.Release dat...

 

Владислав-Фрідріх Кеттлер Принц Курляндії і Семигалії 14 грудня 1647 — 31 березня 1648   Народження: 14 грудня 1647(1647-12-14)Мітава, Семигалія Смерть: 31 березня 1648(1648-03-31)Мітава, Семигалія Національність: німець Релігія: лютеранин Рід: Кеттлери Батько: Яків Кеттлер Владисла́в-...

 

Belgian rapper This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Baloji rapper – news · newspapers · books · scholar · JSTOR (February 2016) (Learn how and when to remove this template messag...

Anthony Quinn pada tahun 1960 Anthony Quinn (21 April 1915-3 Juni 2001) merupakan seorang aktor berkebangsaan Meksiko yang memenangkan dua nominasi Academy Award. Dia menjadi yang terkenal saat bermain di film Hollywood seperti Zorba the Greek. Dilahirkan dengan nama Antonio Rudolfo Oaxaca Quinn di Chihuahua. Filmografi Avenging Angelo (2001) Tierra de cañones (1999) Oriundi (1999) From Russia to Hollywood (1999) Camino de Santiago (1999) Big Guns Talk: The Story of the Western (1997) Il Sin...

 

Gothic novel by Francis Lathom The Midnight Bell Cover for the 2007 Valancourt Books editionAuthorFrancis LathomCountryUnited KingdomLanguageEnglishGenreGothic fictionPublication date1798Media typePrint (Hardback & Paperback)Pagesc.200 pp The Midnight Bell is a gothic novel by Francis Lathom. It was first published anonymously in 1798 and has, on occasion, been wrongly attributed to George Walker.[1] It was one of the seven horrid novels lampooned by Jane Austen in her novel ...

 

Charity which promotes the study of basic computer science in schools, producer of the Raspberry Pi Raspberry Pi FoundationFormationMay 2009; 14 years ago (2009-05)FoundersDavid Braben, Jack Lang, Alan Mycroft, Robert Mullins, Eben Upton[1][2]Founded atCaldecote, South CambridgeshireRegistration no.1129409Legal statusCharityHeadquartersHills Road. Cambridge, England, UK[3]ProductsRaspberry PiFieldsEducationCEOPhilip ColliganMain organBoard o...

Pay television channel This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Nickelodeon Latin American TV channel – news · newspapers · books · scholar · JSTOR (March 2010) (Learn how and when to remove this template message) Television channel NickelodeonLogo used since August 29, 2023[a]Broadcast a...

 

River in South AfricaMtamvuna RiverUmtamvunaView of the Mtamvuna River Gorge from Clearwater Trail Centre, near Port EdwardLocation of the Mtamvuna River mouthEtymologyMtamvuna meaning the reaper of mouthfuls in the Xhosa language.[1]LocationCountrySouth AfricaProvinceKwaZulu-Natal / Eastern Cape ProvincePhysical characteristicsSource  • locationNear Weza Forest Reserve, Eastern Cape, South Africa • elevation1,820 m (5,970 ft) MouthI...

 

Palestinian military leader, founder of Fatah (1935–1988) Khalil al-WazirKhalil al-Wazir strategizingNickname(s)Abu JihadBorn(1935-10-10)10 October 1935Ramla, British Mandate of PalestineDied16 April 1988(1988-04-16) (aged 52)Tunis, TunisiaBuriedAl Yarmuk camp, SyriaAllegianceFatah/Palestine Liberation OrganizationService/branchAl-AssifaRankCommanderBattles/wars Battle of Karameh Jordanian Civil War 1982 Lebanon War Siege of Beirut First Intifada RelationsIntissar al-Wazir (wife) Khali...

Association of African American newspaper publishers This article may contain excessive or inappropriate references to self-published sources. Please help improve it by removing references to unreliable sources where they are used inappropriately. (April 2023) (Learn how and when to remove this template message) The National Newspaper Publishers Association (NNPA), formerly the National Negro Publishers Association, is an association of African American newspaper publishers from across the Un...

 

Metro-North Railroad station in Manhattan, New York For the future Second Avenue Subway station named Harlem–125th Street, see 125th Street station (IRT Lexington Avenue Line). For other uses, see 125th Street (disambiguation) and Harlem station (disambiguation). Harlem–125th StreetTwo trains at Harlem–125th Street station in December 2021General informationLocation101 East 125th Street, East Harlem, Manhattan, New YorkCoordinates40°48′19″N 73°56′20″W / 40.8052...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!