Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Detecting the OS the user has


5 replies to this topic

ET123

ET123
  • Members
  • 16 posts

Posted 24 July 2001 - 16:23

Where do I find the table in Windows Installer to detect what OS the user is using?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 July 2001 - 22:24

There are predefined properties Version9X and VersionNT that Windows Installer sets automatically.

ET123

ET123
  • Members
  • 16 posts

Posted 26 July 2001 - 20:13

do i need to create a custom action then insert it into the sequence tables. I want to check that the users installing the software are running 2000.

Joe Fegan

Joe Fegan
  • Members
  • 38 posts

Posted 27 July 2001 - 09:46

This is what I did to stop people installing on 95/98/ME:

Custom Action:
   Action: AbortIf95
   Type: 19
   Source:
   Target: This product cannot be installed on Windows 95, Windows 98 or Windows ME

InstallExecuteSequence:
   Action: AbortIf95
   Condition: Version9X
   Sequence: 50


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 July 2001 - 11:42

You could also use this in a launch condition, e.g.
VersionNT>=500

This will install only on Win2000, and above (e.g. WinXP)