R – In a sharepoint .wsp file how to move a folder full of files into the sharepoint filesystem

deploymentsharepoint

I need to move a folder of files (+-100 or so) from within a .wsp file

Steps
1) Package up files into the wsp
2) When Feature is activated copy files to the filesystem (12\LAYOUTS\MyPackage)
3) When Feature removed delete the MyPackage folder
4) …….
5) Profit

The files do not need to be versioned etc by SharePoint.

Best Answer

You'll need to use the module element within the elements.XML file referenced by your feature definition; details here:

http://msdn.microsoft.com/en-us/library/ms441170.aspx

Related Topic