From cd4ad4bc96f864450b374f34f3ae8b0bf4952d87 Mon Sep 17 00:00:00 2001
From: Fyodor Sheremetyev <sheremetyev@gmail.com>
Date: Fri, 15 Mar 2013 13:46:07 +0000
Subject: [PATCH] =?UTF-8?q?WiX:=20Use=20=E2=80=9CAdvanced=E2=80=9D=20templ?=
 =?UTF-8?q?ate=20that=20supports=20selection=20of=20per-user=20or=20per-ma?=
 =?UTF-8?q?chine=20mode.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

http://wix.sourceforge.net/manual-wix3/WixUI_advanced.htm

To install for all users installer should be started from admin account.
---
 windows/pandoc.wxs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/windows/pandoc.wxs b/windows/pandoc.wxs
index 2c7c4858b..2d6cfada3 100644
--- a/windows/pandoc.wxs
+++ b/windows/pandoc.wxs
@@ -21,11 +21,14 @@
       <RemoveExistingProducts After="InstallFinalize"/>
     </InstallExecuteSequence>
 
+    <Property Id="ApplicationFolderName" Value="Pandoc" />
+    <Property Id="WixAppFolder" Value="WixPerUserFolder" />
+
     <Directory Id="TARGETDIR" Name="SourceDir">
       <Directory Id="ProgramMenuFolder">
         <Directory Id="ApplicationProgramsFolder" Name="Pandoc"/>
       </Directory>
-      <Directory Id="LocalAppDataFolder">
+      <Directory Id="ProgramFilesFolder">
         <Directory Id="INSTALLDIR" Name="Pandoc">
           <Component Id="MainExecutable"
           Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
@@ -75,7 +78,7 @@
       </Feature>
     </Feature>
 
-    <UIRef Id="WixUI_Minimal" />
+    <UIRef Id="WixUI_Advanced" />
     <UIRef Id="WixUI_ErrorProgressText" />
     <WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />