Detecting Windows Server R2 Core

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

Detecting Windows Server R2 Core

Postby mdavtec » Thu Aug 25, 2016 8:29 am

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

Postby FrancescoT » Thu Aug 25, 2016 12:33 pm

Dear Mdavtec,

you may have a look at the following topic.
http://www.installaware.com/forums/viewtopic.php?f=2&t=9363&hilit=GetVersionEx#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

Postby mdavtec » Tue Aug 30, 2016 9:01 am

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 ... 29(v=vs.85).aspx.

Thanks,
ExchA

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

Re: Detecting Windows Server R2 Core

Postby FrancescoT » Tue Aug 30, 2016 4:16 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 156 guests