Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming for Windows with no redistributable

It might be a stupid question, but all of my tries to google this failed. The question is: How can you develop windows applications that don't need a redistributable pre-installed? I want to create applications that run also under older versions of Windows which don't have the .NET Framework or something similar included.

Thank you, eWolf

like image 463
eWolf Avatar asked Dec 22 '09 10:12

eWolf


3 Answers

First, program in a native language, such as C++, no CLR.

Second, disable manifest and avoid linking external DLLs (such as STDC or MFC).

like image 65
Pavel Radzivilovsky Avatar answered Nov 05 '22 22:11

Pavel Radzivilovsky


What do you mean by older versions of Windows?
The .net Framework is part of Windows since Windows 2003 and .net 1.1.
So if you are targeting Windows Versions newer than Windows 2003, you can be sure that .net is available.

There are also solutions, that automate linking/packaging of .net products, so that you don't need to ship any redistributables etc.

Update:
I just found out that Mono allows you to link the whole runtime into your executable.
They call that feature Bundle.
Read more about that here.

like image 4
Thomas Zoechling Avatar answered Nov 05 '22 22:11

Thomas Zoechling


Use Delphi - although the newer versions of the IDE have some odd bugs, it is easy to create native windows applications that don't need a redistributable. Much easier to use than C++/win32.

like image 4
Graham Avatar answered Nov 05 '22 22:11

Graham