954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to make .Net Framework automatically install?

Hi guys, I created an application in C#, which requires .Net Framework 4.0 (Not the client profile)

I created a Setup project for my application, since it has to be installed on a very big number of computers, some of which may have not access to the internet. Moreover, I don't want to install dotNetFx40_Full_setup.exe manually, so how can I "embed" this installer in my application's installer?

p.s.: I tried putting the exe file in the debug folder of the setup project before the debug, it didn't work.

and I appreciate a quick help. I need it today or tomorrow.. Thanks in advance..

furk
Newbie Poster
8 posts since Feb 2011
Reputation Points: 8
Solved Threads: 0
 

Go to your Properties of the Project (in solution explorer right mousr click on your project name).
It will open a new tabPage of Properties. Go to "Publish" tab. Now select all the prerequisites you want to install. And ot the bottom select when (how) you want them to be installed.
You can select them to be installed from the internet, or from th application. If you select the last, you have to put all these prerequisites into your application folder.
This ia aobut it.

Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
 

I've worked with ClickOnce deployment.. very veryy useful and simple to use especially when releasing various versions to spread to different clients.

http://msdn.microsoft.com/en-us/library/t71a733d%28v=vs.80%29.aspx

jfarrugia
Junior Poster
113 posts since May 2011
Reputation Points: 17
Solved Threads: 17
 

When you create installer for your application using setup project,

Click "Add prerequisites" and check Dotnet framework 4...
And below check the radio button to get the dotnet framework from the same folder..

Hope you understand, Orelse reply ...

samueal
Junior Poster
111 posts since Apr 2011
Reputation Points: 18
Solved Threads: 16
 

thanks guys, I understood the issue,

but exactly which folder will I put the dot net framework installer?

furk
Newbie Poster
8 posts since Feb 2011
Reputation Points: 8
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: