Click here to Skip to main content
12,301,418 members (60,143 online)
Click here to Skip to main content

Stats

51.2K views
147 downloads
21 bookmarked
Posted

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

, 30 Jun 2005
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.
WpSampleHelloWorld
bin
Release
WpSampleHelloWorld.dll
HelloWorld.dwp
Helloworld.snk
Lplus.gif
minus.gif
plus.gif
r.gif
Rminus.gif
WpSampleHelloWorld.csproj.user
WpSampleHelloWorldInstaller
Release
WpSampleHelloWorldInstaller.CAB
WpSampleHelloWorldInstaller.vdproj
Installer
WpSampleHelloWorldInstaller.CAB
<?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

Share

About the Author

Rajshekar Chittoory
Web Developer
United States United States
Rajshekhar Chittoory

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160525.2 | Last Updated 1 Jul 2005
Article Copyright 2005 by Rajshekar Chittoory
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid