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: 648
  • Last Modified:

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

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
Elham_Seif
Asked:
Elham_Seif
  • 2
  • 2
1 Solution
 
SameerJagdaleCommented:
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
 
Elham_SeifAuthor Commented:
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
 
SameerJagdaleCommented:
create a custom action then
0
 
angus_young_acdcCommented:
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
 
Elham_SeifAuthor Commented:
It's a good link. Actually, I found it myself before you introduce it to me but the points are yours.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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