Windows Installer 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
           end
    end
end

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

12 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. Abe Fulwood Says:

    Great web site. A lot of useful info here. I am sending it to some pals ans additionally sharing in delicious. And obviously, thank you in your effort!

  7. 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 :) .

  8. 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.

  9. idesentupidorauberlandia Says:

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

  10. 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.

  11. 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?

  12. sexy ass Says:

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

Leave a Reply