App First Run Issue

  • Thread starter Thread starter Michael O'S
  • Start date Start date
M

Michael O'S

Hello,
I have seen applications that run a "special" program when they are run for
the first time. I need to allow the user to choose a file location the
FIRST time they run the app. I am not sure how to do this. Any help would
be greatly appreciated!
Michael
 
Hi Michael,
You could write a key to the registry after the "RunOnce" Application has
been run.
So when you start, check the registry, if no entry then run your App, if you
have an entry then then just continue.

Doug
 
You can do as Doug said - or - have the program check if a file (you name
it) exists on startup
if the file does not exist run the special part of the program - then have
the program to create the file.
the next time it runs, the file will exist and so it will skip the special
program
 
Thanks! I knew it would be something simple! I kept trying to make it
harder than it really is!
Michael
 
Thanks! I knew it would be something simple! I kept trying to make it
harder than it really is!
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top