Click here to Skip to main content
15,889,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have completely developed application using c# and I want to install dotnet framework during the installation of my compiled file

What I have tried:

I copied dotnet framework 4.0 into the installer project but while I installed it, the dotnet framework was not installed and it doesn't display any error message
Posted
Updated 8-Jul-17 6:48am
Comments
Michael_Davies 8-Jul-17 12:49pm    
This might help https://msdn.microsoft.com/en-us/library/7eh4aaa5(v=vs.100).aspx

1 solution

You can use dotNetInstaller, see: GitHub - dblock/dotnetinstaller: A widely used, general-purpose setup bootstrapper for MS Windows.[^]
I would advise however to use the webinstaller if possible, as this intelligently detects what components are not installed and installs them.
Here is another interesting 'InnoSetup Dependency Installer' GitHub - stfx/innodependencyinstaller: Modular InnoSetup Dependency Installer[^]
You don't have to use InnoSetup, but in the code you can find the download links for e.g. the .NET framework 4 web installer:
Delphi
dotnetfx40full_url = 'http://download.microsoft.com/download/1/B/E/1BE39E79-7E39-46A3-96FF-047F95396215/dotNetFx40_Full_setup.exe';
 
Share this answer
 
v3

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900