Hi Bill
You can create a feature receiver class that contains code when a feature gets: * Installed * Activated * DeActivated * UnInstalled You can do this by writing code in a class that inherits from SPFeatureReceiver base class and override the following methods: * FeatureInstalled * FeatureActivated * FeatureDeactivating * FeatureUninstalling HYPERLINK "http://msdn2.microsoft.com/en-us/library/ms469501.aspx"http://msdn2.microsoft.com/en-us/library/ms469501.aspx Using the object model you can activate/deactivate a feature, but you cannot install/uninstall a feature (as far as I am aware). If this was required then in the FeatureActivated event you could write code that runs a .cmd/.bat file that copies the feature and its associated files to the TEMPLATE\FEATURES directory to install (and activate) the feature. Clayton James Data Cogs Information Technology _____ From: [EMAIL PROTECTED] on behalf of Ishai Sagi Sent: Fri 14/12/2007 4:48 PM To: [email protected] Subject: RE: [OzMOSS] You can't have a hidden feature with an activation dependency? Maybe use featureactived event? ________________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Bill Williamson [EMAIL PROTECTED] Sent: Friday, 14 December 2007 4:34 PM To: [email protected] Subject: [OzMOSS] You can't have a hidden feature with an activation dependency? -Create a hidden feature which creates a list -Install feature -Create a hidden feature which depends on the above hidden feature, and creates an item in that list -Attempt to install the second feature "Hidden features with activation dependencies are not supported." You can't be serious... is there NO way around this? ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by HYPERLINK "http://www.readify.net"www.readify.net ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by HYPERLINK "http://www.readify.net"www.readify.net No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.4/1188 - Release Date: 17/12/2007 02:13 PM ------------------------------------------------------------------- OzMOSS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
<<winmail.dat>>
