Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to silently or automatically install .NET?

I am selling desktop software written in C# to multiple clients, and having a huge problem: The .NET install. The users of this software are not computer-savvy and usually don't have any version of the .NET framework installed, and many times don't want it.

Nearly every single one of my support requests is due to someone not installing .NET. I have to remind each one of them to install the framework, and most of them say they hit "Cancel" on it because they don't want to install it. Many have even asked for refunds because they get confused and don't want to deal with it. They don't understand that it's required, and don't want to go to Microsoft and download it. I'm losing a lot of time, and lot of money.

But enough background, my question is: Can I silently install the .NET framework, legally so I can reduce the amount of support contacts? If I put some sort of disclaimer in saying the .NET framework will be installed, would it be legal? I can make it install automatically of course, but the users are cancelling it, and not realizing that it renders the software inoperable.

I know it sounds crazy and the obvious suggestions like "tell them that the .NET install is required" have already been tried. I tell the customers 3 times in giant red fonts that it is required, yet they still don't read it.

Any suggestions? I'm about ready to abandon C# and build my next products in Java or Delphi, that's how big this problem is becoming.

like image 712
Jeremy Morgan Avatar asked Nov 29 '09 00:11

Jeremy Morgan


People also ask

How do you check if .NET framework is installed?

The version of . NET Framework (4.5 and later) installed on a machine is listed in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey is missing, then . NET Framework 4.5 or above isn't installed.


2 Answers

Use the "Chaining the Redistributable Package in Application Setup" description in the article below. The /q switch should allow installation of the framework without user prompting. This should solve the problem of your users cancelling the installation of the framework.

.NET Framework 3.5 Deployment Guide for Application Developers
http://msdn.microsoft.com/en-us/library/cc160716.aspx

like image 191
Robert Harvey Avatar answered Nov 07 '22 06:11

Robert Harvey


Of course, here's a blog post describing the command lines. Obviously if you're deploying your application with an installer, you'll want to use the recommended approach Robert describes. But if you're just trying to install it on a bunch of machines this may help.

http://blogs.msdn.com/astebner/archive/2009/04/16/9553804.aspx

like image 21
Josh Avatar answered Nov 07 '22 05:11

Josh