Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net with single .exe without .NET Framework installation

I wrote my simple desktop program in C#. I am reluctant to distribute it on the internet because i am not sure if users will go through pain of installing the .Net Framework. My target users are non-tech savvy users.

I am very familiar with MFC and I probably can write this program in MFC in a month. MFC is nice because I don't have to worry about distributing other components. It will be one nice single executable.

So my real question is this: Is it possible to write .Net app without worrying about distributing .Net Framework?

Update I found another solution: If you are using Innosetup, there is a script that installs .net framework. http://www.codeproject.com/KB/install/dotnetfx_innosetup_instal.aspx

like image 839
user156144 Avatar asked Mar 08 '26 02:03

user156144


1 Answers

If you use Windows Installer, it can automatically install the required version of the .NET Framework. Also, Jay is correct that the .NET Framework 3.0 is installed on Windows Vista and version 3.5 is included with Windows 7.

like image 115
Brad Gignac Avatar answered Mar 10 '26 16:03

Brad Gignac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!