How to implement

See I have a requirement like this. My application will be installed in a new system. I want to know whether i am being installed for the first time ,if so i need to do action say "A. Once it is installed and my application restarts, i should not do action "A". It should be also possible for the user to simulate the situation. (i.e make my application to think it is being installed for the first time). What i thought was to look for file, if not present, then my application is being installed for the first time,else create a file. if user wants to simulate, he can delete that file

is it ok?

[611 byte] By [hi_alla] at [2007-11-27 11:39:48]
# 1

Sounds like a very crude method.. Windows registry can be used... Its easy to add a entry... Not sure abt how to retrieve it..

New_Kida at 2007-7-29 17:28:16 > top of Java-index,Java Essentials,Java Programming...
# 2

it must be platform independent

hi_alla at 2007-7-29 17:28:16 > top of Java-index,Java Essentials,Java Programming...