Aaron\'s Live Writer Blog

June 14, 2010

Install path for registering your Windows Live Writer Plug-ins

Filed under: Live Writer, Plug-in, Wave 3, Wave 4 — Tags: , , , — Aaron Bregel @ 12:56 PM

We love our plug-in developers.  Every week there is something cool or new that shows up in the Gallery.  What is more amazing is that is is done with documentation that is not so great.  I wish I could say that we are moving at a faster pace at updating the Live Writer SDK but this has not been the case.  One thing that was pointed out this week was that our SDK is wrong for where it is suggested you register your plug-in when you writer your installer.

 

http://msdn.microsoft.com/en-us/library/aa738841(v=MSDN.10).aspx for where to you install your plug-in reads:

Writer Plugins can be installed and registered using one of two methods:

  1. Copying the Plugin Assembly to the Plugins sub-directory of the Writer installation directory. Installers can detect the Writer installation directory by reading the “InstalDir” value from the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Live\Writer\
  2. By writing the name and full path of the Plugin to the “PluginAssemblies” Registry key located at either:
    HKEY_LOCAL_MACHINE\SOFTWARE\Windows Live\Writer\PluginAssemblies
    HKEY_CURRENT_USER\SOFTWARE\Windows Live\Writer\PluginAssemblies
    For example, a plugin at the path “C:\Program Files\My Product\MyProduct.WriterPlugin.dll” could be registered by adding the following key/value pair to the PluginAssemblies key:
    Key = MyProduct.WriterPluginValue = C:\Program Files\My Product\MyProduct.WriterPlugin.dll

What it should read is:

Writer Plugins can be installed and registered using one of two methods:

  1. Copying the Plugin Assembly to the Plugins sub-directory of the Writer installation directory. Installers can detect the Writer installation directory by reading the “InstalDir” value from the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Live\Writer\
  2. By writing the name and full path of the Plugin to the “PluginAssemblies” Registry key located at either:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Live\Writer\PluginAssemblies
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Live\Writer\PluginAssemblies
    For example, a plugin at the path “C:\Program Files\My Product\MyProduct.WriterPlugin.dll” could be registered by adding the following key/value pair to the PluginAssemblies key:
    Key = MyProduct.WriterPluginValue = C:\Program Files\My Product\MyProduct.WriterPlugin.dll

 

When you submit your plug-in to the Gallery we will catch this mistake but you can save yourself a re-submit but making sure you write the key to the correct location in the registry.

I will try and remember to update this post when a new version of the SDK is published with this correction.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: