setup project for windows application - .net framework 2

Hello,
I created a setup project for a windows form application in visual studio.net 2005.
When installing the application on a computer which doesn't have the .net framework 2, a message box appears in which there is a suggestion to download the framework from the Microsoft web site by pressing a button.

How do I avoid this option? I want only to display a message that tells the user to install the .net framework without referring him to the web site.

Thanks
 
hagitshAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
C++ application should be unmanaged.
0
 
Jaime OlivaresSoftware ArchitectCommented:
you can include the .net framework in your  installation disk if you want.
Project -> Properties -> Prerequisites....
0
 
hagitshAuthor Commented:
I am not allowed to  include the .net framework  in may installation,
And also I need to avoid referring to the internet.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Jaime OlivaresSoftware ArchitectCommented:
ok, just go to the Project Properties, and remove (uncheck) the .net framework as a pre-requisite.
0
 
hagitshAuthor Commented:
it is already unchecked.
i don't understand because it is a pre-requisite any way

0
 
Jaime OlivaresSoftware ArchitectCommented:
In the prerequisites window also uncheck: Create install program for prerequisites components
0
 
hagitshAuthor Commented:
I tried it now, but the same message appears
0
 
Jaime OlivaresSoftware ArchitectCommented:
you can avoid to install the .net framework, with the options described. But you cannot avoid to the Warning Message to appear. If framework is not installed and you try to run a .net application, it always will show you a warning. It won't silently terminate. If you want to avoid this, you have to create a C++ application that checks if .net is installed first, if not it terminates, if yes it launch the .net application.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.