Page 1 of 1

Excluding Windows 95 but not NT

Posted: Tue Jul 04, 2006 10:31 am
by Tinus
Hi,

I try to exclude Windows 95 but whatever I try, Windows NT4 is excluded also.
If I set Minimum Requirements to:

    - Windows 98: 95 excluded, NT4 excluded, 98 working
    - Windows NT4: 95 working, NT4 working, 98 working (why this?)

That's not what I expected. I know that these are minimum requirements and e.g. a Windows 2000 returns
true for 2000, 98, NT4 and 95. But what is the exact order?

Is it 95, NT4, 98, 98SE, ME, 2000, XP, 2003, VISTA??

Posted: Tue Jul 04, 2006 8:22 pm
by MichaelNesmith
You should use the MSIcode view to achieve that exclusion. In particular, you may test for the Win9X kernel (versus the WinNT kernel). The Windows version numbers are directly used in the comparisons, so that is why you experienced this behavior.

I'd try something like:

Code: Select all

Get System Setting Windows NT Kernel (NT4, 2000, XP, 2003) into WINNTKERNEL
if Variable WINNTKERNEL Equals FALSE
  Get System Setting Windows 98 into WIN98
  if Variable WIN98 Equals FALSE
    MessageBox: Wrong OS, Win95 not supported
    Terminate Installation
  end
end