Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
Hi
 
Was installing a small app in a separate PC and it could not install because it didn't have the .Net framework 4, so how can i install a .Net framework while installing the app? or what is a better way...
Posted 15-Jan-13 4:39am
Comments
joshrduncan2012 at 15-Jan-13 9:49am
   
Add it as a requirement/prerequisite to your build when you create the .msi/.exe file.
Abhishek Pant at 15-Jan-13 10:00am
   
use installshield.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

If you are deploying using Visual Studio Setup Project you will need to do the following
 
1) Right click on setup project
2) Click the Prerequisites button on the setup project properties screen.
3) Select your .net framework version that you wish to deploy along with your aplication.
 
This link should help as well: Add Prerequisites of .NET Framework in Visual Studio Setup Project[^]
  Permalink  
Comments
Anele Ngqandu at 15-Jan-13 12:33pm
   
ow that was easy...thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 490
1 Maciej Los 305
2 Richard MacCutchan 270
3 Mathew Soji 220
4 BillWoodruff 210
0 OriginalGriff 8,834
1 Sergey Alexandrovich Kryukov 7,477
2 DamithSL 5,689
3 Maciej Los 5,329
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100