c# - Have a managed application display a meaningful message box when no .NET is installed? -
having written small .net windows forms 2.0 application, try avoid shipping .net framework redistributable (~20 mb) keep size small.
what can use nsis make installer checks installed .net , download on demand.
now asked myself whether "poor man's" error checking built right .net executable itself?
kind of having unmanaged part checks .net, , managed part application itself.
is such thing possible? rather statisfied if configure single message text displayed when started without .net.
no way. .net application .net application , launcher cannot execute .net code if no .net installed. can wrap .net application unmanaged code - write simple c++ application , embed .net application binary resource and, in main code, check registry, if registry there, save .net resource disk, create process, set parameters (like current folder, command line parameters if necessary) , launch process. if not - show message.
Comments
Post a Comment