You can check which versions of FW are installed by creating small stubs
(.exe) in either version of FW, which call e.g. Environment.Version.
Try to start them. One of them will fail. If both succeed - you have both
versions.
E.g.
static void Main() {
Console.WriteLine("Running under framework {0}",Environment.Version);
}
Create one exe in FW 1.0, another in 1.1. Run both and check output during
installation.
I think presence of directories or registry keys doesn't mean much. It is
unreliable.
HTH
Alex
"Peter Wyss" <peter.w
...@timeware.ch> wrote in message
news:#deQgnDADHA.1912@TK2MSFTNGP10.phx.gbl...
> Hello,
> I have the following Problem:
> I want to install the .NET-Framework together with my
> Service-Installation, but only if the Framework isn't installed on the
> machine or an older Version then 1.1 is installed (1.0). I created the
> Installation with Wise Installation System 9.02. Problem: I can't
> receive the Version-Number, because Wise can't operate with Wildcards
> (*,?) ->I can't check if the directory
> c:\windows\Microsoft.Net\Framework\v1.1* exist and i can't check if the
> Key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1*
> exist...
> Any reasons for this problem? Does anyone has an idea?
> Thanks,
> Peter Wyss