Click here to Skip to main content
11,410,750 members (64,938 online)
Click here to Skip to main content
Add your own
alternative version

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.zip
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

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