Archive: How to detect Windows 2000 server


How to detect Windows 2000 server
Hi
In my installer, I would like to detect if a client machine is a "windows 2000 server". GetWindowsVersion in NSis example only knows if the OS is "Windows 2000".
so my question is how to detect "windows 2000 server"?

Thanks you in advance


My sysinfo plugin (available for download at the archive) has a command called GetSystemVersionValue which can be used to determine the Product Type of the system (workstation, domain controller or server) ... this might help. Example usage :-

sysinfo::GetSystemVersionValue 'ProductType'
If you download the plugin be aware that you need to remove the PluginDir . line near the start of the SysInfo.nsi file if you want to try that example, I've only just noticed that that breaks the script in the latest version of NSIS.

If you haven't used a downloadable plugin before all you need to do is place the SysInfo.dll file into your nsis\plugins directory and then you can use it in your script.

-- Sunjammer
NSIS Archive SysInfo Plugin Direct Download

I'm now can detect Windows 2000 server using your plugin. It is very good.
Thanks you very much for answering my question.
Long Ly


No problem.