2013-02-10 20:45:43 +01:00
<?xml version="1.0"?>
2013-02-12 21:34:45 +01:00
<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
2013-02-10 20:45:43 +01:00
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
2013-02-11 01:25:58 +01:00
<Product Id="*"
2013-02-12 21:34:45 +01:00
UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)"
2013-02-11 01:25:58 +01:00
Version="$(var.VERSION)" Manufacturer="John MacFarlane"
2013-02-10 20:45:43 +01:00
Language="1033">
2013-03-15 13:50:08 +01:00
2013-02-12 21:19:35 +01:00
<Package InstallerVersion="200" Compressed="yes" InstallScope="perUser"
2013-02-10 20:45:43 +01:00
Comments="Windows Installer Package" />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
2013-02-11 01:25:58 +01:00
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
2013-02-12 21:34:45 +01:00
<Upgrade Id="$(var.UpgradeCode)">
2013-02-12 21:32:09 +01:00
<UpgradeVersion Property='PREVIOUSVERSIONSINSTALLED'
Minimum='0.0.0.0' IncludeMinimum='yes'
Maximum="99.0.0.0" IncludeMaximum="no" />
2013-02-11 01:25:58 +01:00
</Upgrade>
2013-02-12 21:24:31 +01:00
<Property Id="ARPURLINFOABOUT" Value="http://johnmacfarlane.net/pandoc/" />
2013-03-15 13:50:08 +01:00
2013-02-11 01:25:58 +01:00
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallFinalize"/>
</InstallExecuteSequence>
2013-03-15 13:50:08 +01:00
2013-03-15 16:10:24 +01:00
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
2013-03-15 14:46:07 +01:00
2013-03-15 22:43:47 +01:00
<CustomAction Id="SetPerUserFolder" Property="APPLICATIONFOLDER" Value="[LocalAppDataFolder]Pandoc" Execute="immediate" />
<CustomAction Id="SetPerMachineFolder" Property="APPLICATIONFOLDER" Value="[ProgramFilesFolder]Pandoc" Execute="immediate" />
2013-03-15 17:37:08 +01:00
<InstallExecuteSequence>
2013-03-15 22:43:47 +01:00
<Custom Action="SetPerUserFolder" Before="CostFinalize">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))</Custom>
<Custom Action="SetPerMachineFolder" After="SetPerUserFolder">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))</Custom>
2013-03-15 17:37:08 +01:00
</InstallExecuteSequence>
<InstallUISequence>
2013-03-15 22:43:47 +01:00
<Custom Action="SetPerUserFolder" Before="CostFinalize">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))</Custom>
<Custom Action="SetPerMachineFolder" After="SetPerUserFolder">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))</Custom>
2013-03-15 17:37:08 +01:00
</InstallUISequence>
2013-02-10 20:45:43 +01:00
<Directory Id="TARGETDIR" Name="SourceDir">
2013-03-15 15:25:40 +01:00
2013-03-15 14:46:07 +01:00
<Directory Id="ProgramFilesFolder">
2013-03-15 16:40:48 +01:00
<Directory Id="APPLICATIONFOLDER" Name="Pandoc">
2013-02-10 20:45:43 +01:00
<Component Id="MainExecutable"
2013-02-12 21:19:35 +01:00
Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
2013-03-15 16:10:24 +01:00
<RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
2013-02-12 21:19:35 +01:00
Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
2013-03-15 16:40:48 +01:00
<RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
2013-02-10 20:45:43 +01:00
<File Id="pandocEXE" Name="pandoc.exe"
Source="..\cabal-dev\bin\pandoc.exe" />
<File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
Source="..\COPYRIGHT.txt" />
<File Id="pandocCOPYING" Name="COPYING.rtf"
Source="..\COPYING.rtf" />
</Component>
2013-03-15 17:52:53 +01:00
2013-09-05 18:22:37 +02:00
<Component Id="CitationSupport"
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"
Source="..\cabal-dev\bin\biblio2yaml.exe" />
</Component>
2013-03-15 17:52:53 +01:00
<Component Id="UpdatePathUser"
Guid="C7B71304-09FC-421D-9EA2-AEFB7D61759D">
<Condition><![CDATA[ ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)) ]]></Condition>
<Environment Id="UpdatePathUser" Name="PATH" Action="set"
Part="last" Value="[APPLICATIONFOLDER]" System="no" />
<RegistryValue Root="HKCU" Key="Software\John MacFarlane\Pandoc"
Name="UserPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
</Component>
<Component Id="UpdatePathMachine"
Guid="0C642D0A-7175-4CD7-B11F-0A69F73FD757">
<Condition><![CDATA[ ALLUSERS=1 OR (ALLUSERS=2 AND Privileged) ]]></Condition>
<Environment Id="UpdatePathMachine" Name="PATH" Action="set"
Part="last" Value="[APPLICATIONFOLDER]" System="yes" />
<RegistryValue Root="HKLM" Key="Software\John MacFarlane\Pandoc"
Name="SystemPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
</Component>
2013-02-10 20:45:43 +01:00
<Component Id="Documentation"
2013-02-12 21:19:35 +01:00
Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
2013-02-10 20:45:43 +01:00
<File Id="pandocREADME" Name="Pandoc User's Guide.html"
2013-03-15 16:10:24 +01:00
Source="..\README.html" KeyPath="yes">
<Shortcut Id="ApplicationStartMenuShortcut" Directory="ApplicationProgramsFolder"
Name="Pandoc User’ s Guide" Advertise="yes" />
</File>
2013-02-10 20:45:43 +01:00
</Component>
</Directory>
</Directory>
2013-03-15 13:50:08 +01:00
2013-03-15 15:25:40 +01:00
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Pandoc">
<Component Id="ApplicationShortcut" Guid="7F807DD5-CC54-474A-B571-89630893F563">
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
2013-03-15 16:10:24 +01:00
<RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
2013-03-15 15:25:40 +01:00
Name="ShortcutInstalled" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</Directory>
</Directory>
</Directory>
2013-03-15 13:50:08 +01:00
2013-03-15 16:40:48 +01:00
<Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)" Description="Complete package" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER">
2013-02-10 20:45:43 +01:00
<Feature Id="MainProgram" Title="Program" Description="The main executable." Level="1">
<ComponentRef Id="MainExecutable" />
2013-03-15 17:52:53 +01:00
<ComponentRef Id="UpdatePathUser" />
<ComponentRef Id="UpdatePathMachine" />
2013-02-10 20:45:43 +01:00
</Feature>
2013-03-15 16:42:34 +01:00
<Feature Id="Manual" Title="Manual">
2013-02-10 20:45:43 +01:00
<ComponentRef Id="Documentation" />
<ComponentRef Id="ApplicationShortcut" />
</Feature>
</Feature>
2013-03-15 13:50:08 +01:00
2013-03-15 22:43:47 +01:00
<Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
<UIRef Id="WixUI_Minimal" />
2013-02-10 20:45:43 +01:00
<UIRef Id="WixUI_ErrorProgressText" />
<WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />
2013-03-15 13:50:08 +01:00
2013-02-10 20:45:43 +01:00
</Product>
</Wix>