Excluding Windows 95 but not NT

Got a problem you cannot solve? Try here.
Post Reply
Tinus
Posts: 209
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Excluding Windows 95 but not NT

Post 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??
Martin Rothschink

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply