What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » portable applications

portable applications
Author: Message:
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
O.P. portable applications
how are portable applications made? As in how would they recreate the registry and all the other stuff needed?
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
09-18-2006 02:34 PM
Profile PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: portable applications
Generally they won't use the registry and they'll save any preferences and such in an ini or xml file instead.
09-18-2006 02:41 PM
Profile E-Mail PM Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
O.P. RE: portable applications
quote:
Originally posted by alexp2_ad
Generally they won't use the registry and they'll save any preferences and such in an ini or xml file instead.

but how are applications modified into portable apps like Portable Firefox
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
09-18-2006 03:53 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: portable applications
quote:
Originally posted by saralk
quote:
Originally posted by alexp2_ad
Generally they won't use the registry and they'll save any preferences and such in an ini or xml file instead.

but how are applications modified into portable apps like Portable Firefox
well firefox is open source, so people can modify it.  And AFAIK firefox doesnt use the registry anway, just config files
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
09-18-2006 04:24 PM
Profile E-Mail PM Web Find Quote Report
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: portable applications
quote:
Originally posted by saralk
but how are applications modified into portable apps like Portable Firefox
The simple answer is -- first, you settle on using the lowest common denominator techniques whenever possible, then you write a lot of conditionally compiled code, to cover the platforms you want to support.

Using configuration files instead of registry would be an example of lowest common denominator approach -- all platforms have a file system, while only Windows has registry.

Dealing with display would be an example where conditionally compiled platform-specific code is inevitable at some level -- because you'd have to deal with GDI on Windows, X11 on Unix systems, and something else on some hypothetical platform you may wish to support.
09-18-2006 04:47 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: portable applications
quote:
Originally posted by Adeptus
quote:
Originally posted by saralk
but how are applications modified into portable apps like Portable Firefox
The simple answer is -- first, you settle on using the lowest common denominator techniques whenever possible, then you write a lot of conditionally compiled code, to cover the platforms you want to support.

Using configuration files instead of registry would be an example of lowest common denominator approach -- all platforms have a file system, while only Windows has registry.

Dealing with display would be an example where conditionally compiled platform-specific code is inevitable at some level -- because you'd have to deal with GDI on Windows, X11 on Unix systems, and something else on some hypothetical platform you may wish to support.
I think saral is talking about portable apps as in stick it on a memory key and use it on restricted access computers, not multi platform apps ;)
09-18-2006 05:32 PM
Profile PM Find Quote Report
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: portable applications
Simply put, Mozilla Firefox is actually very umm ... (I can't think of a word to use instead of portable because it's not the correct term for this) environment independant (that'll do :)) anyway, as in you can move the Firefox directory about and the program will still run.

The few registry entries are to do with the location of the users profile, and in Portable Firefox these are hard-wired into the program as \Data\Profile . You can actually copy the profile directory from inside your personal Application Data folder to the portable profile directory and have your portable firefox set-up *exactly* the same as it is on your local computer.
[Image: AndrewsStyle.png]
09-18-2006 07:01 PM
Profile E-Mail PM Web Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
RE: portable applications
In a work (or two); M4D H4X.

Often there are trainers or loaders used to make it work, but not modify the host system. Instead, the trainer/loader will store settings/cache/etc in a file whenever the application would normally use the registry/profile/home/Temp/etc. Open source programs can just have a code patch applied before compilation.

Either way, it's not easy, and each program is different, there is no manual on creating them (except if you decide to make an entire operating system or virtual machine I guess). There can also be different modifications that can be called portable, bu one might use Windows Temp, while another might create a local (to the program directory) temporary files folder.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
09-20-2006 12:36 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: portable applications
portable apps: they quite often are not multi-platform.

In essence any program which can run from its installation directory without the need to access anything else (excl. system devices which are globally available), and which does not depend on user access rights, is portable.

To go a step further, a true portable application also doesn't leave any traces (thus also doesn't leave registry stuff behind).

note: those portable messengers which popup once in a time are certainly NOT portable at all. Eventhough they are advertised as that by their "creators" (note the quotes as all they did was quite often copying everything in the installation directory and putting everything in an home made installer (which quite often even doesn't install the stuff properly) and archived together. Those portable messengers use just the same files, need the same files and leave the same traces as a normal a installation)

-

Multi-platform applications: as Adaptus explained, they are written with the lowest common denominator approach.

In some cases this means ASM, in other cases (and which are actually very extremely quite common) Java.

Java is by far the most used and easiest way to create multi-platform apps (for those platforms which has a Java applet of course; which are very many) and it is not that hard at all; it is just a programming language like any other.

Java was designed with the idea to create a multi-platform for designing apps.

A multi-platform app can access platform specific stuff though, the only thing is that for another platform a working alternative is available within the program in a transparent way (aka the user doesn't notice this).

-

A multi-platform app is not nessecairly porteable and a porteable app is not nessecairly a multi-platform app.

This post was edited on 09-20-2006 at 01:29 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-20-2006 01:25 PM
Profile PM Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
RE: RE: portable applications
quote:
Originally posted by CookieRevised
for those platforms which has a Java applet of course
Java Runtime Environment ;).
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
09-21-2006 12:59 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On