Cool Solutions

Helping ZENworks Differentiate between Windows XP and XP Tablet

coolguys

By:

February 10, 2006 12:00 am

Reads: 3531

Comments:0

Score:0

PROBLEM: ZENworks does not currently have any ability to differentiate between Windows XP and XP Tablet Edition.

SOLUTION: We use the Lotus Notes client where I work. We use v6.5.3 due to some unwanted “features” introduced in v6.5.4. Unfortunately, v6.5.3 does not work with Windows XP Tablet Edition, so in those cases we want to push out v6.5.4, which DOES work.

ZENworks does not currently have any way to natively differentiate between the two operating systems, so I needed to find a script or a simple application which can kickoff an installation of the appropriate Notes client dependingon on whether the OS was XP Professional or XP Tablet Edition.

I posted this question in the Novell support forums, and someone was able to find an answer that required writing an application in C++ or VB. The sample code was posted in a Microsoft support forum located here.

I am an avid fan of the free scripting language AutoIt and I didn’t want to have to install Visual Studio for something this small. Luckily, the new betas of AutoIt include the ability to link to .DLL files, so I was able to port this simple app to AutoIt. At this moment, the current version of AutoIt is v3.1.1. but does not include the ability to link to .DLL files, so you will need to install the beta version, which can be found here.

Example

Compile the code below into a stand-alone .exe file, and run this in your “Install Notes” ZEN App.

Dim $result
Const $TabletPC = 86

$result = DllCall ( 'user32.dll', 'int', 'GetSystemMetrics', 'int', $TabletPC )

If $result[0] = 1 Then
    MsgBox ( 0, 'Debug', 'TabletPC!' )
    RunWait ( 'My_Notes_v6.5.4_installer.exe' )
Else
    MsgBox ( 0, 'Debug', 'NOT TabletPC!' )
    RunWait ( 'My_Notes_v6.5.3_installer.exe' )
EndIf

If you have any questions you may contact Jeremy at Jeremy.Mlazovsky@notes.udayton.edu

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS