I'm working with InstallAnywhere, an old program for creating installers. I would like to install a particular file, only in case of Windows XP and Windows Vista.
Due to InstallAnywhere limitations, this is not possible. I can only decide to delete the file once it has already been installed, based on a rule.
Within that rule, I can check for the platform on which I'm running, which gives me the possibility to check for Windows XP, Windows Vista, Windows 7, etc. but not for Windows 10. I can't say "Perform this action when the system is not XP or Vista", so I need to say "Perform this action on all those platforms, which are not XP or Vista".
However, I can launch command-line commands and catch the result, so here's my question: is there a command which I can use for determining if I'm working on a Windows 10 system?

winverwill pop up the About Windows dialog if typed in cmd or Start. Would that work? Alternatively - http://stackoverflow.com/questions/1792740/how-to-tell-what-version-of-windows-and-or-cmd-exe-a-batch-file-is-running-on – Tetsujin May 12 '16 at 09:17cmd --versiongive as a resultMicrosoft Windows [Version 6.1.7601], so the relation betweencmdversion and Windows version seems not that straightforward, what can I expect on Windows 10? – Dominique May 12 '16 at 12:03ver. For example, on my Windows 7 system I get "Microsoft Windows [Version 6.1.7601]" which tells me that I am running Windows 7 (which has version number 6.1). – Andreas Rejbrand May 12 '16 at 16:30