From b0a26d7193d99e7862f0fa1c280dae768a479700 Mon Sep 17 00:00:00 2001
From: John MacFarlane <fiddlosopher@gmail.com>
Date: Sat, 14 Sep 2013 16:52:16 -0700
Subject: [PATCH] Windows:  make citation support a separable component.

---
 windows/pandoc.wxs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/windows/pandoc.wxs b/windows/pandoc.wxs
index 2c87e41e9..5fe0a022e 100644
--- a/windows/pandoc.wxs
+++ b/windows/pandoc.wxs
@@ -55,7 +55,6 @@
           Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
             <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
             Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
-            <RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
             <File Id="pandoc_citeprocEXE" Name="pandoc-citeproc.exe"
             Source="..\cabal-dev\bin\pandoc-citeproc.exe" />
             <File Id="biblio2yamlEXE" Name="biblio2yaml.exe"
@@ -113,6 +112,9 @@
         <ComponentRef Id="Documentation" />
         <ComponentRef Id="ApplicationShortcut" />
       </Feature>
+      <Feature Id="Citation" Title="Citation Support" Description="Citation support.">
+        <ComponentRef Id="CitationSupport" />
+      </Feature>
     </Feature>
 
     <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />