How to chek for win2ksp4 or XPsp2

Got a problem you cannot solve? Try here.
maurosturaro
Posts: 22
Joined: Tue Mar 14, 2006 6:29 am

How to chek for win2ksp4 or XPsp2

Postby maurosturaro » Sat Jun 03, 2006 4:39 am

I' m depoying an application with .NET 2.0, so need to check a combination of operative system and service pack.

In the Application Requirement section of the visual view is only possible to check the minimum operating system.

from the code view the "Get System Settings" command has a list of Service Pack, but of what ?
I think OS, I think any OS Type, the documentation tell nothing about this...

But this is not enought.
I must not tell "minimum win2k" and "minimum SP4", I must check for ( if the OS is win2k -> minimum SP4 , if the OS is XP -> minimum SP2, ...)and so on.

( maybe I've not see some better way to do it ?! )

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Sun Jun 04, 2006 12:40 am

This is already implemented for you in the Application Runtimes view. Just check the .NET 2.0 runtime there. It will then insert all the necessary OS and service pack level checks for you directly in the setup script.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

maurosturaro
Posts: 22
Joined: Tue Mar 14, 2006 6:29 am

Postby maurosturaro » Sun Jun 04, 2006 2:25 am

In the script I found only this two check related with this issue:

in the main script: Get System Setting Windows 98 into CHECKOS
in the included checknet20: Check/Install .NET Framework (check v2.0, get result into variable DOTNET20)

Wich ones do you think check for win2ksp4 ?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Sun Jun 04, 2006 3:33 am

Neither. The MSI 3.0 runtime which is added when you check the .NET 2.0 runtime in the Application Runtimes view checks in its "check script" for the minimum operating system and service pack requirements.

Also, you are wrong about sp4 - I just checked and sp3 is sufficient.
Similarly, on xp no sp level is required at all. This is true for both MSI 3.0 and .NET 2.0.

Part of how InstallAware helps you is by providing pre-built templates and scripts that have already been tested to work on a very wide variety of platforms, so you can take the guesswork out of deploying your applications and runtimes.

For instance, .NET 2.0 can also be installed on Windows 98 with IE 5.01 Service Pack 1 and higher also. Again, the pre-built scripts and conditions already test for and support this scenario.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

maurosturaro
Posts: 22
Joined: Tue Mar 14, 2006 6:29 am

Postby maurosturaro » Sun Jun 04, 2006 5:13 am

I've seen it.
I was checking for sp4 becouse Microsoft tell this (http://msdn2.microsoft.com/en-us/library/ms229070.aspx).

You are right: I've made a quick test of my application under w2k sp3 and it seems to work.

But I prefer to check for the official requred version, so I've grab the logic of the script in the checkmsi30 and put in in my setup with some little change.

Please put something in your documentation about SP checking by script. ( and also some AND OR capabilities in the script :wink: )


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 198 guests