Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Conditions and Values to Determine the OS , Service Packs , Type , Product Suite

Updated: 06 Dec 2007 | 1 comment
WiseUser's picture
0 0 Votes
Login to vote

In Wise Package Studio there is a file section where the packager should be aware of "Controlling File Versioning Settings" when they place files in the package. There may be a situation where the user wants to overwrite a file or just ignore if the file is present. Here's how to deal with those situations.

Note: Text in "" represent "Variables" which can be used in "System Search" page of Wise Package Studio.
  1. Can be used to determine the OS (NT, XP, 2000...)

    Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
    Value Name: CurrentVersion
    Value: "4.0" for NT,
    "5.0" for Win2k,
    "5.1" for XP,
    "5.2" for Win 2003

  2. Can be used to determine the OS SP (SP2, 3, 4...)

    Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
    Value Name: CSDVersion
    Value: "Service Pack 2" for SP2,
    "Service Pack 3" for SP3

  3. Can be used to differentiate between NT Workstation and NT server
    Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions
    Value Name: ProductType
    Value: "WinNT" for Windows NT Workstation,
    "ServerNT" for Windows NT Server
  4. Can be used to determine if the OS is a Terminal Server
    Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions
    Value Name: ProductSuite
    Value: "Terminal Server" for Windows NT Terminal Server

Comments

Harsh Mokal's picture
14
Dec
2007
0 Votes 0
Login to vote

alternative

Above mentioned method is always recommended and is one good of the practice to use system serach than using other custom action for same purpose.

But suggesting one more method which can be used is "Ver" command.
If are very good in VBScripting, you can extact the required information from the output for same coomand and redirect into variables.
Above article information can be supplementry to the script.
Then same script can be re-use for over period of time.

One can use Environment variables to set conditions. For using these one need to use setProperty custom action.

Regards
Harsh