Click here to Skip to main content
11,711,009 members (82,480 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0

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 3:39am
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
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[^]
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 Sergey Alexandrovich Kryukov 549
1 OriginalGriff 255
2 Peter Leow 154
3 Maciej Los 120
4 Abhinav S 120
0 Maciej Los 95
1 Richard MacCutchan 90
2 Abhinav S 90
3 OriginalGriff 80
4 Member 4653839 50

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2015
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