Click here to Skip to main content
15,886,799 members
Articles / Programming Languages / C#

How to Create Installer (.cab) for web part?

Rate me:
Please Sign up or sign in to vote.
3.36/5 (7 votes)
30 Jun 20052 min read 61.2K   161   21  
A sample project (Hello world webpart and installer project) and walk through for creating an installer for web part that will install the webpart on the share point portal site.
<?xml version="1.0"?>
<!-- You need only one manifest per CAB project for Web Part Deployment.-->
<!-- This manifest file can have multiple assembly nodes.-->
<WebPartManifest xmlns="http://schemas.microsoft.com/WebPart/v2/Manifest">
  <Assemblies>
    <Assembly FileName="WpSampleHelloWorld.dll">
	<!-- Use the <ClassResource> tag to specify resources like image files or JScript files that your Web Parts use. -->
    <!-- Note that you must use relative paths when specifying resource files. -->
      
      <ClassResources>
        <ClassResource FileName="minus.gif"/>
      </ClassResources>
      
      <SafeControls>
        <SafeControl
          Namespace="WpSampleHelloWorld"
          TypeName="*"
        />
      </SafeControls>
    </Assembly>
  </Assemblies>
  <DwpFiles>
    <DwpFile FileName="HelloWorld.dwp"/>
  </DwpFiles>
</WebPartManifest>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Rajshekhar Chittoory

Comments and Discussions