Packaging and Deployment (1)

Page 699 – Sharepoint 2010 add a new element called UpgradeAction. The purpose of this element is to specify how to upgrade an existing feature instance.

For example you have deployed a content type and site columns feature and now you want to delete a site column and update the content type accordingly. You could use the UpgradeActions element to specify the CustomUpgradeAction and a parameter that contains the name of the site column you want to delete.

UpgradeAction elements –

AddContenttypeField – adds a new column to an existing content type
CustomUpgradeAction – specify list ofparameters; passed to FeatureUpgrading method.
VersionRange – specify range of version

What is Delegate Control? Find Out.

All features are copied to:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES


Under a subfolder.

stsadm –o installfeature –filename MyFeature\feature.xml –url http://localhost

stsadm –o uninstallfeature –filename MyFeature\feature. xml –url http://localhost
stsadm –o activatefeature –filename MyFeature\feature. xml –url http://localhost

stsadm –o deactivatefeature –filename MyFeature\feature. xml –url http://localhost

A Sharepoint solutionis a cabinet file (*.CAB) with .WSP

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: