git.iko.soy/typeable/pandoc
on issue1234 help sign in
124 lines 6.3 kB history raw
1<?xml version="1.0"?>
2<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
3<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
4 <Product Id="*"
5 UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)"
6 Version="$(var.VERSION)" Manufacturer="John MacFarlane"
7 Language="1033">
9 <Package InstallerVersion="200" Compressed="yes" InstallScope="perUser"
10 Comments="Windows Installer Package" />
11 <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
12 <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
13 <Upgrade Id="$(var.UpgradeCode)">
14 <UpgradeVersion Property='PREVIOUSVERSIONSINSTALLED'
15 Minimum='0.0.0.0' IncludeMinimum='yes'
16 Maximum="99.0.0.0" IncludeMaximum="no" />
17 </Upgrade>
18 <Property Id="ARPURLINFOABOUT" Value="http://johnmacfarlane.net/pandoc/" />
20 <InstallExecuteSequence>
21 <RemoveExistingProducts After="InstallFinalize"/>
22 </InstallExecuteSequence>
24 <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
26 <CustomAction Id="SetPerUserFolder" Property="APPLICATIONFOLDER" Value="[LocalAppDataFolder]Pandoc" Execute="immediate" />
27 <CustomAction Id="SetPerMachineFolder" Property="APPLICATIONFOLDER" Value="[ProgramFilesFolder]Pandoc" Execute="immediate" />
28 <InstallExecuteSequence>
29 <Custom Action="SetPerUserFolder" Before="CostFinalize">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))</Custom>
30 <Custom Action="SetPerMachineFolder" After="SetPerUserFolder">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))</Custom>
31 </InstallExecuteSequence>
32 <InstallUISequence>
33 <Custom Action="SetPerUserFolder" Before="CostFinalize">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))</Custom>
34 <Custom Action="SetPerMachineFolder" After="SetPerUserFolder">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))</Custom>
35 </InstallUISequence>
37 <Directory Id="TARGETDIR" Name="SourceDir">
39 <Directory Id="ProgramFilesFolder">
40 <Directory Id="APPLICATIONFOLDER" Name="Pandoc">
41 <Component Id="MainExecutable"
42 Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
43 <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
44 Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
45 <RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
46 <File Id="pandocEXE" Name="pandoc.exe"
47 Source="..\cabal-dev\bin\pandoc.exe" />
48 <File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
49 Source="..\COPYRIGHT.txt" />
50 <File Id="pandocCOPYING" Name="COPYING.rtf"
51 Source="..\COPYING.rtf" />
52 </Component>
54 <Component Id="CitationSupport"
55 Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
56 <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
57 Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
58 <File Id="pandoc_citeprocEXE" Name="pandoc-citeproc.exe"
59 Source="..\cabal-dev\bin\pandoc-citeproc.exe" />
60 </Component>
62 <Component Id="UpdatePathUser"
63 Guid="C7B71304-09FC-421D-9EA2-AEFB7D61759D">
64 <Condition><![CDATA[ ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)) ]]></Condition>
65 <Environment Id="UpdatePathUser" Name="PATH" Action="set"
66 Part="last" Value="[APPLICATIONFOLDER]" System="no" />
67 <RegistryValue Root="HKCU" Key="Software\John MacFarlane\Pandoc"
68 Name="UserPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
69 </Component>
71 <Component Id="UpdatePathMachine"
72 Guid="0C642D0A-7175-4CD7-B11F-0A69F73FD757">
73 <Condition><![CDATA[ ALLUSERS=1 OR (ALLUSERS=2 AND Privileged) ]]></Condition>
74 <Environment Id="UpdatePathMachine" Name="PATH" Action="set"
75 Part="last" Value="[APPLICATIONFOLDER]" System="yes" />
76 <RegistryValue Root="HKLM" Key="Software\John MacFarlane\Pandoc"
77 Name="SystemPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
78 </Component>
80 <Component Id="Documentation"
81 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
82 <File Id="pandocREADME" Name="Pandoc User's Guide.html"
83 Source="..\README.html" KeyPath="yes">
84 <Shortcut Id="ApplicationStartMenuShortcut" Directory="ApplicationProgramsFolder"
85 Name="Pandoc User’s Guide" Advertise="yes" />
86 </File>
87 </Component>
88 </Directory>
89 </Directory>
91 <Directory Id="ProgramMenuFolder">
92 <Directory Id="ApplicationProgramsFolder" Name="Pandoc">
93 <Component Id="ApplicationShortcut" Guid="7F807DD5-CC54-474A-B571-89630893F563">
94 <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
95 <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
96 Name="ShortcutInstalled" Type="integer" Value="1" KeyPath="yes"/>
97 </Component>
98 </Directory>
99 </Directory>
101 </Directory>
103 <Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)" Description="Complete package" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER">
104 <Feature Id="MainProgram" Title="Program" Description="The main executable." Level="1">
105 <ComponentRef Id="MainExecutable" />
106 <ComponentRef Id="UpdatePathUser" />
107 <ComponentRef Id="UpdatePathMachine" />
108 </Feature>
109 <Feature Id="Manual" Title="Manual">
110 <ComponentRef Id="Documentation" />
111 <ComponentRef Id="ApplicationShortcut" />
112 </Feature>
113 <Feature Id="Citation" Title="Citation Support" Description="Citation support.">
114 <ComponentRef Id="CitationSupport" />
115 </Feature>
116 </Feature>
118 <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
119 <UIRef Id="WixUI_Minimal" />
120 <UIRef Id="WixUI_ErrorProgressText" />
121 <WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />
123 </Product>
124</Wix>