Conditions and Values to Determine the OS , Service Packs , Type , Product Suite
Updated: 06 Dec 2007 | 1 comment
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.
- 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 - 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 - 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 - 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
blog entry Filed Under:
The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments
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
Would you like to reply?
Login or Register to post your comment.