473,395 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

App First Run Issue

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
Nov 21 '05 #1
4 904
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

"Michael O'S" <mr************@woh.rr.com> wrote in message
news:O4*******************@fe2.columbus.rr.com...
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

Nov 21 '05 #2
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

"Michael O'S" <mr************@woh.rr.com> wrote in message
news:O4*******************@fe2.columbus.rr.com...
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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004
Nov 21 '05 #3
Thanks! I knew it would be something simple! I kept trying to make it
harder than it really is!
Michael
"Doug Bell" <dug@bigpond> wrote in message
news:up**************@tk2msftngp13.phx.gbl...
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

"Michael O'S" <mr************@woh.rr.com> wrote in message
news:O4*******************@fe2.columbus.rr.com...
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


Nov 21 '05 #4
Thanks! I knew it would be something simple! I kept trying to make it
harder than it really is!
Michael
"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:fe******************@bignews6.bellsouth.net.. .
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

"Michael O'S" <mr************@woh.rr.com> wrote in message
news:O4*******************@fe2.columbus.rr.com...
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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: R.Marquez | last post by:
I hope I don't bore you with this personal experience. But, I hope the details are helpful for other Python and/or Linux newbies, or for those thinking about becoming such. I have been using...
8
by: Robert Gravereaux | last post by:
I've noticed that the first exception thrown/caught by an app running in debug is very slow - it takes perhaps 7 or 8 seconds on my P4 machine. I've noticed this on several different machines...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
13
by: howa | last post by:
e.g. <div class="main"> <p>ssssss</p> <p>ssssss</p> <p>ssssss</p> <p>ssssss</p>
9
by: sovht | last post by:
System: Intel, Windows XP Pro, SP2 IDE: VC++ 6.0 Problem: *Very* simple program to create a MessageBox only ever displays the first character of the given string. I checked the spec for the...
6
by: alho | last post by:
The web service is called by a program running on pocket pc. When to call the web service, the first call is still ok, but for the second or later calls, it will throw "403 Forbidden" WebException....
6
by: Doug Ferguson | last post by:
I am using a webservice client that was created from a WSDL file in .Net 1.1. The client ALWAYS works the first time I call it. The second call returns one of two exceptions. It either returns...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
3
AnuSumesh
by: AnuSumesh | last post by:
Hi, I have created two web pages say first.asp and second.asp. first.asp has a link of second.asp and username is embedded in url of second.asp.(second.asp?username=dvhsdghsdg) Second.asp has...
23
by: andersond | last post by:
I have a form with 31 questions each of which could cause an application to be rejected. I have 10 fields named issue 1...issue10. If a problem is found I want to save a message to the first empty...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.