You are here

Creating A Portable App from Scratch

5 posts / 0 new
Last post
Last seen: 16 years 4 months ago
Joined: 2008-02-19 21:16
Creating A Portable App from Scratch

I am wanting to write a portable application from scratch which can be launched through the portable launcher. I was reading the page saying how to create a portable app and it discussed checking to see if the application used various system-specific features like registry, documents and settings, etc, and then creating a wrapper for it. could anyone give me any advice on how to create an application which is soley going to be run through

Simeon's picture
Last seen: 9 years 9 months ago
Joined: 2006-09-25 15:15
Some ideas

There are a lot workarounds used by John for Apps that use the registry or store data in various places to keep them compliant with the specs used here. But the less we have to use the better.:)
If you do an Application from scratch the best thing regarding compatibility with would be if it wouldn't write to the Registry and have a switch to pass the path where the config files are located.
That would be the easiest Application to make portable.

Hope that helps and welcome here Smile

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Last seen: 2 weeks 3 days ago
Joined: 2007-08-27 13:35
If you are only writing a

If you are only writing a program to be portable, using a command line parameter to tell it where to put its settings is ideal. I suppose you could have it save to the application's own directory if there is nothing on the command line.

If you want it to be either portable or installed, it might be a good idea to have the default place be appdata. Or have it use the Registry unless told otherwise on the command line. It can be awkward for a regular program to save things to its own folder.

The important thing for portability is that there be an easy and unambiguous way to tell the program where to put its settings and/or data that keeps it from writing to the registry or appdata or My Documents.


Last seen: 16 years 4 months ago
Joined: 2008-02-19 21:16
Thanks for that guy's, the

Thanks for that guy's, the language I primarily code in is visual basic 6. Is this a language that can be used by portable apps. Can an application written in VB6 be used as a portable app when run through the portable wrapper.

Science And Religion are Not At Odd's, Science Is Just Too Young To Understand (Quote From Angels & Demons)

OliverK's picture
Last seen: 3 years 3 weeks ago
Joined: 2007-03-27 15:21
It can be, but I don't

It can be, but I don't believe VB6 is ideal. This is because VB6 requires the VB6 run time. Although, I'm probably being set up for correction from someone.

You can, but you may have some caveats from the "truly-portable" of the crowd

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Log in or register to post comments