With the release of beta 2 of Windows Live Writer, the Writer Team released a new set of API documentation, but not for plugin development, rather for Blog Service Providers to enable features within Writer itself. This means that if a blog service enables a feature that Writer can use, say the excerpt feature, then they can create a new wlwmanifest.xml that goes in the root of the blog directory, Writer will then detect this file and enable the features as described in that manifest file.
Scott has done some testing and reports that “there are a whole host of settings that can be enabled and changed”, all of which are documented on MSDN. The XML file that I used for this is as follows:
One of the other new changes in Writer is the deployment methods for plugins. There are now two additional methods other than hard coding the installer to put it in %ProgramFiles%\Windows Live Writer\Plugins. The new installer creates a registry entry for the InstalDir which the installer can get the install directory from, and then work it from there. Or you can put your plugin in a directory of your choice, and install a registry key to tell Writer where the plugin is located.
The hidden extra, is something in the plugin APIs, and has actually been there the whole time; the difference being, up until now, it didn’t do anything. If we go back to my original tutorial, we had this for the CreateContent method that we override:
public override DialogResult CreateContent(IWin32Window dialogOwner, ref string newContent)
Well in this method we get passed a string reference called newContent, which, with the release of beta 2 of Writer, now actually does something. If you highlight any text within the editor and click on a plugin, then the plugin will receive the full HTML code for the highlighted text, which you can then use in your plugin.
Microsoft, Windows Live, Live Beta, Windows Live Writer, API, Deployment, Features, Guide