Click here to Skip to main content
13,095,921 members (54,617 online)
Click here to Skip to main content

Stats

53.4K views
21 bookmarked
Posted 30 Jun 2005

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
<VisualStudioProject>
    <CSHARP
        ProjectType = "Local"
        ProductVersion = "7.10.3077"
        SchemaVersion = "2.0"
        ProjectGuid = "{9CDFB3FF-00CC-415F-B084-1697D4FDD341}"
    >
        <Build>
            <Settings
                ApplicationIcon = ""
                AssemblyKeyContainerName = ""
                AssemblyName = "WpSampleHelloWorld"
                AssemblyOriginatorKeyFile = ""
                DefaultClientScript = "JScript"
                DefaultHTMLPageLayout = "Grid"
                DefaultTargetSchema = "IE50"
                DelaySign = "false"
                OutputType = "Library"
                PreBuildEvent = ""
                PostBuildEvent = ""
                RootNamespace = "WpSampleHelloWorld"
                RunPostBuildEvent = "OnBuildSuccess"
                StartupObject = ""
            >
                <Config
                    Name = "Debug"
                    AllowUnsafeBlocks = "false"
                    BaseAddress = "285212672"
                    CheckForOverflowUnderflow = "false"
                    ConfigurationOverrideFile = ""
                    DefineConstants = "DEBUG;TRACE"
                    DocumentationFile = ""
                    DebugSymbols = "true"
                    FileAlignment = "4096"
                    IncrementalBuild = "false"
                    NoStdLib = "false"
                    NoWarn = ""
                    Optimize = "false"
                    OutputPath = "..\..\..\Sharepoint_Portals\InfowebDev\bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "4"
                />
                <Config
                    Name = "Release"
                    AllowUnsafeBlocks = "false"
                    BaseAddress = "285212672"
                    CheckForOverflowUnderflow = "false"
                    ConfigurationOverrideFile = ""
                    DefineConstants = "TRACE"
                    DocumentationFile = ""
                    DebugSymbols = "false"
                    FileAlignment = "4096"
                    IncrementalBuild = "false"
                    NoStdLib = "false"
                    NoWarn = ""
                    Optimize = "true"
                    OutputPath = "..\..\..\Sharepoint_Portals\InfowebDev\bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "4"
                />
            </Settings>
            <References>
                <Reference
                    Name = "System"
                    AssemblyName = "System"
                    HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
                />
                <Reference
                    Name = "System.Drawing"
                    AssemblyName = "System.Drawing"
                    HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll"
                />
                <Reference
                    Name = "System.Web"
                    AssemblyName = "System.Web"
                    HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.dll"
                />
                <Reference
                    Name = "System.Xml"
                    AssemblyName = "System.Xml"
                    HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.dll"
                />
                <Reference
                    Name = "Microsoft.SharePoint"
                    AssemblyName = "Microsoft.SharePoint"
                    HintPath = "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\ISAPI\Microsoft.SharePoint.dll"
                    AssemblyFolderKey = "hklm\dn\web part resource kit"
                />
            </References>
        </Build>
        <Files>
            <Include>
                <File
                    RelPath = "AssemblyInfo.cs"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "HelloWorld.cs"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "HelloWorld.dwp"
                    SubType = "Content"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "Manifest.xml"
                    SubType = "Data"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "minus.gif"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "plus.gif"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "r.gif"
                    BuildAction = "Content"
                />
                <File
                    RelPath = "Rminus.gif"
                    BuildAction = "Content"
                />
            </Include>
        </Files>
    </CSHARP>
</VisualStudioProject>

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

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