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
633 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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