Detecting Windows Server R2 Core

Got a problem you cannot solve? Try here.
Post Reply
mdavtec
Posts: 31
Joined: Wed Jan 20, 2016 2:59 pm

Detecting Windows Server R2 Core

Post by mdavtec »

I'm using IA18 and have support for Windows Server 2012 R2 server. However, we need to add code to detect if the server is Core (no-gui) or not. I'm curious if there is an API support to detect "Core" with IA. Any suggestion.
ExchA
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Detecting Windows Server R2 Core

Post by FrancescoT »

Dear Mdavtec,

you may have a look at the following topic.
http://www.installaware.com/forums/view ... nEx#p34106

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mdavtec
Posts: 31
Joined: Wed Jan 20, 2016 2:59 pm

Re: Detecting Windows Server R2 Core

Post by mdavtec »

Hi Francesco,

Thanks for response.

The method of using GetVersion() win api via "CALL DLL FUNCTION", that link suggests, doesn't work here. It doesn't distinguish between gui and core (non-gui) version of the server operation system. I ended up using method described in https://msdn.microsoft.com/en-us/librar ... s.85).aspx.

Thanks,
ExchA
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Detecting Windows Server R2 Core

Post by FrancescoT »

Happy you solved!

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply