InstallAware for Windows Installer Header Image Windows Installer without Rocket Science

  InstallAware Blog


How to detect Windows Server 2008

Hi. Many of you have asked if InstallAware supports detecting the newly released Windows Server 2008. It’s very easy by using the code below:

Set Variable SERVER2008 to FALSE
Get System Setting Service Pack 1 into SP1
Get System Setting Windows Vista into VISTA
Get System Setting Windows with Server Features into SERVER
if Variable VISTA Equals TRUE
     if Variable SP1 Equals TRUE
            if Variable SERVER Equals TRUE
                  Set Variable SERVER2008 to TRUE

After this code runs, if the variable SERVER2008 is TRUE, then OS hosting your installer is Windows Server 2008. You can add this piece of code somewhere inside your main setup script, or inject it as a requirement inside the “Check Application Requirements” code folding region to prevent your installation from running at all if the target OS is not Windows Server 2008.

You can also check for Windows Vista with Service Pack 1 using the same script but by removing the “if Variable SERVER Equals TRUE” evaluation.

You can download the script from here.

Thank you,

Panagiotis Kefalidis
Software Design Team Lead
InstallAware Software Corporation

14 Responses to “How to detect Windows Server 2008”

  1. Tim Owers Says:

    But what about 2008 R2?

  2. Tuan Dinola Says:

    Thanks for your write-up. I would love to comment that the very first thing you will need to perform is determine whether you really need fixing credit. To do that you will need to get your hands on a copy of your credit score. That should never be difficult, because government necessitates that you are allowed to have one cost-free copy of your real credit report every year. You just have to request that from the right people. You can either look into the website owned by the Federal Trade Commission as well as contact one of the major credit agencies right away.

  3. games for cartoon Says:

    Hello I can not access your rss feed Something trouble? Can you fix it? Thanks great post! thanks!

  4. dr panda Says:

    Heard about this site from my friend. He pointed me here and told me I’d find what I need. He was right! I got all the questions I had, answered. Didn’t even take long to find it. Love the fact that you made it so easy for people like me. More power

  5. runiqueps hacked my computer Says:

    arnold ahlert jewish world review

  6. Deshawn Fouyer Says:

    I like what you guys are up too. Such intelligent work and reporting! Carry on the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my web site :) .

  7. status to update on whatsapp Says:

    You have mentioned very interesting points ! ps nice website . “The world is dying for want, not of good preaching, but of good hearing.” by George Dana Boardman.

  8. idesentupidorauberlandia Says:

    What’s up, its pleasant post about media print, we all understand media is a enormous source of information.

  9. weight Loss Says:

    It’s always so special plus packed with a lot of fun personally individually along with the company colleagues to search your site at the very least thrice in the 1 week to find out the new direction you have got.

  10. Dr. Balwi Says:

    Hello, I heard on another forum that excess rockmelon could be bad to loosing weight because of the antioxidants found in them. Do you know anything about this?

  11. sexy ass Says:

    Pretty! This has been an incredibly wonderful article. Thanks for supplying this information.

  12. Eull Says:

    We are commenting for you to let you know such a terrific experience my personal child relished reading through your current web page. The girl recognized lots of items, with the introduction associated with what it can be similar to with an wonderful supporting model to have the remainder with out hassle understand a number of intense concerns.

  13. click this link Says:

    Thankfulness to my father who shared with me regarding this webpage, this blog is
    really remarkable.

  14. ati2dvagdll errors Says:

    Glad to be one of the visitors on this amazing web site :

Leave a Reply