Solved

How can I make my setup project to install .NET framework without asking for confirmation from the user?

Posted on 2008-10-07
5
635 Views
Last Modified: 2013-11-07
Hi
I am making a setup project for my c# application in visual studio 2005. When I run the setup on a machine that .net framework is not installed on, the setup start bothering the user with a confirmation for installing .net framework and then some questions during installation which I don't like.
How can I make my setup project avoid asking any confirmation if it needs to install .net framework.
A link to some good samples would be appriciated.
0
Comment
Question by:Elham_Seif
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22666461
check the launch conditions in setup project. and set the installURL property to the folder that will contain the dotnetruntime.. you can add this runtime as a part of setup project.
0
 

Author Comment

by:Elham_Seif
ID: 22666714
I already changed the installURL to dotnetfx.exe in my setup folder. But the message property of the launch condition can't be empty and again needs confirmation.
.... If I add the runtime as a part of my project, it'll always run even if .net framework is already installed on target computer.
Please pay attention to my question. I'd like .net framework to be installed on target compute if it's needed and I'd like it to be installed without showing any message which needs confirmation.
0
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22667077
create a custom action then
0
 
LVL 15

Accepted Solution

by:
angus_young_acdc earned 500 total points
ID: 22667705
I think the following link may help you achieve what you want.

http://www.codeproject.com/KB/dotnet/clickOnce.aspx

It also has plenty of comments from people trying to create an installer with the .Net framework in it.
0
 

Author Closing Comment

by:Elham_Seif
ID: 31504114
It's a good link. Actually, I found it myself before you introduce it to me but the points are yours.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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