如何用程序识别操作系统是Vista和还是XP?
使用InstallShield6.3打包程序?需要判断 用户的操作系统是vista还是xp?
xp和vista
可以通过注册表里 的 固定 键值区别么?
解决方法:
installshield提供函数可以解决。
SYSINFO.nWinMajor
4 The operating system is Windows NT 4.0.
5 The operating system is Windows Server 2003 R2, Windows Server 2003,
Windows XP,or Windows 2000.
6 The operating system is Windows Vista or Windows Server 2008.
SYSINFO.nWinMinor
0 The operating system is Windows Vista, Windows Server 2008, Windows 2000, or
Windows NT 4.0.
http://msdn2.microsoft.com/en-us/library/ms724833.aspx
GetSystemInfo (WINMINOR, nvResult, svResult);
GetSystemInfo (WINMAJOR, nvResult, svResult);