Solved

setup project for windows application - .net framework 2

Posted on 2007-12-06
9
977 Views
Last Modified: 2013-11-26
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
Comment
Question by:hagitsh
  • 5
  • 3
9 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20419009
you can include the .net framework in your  installation disk if you want.
Project -> Properties -> Prerequisites....
0
 

Author Comment

by:hagitsh
ID: 20419108
I am not allowed to  include the .net framework  in may installation,
And also I need to avoid referring to the internet.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20419152
ok, just go to the Project Properties, and remove (uncheck) the .net framework as a pre-requisite.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:hagitsh
ID: 20419208
it is already unchecked.
i don't understand because it is a pre-requisite any way

0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20419245
In the prerequisites window also uncheck: Create install program for prerequisites components
0
 

Author Comment

by:hagitsh
ID: 20419281
I tried it now, but the same message appears
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20419508
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
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 total points
ID: 20419513
C++ application should be unmanaged.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question