Deploying ProClarity Viewer 6.3 for SharePoint
Deploying ProClarity Viewer 6.3 for SharePoint
I was recently asked to deploy the ProClarity Viewer 6.3 for SharePoint Web Part - after downloading the package I realized that it was not offered in a deployable package, but rather a compressed archive of the .dwp, assembly, and resource files. The challenge became offering a user experience similar to the previous ProClarity Viewer version so I decided to package the Web Part into a reusable solution. For those interested or looking to create a deployable Web Part package I’ve documented the steps below:
Step 1 Create a Manifest
The Manifest file is a required configuration file that describes the contents and overall structure of the cabinet file. STSADM will use the Manifest file to deploy the contents of the cabinet file when executing the addwppack operation.
<Assemblies> <Assembly FileName="**SPSPageViewer.dll**"> <SafeControls> <SafeControl Assembly="**SPSPageViewer**, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="SPSPageViewer" TypeName="*" Safe="True" /> </SafeControls> <ClassResources> <ClassResource FileName="**images/Book.gif**"/> <ClassResource FileName="**images/Folder.gif**"/> <ClassResource FileName="**images/Library.gif**"/> <ClassResource FileName="**images/Page.gif**"/> <ClassResource FileName="**images/TPMax2.gif**"/> <ClassResource FileName="**images/TPMin2.gif**"/> <ClassResource FileName="**images/Unknown.gif**"/> <ClassResource FileName="**images/up.gif**"/> </ClassResources> </Assembly> </Assemblies> <DwpFiles> <DwpFile FileName="**PasPageViewer.dwp**"/> </DwpFiles>
The
The
The
The complete Manifest file should appear as follows:
<?xml version="1.0"?> <WebPartManifest xmlns="[http://schemas.microsoft.com/WebPart/v2/Manifest"](http://schemas.microsoft.com/WebPart/v2/Manifest%22)> <Assemblies> <Assembly FileName="SPSPageViewer.dll"> <SafeControls> <SafeControl Namespace="SPSPageViewer" TypeName="*" /> </SafeControls> <ClassResources> <ClassResource FileName="images/Book.gif"/> <ClassResource FileName="images/Folder.gif"/> <ClassResource FileName="images/Library.gif"/> <ClassResource FileName="images/Page.gif"/> <ClassResource FileName="images/TPMax2.gif"/> <ClassResource FileName="images/TPMin2.gif"/> <ClassResource FileName="images/Unknown.gif"/> <ClassResource FileName="images/up.gif"/> </ClassResources> </Assembly> </Assemblies> <DwpFiles> <DwpFile FileName="PasPageViewer.dwp"/> </DwpFiles> </WebPartManifest>
Step 2 Create a MakeCab Directives File
The MakeCab directives file controls how files are compresses in a cabinet.
Create a logical file structure by copying Book.gif, Library.gif, Page.gif, TPMax.gif, TPMin.gif, Unknown.gif, and up.gif to /images. *You will need to create the images directory in your cabinet directory. The directives file is also used to define the name of the cabinet file.
; .Set CabinetNameTemplate=ProClarity63.cab .set DiskDirectoryTemplate=CDROM .Set CompressionType=MSZIP .Set UniqueFiles='ON' .Set Cabinet=on .Set DiskDirectory1=. "C:ProClarity63imagesBook.gif" "imagesBook.gif" "C:ProClarity63imagesFolder.gif" "imagesFolder.gif" "C:ProClarity63imagesLibrary.gif" "imagesLibrary.gif" "C:ProClarity63imagesPage.gif" "imagesPage.gif" "C:ProClarity63imagesTPMax2.gif" "imagesTPMax2.gif" "C:ProClarity63imagesTPMin2.gif" "imagesTPMin2.gif" "C:ProClarity63imagesUnknown.gif" "imagesUnknown.gif" "C:ProClarity63imagesup.gif" "imagesup.gif" "C:ProClarity63PasPageViewer.dwp" "PasPageViewer.dwp" "C:ProClarity63SPSPageViewer.dll" "SPSPageViewer.dll" "C:ProClarity63Manifest.xml" "Manifest.xml" ;*** <the end>
Step 3 Create the Cabinet
To create the cabinet file execute MakeCab.exe /F
Step 4 Deployment
To deploy the Web Part package, copy
Execute STSADM -o addwppack -filename
Step 5 Verify Deployment
The Web Part package will be listed in the list of available/deployed solutions to the SharePoint Products and Technologies server farm under SharePoint 3.0 Central Administration | Operations | Solutions Management (see image).
To review deployment details, retract, or remove the solution click
Step 6 Add the ProClarity Viewer to a Page
To add the ProClarity Viewer Web Part to a page, navigate to a site collection and select Site Actions | Edit Page.
Select a Web Part zone and click Add Web Part.
Select ProClarity Viewer from the list of available Web Parts and click Add.