Install SRS 2000 Client Print ActiveX controll in managed environment

Today I needed to create a script for installing SRS 2000 Client Printing ActiveX components for a customer. They have been running a WinXP platform but are now migrating to Win7 x64 platform. Due to an old legacy application with SQL 2000 Reporting Services they needed to install SRS 2000 Printing ActiveX controll for IE9 32 bit browser (which the customer is using as a default browser).

To be able to install the application with SCCM I did the following:

  • Extracted the files from RSClientPrint.cab from the SRS server
    Normally located in c:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin
  • Copied the files to the workstation on the following path
    %windir%\SysWOS64\srs_rpe
  • Registered the DLL file using 32 bit regsvr32.exe

The script that I used in SCCM:

@echo off
REM Create folder
md "%windir%\Syswow64\srs_rpe"
REM Copy files
xcopy "%~dp0Reporting" "%windir%\Syswow64\srs_rpe" /e /c /q /r /h /y
REM Register DLL file
%windir%\SysWOW64\regsvr32.exe /s %windir%\Syswow64\srs_rpe\RSClientPrint.dll
REM Exit script
Exit

No comments: