Execute Win32 application on computer without Framework

  • Thread starter Thread starter Lubos
  • Start date Start date
L

Lubos

Hi,
How can i make this.
When i maked a program in C# and then when the program is execute on
computer without .NET Framework, how can i automaticaly invoke instalation
of Framework after execute the program? How files (instalation files for
Framework) i have to distribute with my program?

Thanks Lubos
 
You can configure your installer to detect the .NET framework but i dont
believe you can do it within your normal app exe as to just run the
first line it requires the CLR.

Another option is to wrap your application with a C++ or VB6 .exe which
reads the Registry to see if .NET is installed, if not then it runs the
installer if it is it runs your .NET .exe.
 
Lubos said:
Hi,
How can i make this.
When i maked a program in C# and then when the program is execute on
computer without .NET Framework, how can i automaticaly invoke instalation
of Framework after execute the program? How files (instalation files for
Framework) i have to distribute with my program?

Thanks Lubos
If what you mean is automatic installation of the .NET Framework when your
program *is installed*, here is an article that should help:

http://msdn.microsoft.com/vstudio/downloads/tools/bootstrapper/
 
Hi,

You should check that at install time as suggested by Peter. This is the
recommended way.

If you want to check for the framework each time that you start your
program then you have to use a Win32 program as your starting point, check
if the framework exist or if the version needed exist , IIRC you do this
checking the register , if it does exist start your "real" application, if
not install the framework and later your "real" app.

Cheers,
 

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