Home All Groups Group Topic Archive Search About

Detect version of .Net (not in a Setup project)

Author
1 Feb 2006 11:02 PM
Saber
To detect if .net framework is installed or not on client's computer,
and if yes, what is its version, I found an article:
http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291

But it can be done in a Setup and Deployment project, my program doesn't
needs setup and deployment, it runs just on CD-ROM and for simplicity I
don't want to add Setup, Shortcuts, etc.

I want after inserting CD-ROM that contains my program, appear a welcome
screen with a button.
If .net framework 2 is not installed, the button label should be:
"Install .net framework 2" and links to dotnetfx.exe on the CD-ROM
If .net framework 2 is installed, the button label should be:
"Run Application" , or simply Application starts automatically.

I can create such welcome page using VB.Net, but I think this welcome page
also needs .net framework to run. :~D

I have to use another programming language to do so (Delphi, VC,...) or
there
is a simpler way?



Author
1 Feb 2006 11:11 PM
Herfried K. Wagner [MVP]
"Saber" <saber[.AT.]oxin.ir> schrieb:
> To detect if .net framework is installed or not on client's computer,
> and if yes, what is its version, I found an article:
> http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291
>[...]
> I can create such welcome page using VB.Net, but I think this welcome page
> also needs .net framework to run. :~D
>
> I have to use another programming language to do so (Delphi, VC,...) or
> there
> is a simpler way?

<URL:http://www.codeproject.com/dotnet/DetectDotNet.asp>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 Feb 2006 11:27 PM
Saber
Many Thanks,
Exactly it is what I was looking for :)

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:unsyaT4JGHA.2036@TK2MSFTNGP14.phx.gbl...
> "Saber" <saber[.AT.]oxin.ir> schrieb:
>> To detect if .net framework is installed or not on client's computer,
>> and if yes, what is its version, I found an article:
>> http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291
>>[...]
>> I can create such welcome page using VB.Net, but I think this welcome
>> page
>> also needs .net framework to run. :~D
>>
>> I have to use another programming language to do so (Delphi, VC,...) or
>> there
>> is a simpler way?
>
> <URL:http://www.codeproject.com/dotnet/DetectDotNet.asp>
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>