Hi all,

I have a Database program and I want the initial Database to be installed, when the program first runs.
How do I make a chunk of my program to run only once ?


thanks
Zvika

Recommended Answers

All 2 Replies

Member Avatar for saravind84

Make a registry entry and increment it each time the application runs. Based on the value of this registry key, you can achieve Your requirement.
Another alternative is to check if the database exists and install the database only if it does not exist.

this is exactly what i do now check if database exists. The problem is that now i'm working on version 1.1 and I cant update the data base because once it exists the program terminats.

The solution I want is that the database build will run at first run and never again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.