Upgrading from a Previous Version

Applies To: Windows Server 2008, Windows Server 2008 R2

If you are uncertain as to which version of the RMS client you have installed, you can use the following script to detect whether Microsoft Windows Rights Management Services Client with Service Pack 2 is installed. This sample script will also upgrade the version to SP2 if it is not installed.

Note

This script must be run from the same directory as the Windows Rights Management executable.

Set objShell = Wscript.CreateObject("Wscript.Shell")
Set objWindowsInstaller = Wscript.CreateObject("WindowsInstaller.Installer") 
Set colProducts = objWindowsInstaller.Products 
For Each product In colProducts 
strProductName = objWindowsInstaller.ProductInfo (product, "ProductName")
if strProductName = "Windows Rights Management Client with Service Pack 2" then
strInstallFlag = "False"
Exit For
else
strInstallFlag = "True"
end if
Next
if strInstallFlag = "True" then
objShell.run "WindowsRightsManagementServicesSP2-KB917275-Client-ENU.exe -override 1 /I MsDrmClient.msi REBOOT=ReallySuppress /q -override 2 /I RmClientBackCompat.msi REBOOT=ReallySuppress /q "
else
wscript.echo "No installation required"
end if