Idea 1. When we install the application we create 3 files. Since I use humor in my software to liven it up I'll call these the 3 piggies. Now that we have piggy1.tmp piggy2.tmp and piggy3.tmp we add code in our startup such as
if exist(file(piggy1.tmp){ firsttime(); delete('piggy1.tmp'); break;}
if exist(file(piggy2.tmp){ firsttime(); delete('piggy2.tmp'); break;}
if exist(file(piggy3.tmp){ firsttime(); delete('piggy3.tmp'); break;}
And this would be rewritten to operate properly. I only offer non-operational code to get the concept here.
Idea 2. A registry entry is made and it's incremented on start up. Once it hits your number then the value is not incremented and you don't run your code segment.
Bob
I know it exists but im not sure if MSVS supports code deletion at run time. I wanted to run an if statement for 3 event instances, but delete the if statement after that. Anyone else know if MSVS has this? that would really improve the run time.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic