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?
Asked
Active
Viewed 8,246 times
7
-
4A 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
-
2Matt 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
-
4If 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 Answers
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
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