This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to detect Server Core?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 17, 2008
11:52 PM
How to detect Server Core?
Does anyone know of an appropriate way to differentiate between Windows 2008 Server and 2008 Server Core via installscript? I want to do some custom, specialized actions for Server Core but am unsure how to detect if the installer is running on it. Any help would be greatly appreciated.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 18, 2008
09:23 AM
I haven't tried it, but apparently there's a GetProductInfo API function (from kernel32.dll) that you can call on a Server 2008 system to identify different flavors of it. MSDN has more information...
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 24, 2008
12:05 AM
So I assume that means I would have to write an external DLL to do it? Either that or maybe a hack job of looking for some file or registry key the exists (or doesn't exist) on Server Core?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 24, 2008
09:06 AM
I haven't tried that function in particular, but you can often call Windows API functions directly from InstallScript without creating an external DLL. For the general idea---since Windows API functions are in fact DLL functions---please see the help topic "Calling a .dll File Function".