justsky wrote:
It is clear that he does not quite get "portable" yet.
That not completely wrong, I agree to that, but now I am getting it ( i guess so) , it wold be great if you could tell me about some apps, which have installer( non portable) and also portable. I will understand more from there.
What I have understood is poratable mean just have one folder which contain everything executable,required Dlls, and
even settings.
and setting is what was missing in my app
Queue wrote:
Another option for implementing portability (instead of checking for registry entries) is to check if there is a settings INI file in the same folder as the EXE and run portably if there is. You can then just include an empty INI file in the ZIP download. It also lets a portable version run properly on a system that has it already installed.
That's a cool Idea, you mean just have a empty ini file which is not used for writing anything to it, it's just to check it's it's portable version or not,
if this file present in the same folder as EXE, save the setting file (ProcessManager1.6.conf) and log file, in the same directory as EXE.
Hope I got your point right
Queue wrote:
Make sure you have proper error handling in case the user can't write to the INI file (like if running off a CD, or if the suer wants to set the INI file read-only). Some of the best portable programs choke (and crash, or won't close) if they can't write to the configuration file.
Hmmm that's right , i ma glad that i came to this forum here, ppl over here so deeply knowledgeable and detail oriented, and gives ideas to make app better. this point will taken care. in fact i always write a code which handles file read write error, so to handle write code is kinda already there, it will run with without crashing with default settings.
m^(2) wrote:
Additional .ini entry is more extendable option, i.e. at one point you can add registry entries pointing to the file (and i.e. make all users have the same config) and store just binary flags in .ini like:
1 - don't default to appdata, but to app dir.
2 - ignore registry entries
3 - default to app dir and ignore registry
Slightly more complicated, but gives some more room for future upgrades.

But obviously just searching for the ini in own directory is a perfectly viable option too.
yeah that was complicated
i will just search for ini file in own directory....
Initially I had though about saving the settings file to EXE folder itself,
than I realized that Vista has too many limitations for developer because of it's too much security concerns..... and i thought may Vista won't allow my app to write anything in Program files...( I was developing it on XP)
and it's the Vista's 'Extra' security becaue of which i had to ditch
"Hide me", "Hide Others" and "Hide PMW tray icon" features on Vista, because just before releasing I tried them on Vista and they dont work and i figured out the reason is , These features require Inter process communication between two applications ( I am using PostMessage, mentioning as most of u are developer here

and Vista by default do not allow that. I guess if you are running it as Administrator it does allow that correct me if i am wrong.