run function once only

  • Thread starter Thread starter Maileen
  • Start date Start date
M

Maileen

Hi,
My application run a splash screen in order to check if .NET Framework
is installed before to use it.

I have a function which controls this fact.
however, as it happens during my splash screen, i don't know where to
place the call to this function ?
in repaint method ?
but this function must be run once only...so how can i do that ?
i don't want to use a loop with condition i=0 (never run before)
condition =1 already run once.

thx.
Maileen
 
Maileen said:
My application run a splash screen in order to check if .NET Framework
is installed before to use it.

This won't work. If the .NET Framework is not installed, the application
won't be able to start.
 
I would reccommend to use other application that is not using the .NET
Framework for checking if the .NET Framework is installed, for example VB6.

And if the .NET Framework is found then this 2nd appplication would lunch
the main application in .NET Framework.
 
Go to Microsoft, and do a search for the .NET Bootstrapper plugin. Also, if
you package your program with something like Installshield, the packager
will recognize whether or not the .NET Framework is installed, and will
install it if it is not.

-Jason
 

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