0

I have managed application targeted for .NET Framework 3.5. I need it to display messagebox with some text and download link if user don't have the framework installed. What is the right and simple way to do this?

So far I see nothing better than writing native bootstrapper that will check presence of the framework and show messagebox otherwise.

txt
  • 1,634
  • 2
  • 17
  • 48
  • 4
    This is something that your installer should implement surely? – RB. Aug 17 '12 at 13:23
  • You could also provide this information at the same location your user finds your application, i.e. a web site. – Patrick Aug 17 '12 at 13:26
  • My app doesn't have an installer. May be this is wrong but I can do nothing with this. – txt Aug 17 '12 at 13:53

1 Answers1

0

You can use the registry to check about .net framework and it's version
Ref:
How to determine which versions and service pack levels of the Microsoft .NET Framework are installed

Edit: Check this answer on SO thread How do I tell if .NET 3.5 SP1 is installed?.

Community
  • 1
  • 1
Niranjan Singh
  • 17,741
  • 2
  • 40
  • 74