7

I'm writing a console application that will be deployed with an installation of an application we are writing. The console app aims to fix a bug in vista that will allow our application to be installed correctly in Vista. The console application works fine, but can I count on the .NET framework being installed on all Vista machines - is it installed by default?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
januszstabik
  • 1,152
  • 5
  • 16
  • 30
  • 4
    A quick Google search would have told you that. Stop being lazy. – Ksempac Jun 24 '09 at 09:06
  • just curious - what is the bug in Vista you are trying to work around? – Matt Lacey Jun 24 '09 at 09:10
  • Vista doesn't perform a desktop refresh after the installation of new software, therefore any new icons you deploy to the desktop wont be visable. You can perform a desktop refresh by calling down into the windows api using [DllImport("shell32.dll")] static extern void SHChangeNotify(Enumeration.HChangeNotifyEventID wEventId, UInt32 flags, IntPtr dwItem1, IntPtr dwItem2); There is a hotfix to fix the bug but we can't count on that being installed. – januszstabik Jun 24 '09 at 09:15
  • 2
    Matt Lacey - I wasn't being lazy. I had viewed a couple of sources but wanted to utilise the group research power of the Stakoverflow users to further confirm my research. I also thought the question would be a useful resource for others. – januszstabik Jun 24 '09 at 09:16
  • Sorry - mat, that wasnt intended for you. – januszstabik Jun 24 '09 at 09:17
  • 4
    If the question is relevant to programming, it's perfectly fine to ask it, whether it can be found by Googling or not. This isn't one of *those* sites. – Gerald Jun 24 '09 at 09:19

7 Answers7

9

According to this site:

Windows Vista comes packaged with Microsoft .NET Framework 2.0 and 3.0, but not version 1.1, which may still required by some applications

So if your console application targets v 2.0 or v 3.0 you should be OK

ChrisF
  • 134,786
  • 31
  • 255
  • 325
3

The .NET Framework 3.0 is installed by default on Microsoft Windows Vista

Source: Deploying Microsoft .NET Framework Version 3.0

weiqure
  • 3,247
  • 2
  • 27
  • 31
2

There is a list of which versions of .Net are installed on which versions of Windows on Wikipedia.

  • Windows XP and before don't come with .Net
  • Windows Server 2003 comes with .Net 1.1
  • Windows Vista comes with .Net 3.0
  • Windows 2008 comes with .Net 3.0
  • Windows 2008 R2 comes with .Net 3.5
  • Windows 7 is probably going to come with .Net 3.5
Martin Brown
  • 24,692
  • 14
  • 77
  • 122
1

Yes .Net 3.0 is installed by default on Vista

Gavin
  • 17,053
  • 19
  • 64
  • 110
1

.NET 3 is installed on Vista by default.

RichardOD
  • 28,883
  • 9
  • 61
  • 81
1

Yes. See here for an overview.

Rune Grimstad
  • 35,612
  • 10
  • 61
  • 76
1

According to the MSDN (emphasis mine):

The .NET Framework 3.0 is installed by default on Microsoft Windows Vista. On Microsoft Windows Server code-named "Longhorn", you can install the .NET Framework as a Windows Feature using Roles Management tools.

Shay Erlichmen
  • 31,691
  • 7
  • 68
  • 87