Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

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
 
0
hagitsh
Asked:
hagitsh
  • 5
  • 3
1 Solution
 
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
 
Jaime OlivaresSoftware ArchitectCommented:
ok, just go to the Project Properties, and remove (uncheck) the .net framework as a pre-requisite.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
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
 
Jaime OlivaresSoftware ArchitectCommented:
C++ application should be unmanaged.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now