@@ -1,111 +1,110 @@
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">
8−
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://pandoc.org" />
19−
20− <InstallExecuteSequence>
21− <RemoveExistingProducts After="InstallFinalize"/>
22− </InstallExecuteSequence>
23−
24− <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
25−
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>
36−
37−<CustomActionRef Id="WixBroadcastSettingChange" />
38−<CustomActionRef Id="WixBroadcastEnvironmentChange" />
39−
40− <Directory Id="TARGETDIR" Name="SourceDir">
41−
42− <Directory Id="ProgramFilesFolder">
43− <Directory Id="APPLICATIONFOLDER" Name="Pandoc">
44− <Component Id="MainExecutable"
45− Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
46− <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
47− Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
48− <RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
49− <File Id="pandocEXE" Name="pandoc.exe"
50− Source="..\.cabal-sandbox\bin\pandoc.exe" />
51− <File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
52− Source="..\COPYRIGHT.txt" />
53− <File Id="pandocCOPYING" Name="COPYING.rtf"
54− Source="..\COPYING.rtf" />
55− </Component>
56−
57− <Component Id="CitationSupport"
58− Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
59− <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
60− Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
61− <File Id="pandoc_citeprocEXE" Name="pandoc-citeproc.exe"
62− Source="..\.cabal-sandbox\bin\pandoc-citeproc.exe" />
63− </Component>
64−
65−<Environment Id='UpdatePath' Name='PATH' Action='set' Permanent='no' System='no' Part='last' Value='[INSTALLDIR]' />
66−
67− <Component Id="Documentation"
68− Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
69− <File Id="pandocREADME" Name="Pandoc User's Guide.html"
70− Source="..\README.html" KeyPath="yes">
71− <Shortcut Id="ApplicationStartMenuShortcut" Directory="ApplicationProgramsFolder"
72− Name="Pandoc User’s Guide" Advertise="yes" />
73− </File>
74− </Component>
75− </Directory>
76− </Directory>
77−
78− <Directory Id="ProgramMenuFolder">
79− <Directory Id="ApplicationProgramsFolder" Name="Pandoc">
80− <Component Id="ApplicationShortcut" Guid="7F807DD5-CC54-474A-B571-89630893F563">
81− <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
82− <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
83− Name="ShortcutInstalled" Type="integer" Value="1" KeyPath="yes"/>
84− </Component>
85− </Directory>
86− </Directory>
87−
88− </Directory>
89−
90− <Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)" Description="Complete package" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER">
91− <Feature Id="MainProgram" Title="Program" Description="The main executable." Level="1">
92− <ComponentRef Id="MainExecutable" />
93− <ComponentRef Id="UpdatePathUser" />
94− <ComponentRef Id="UpdatePathMachine" />
95− </Feature>
96− <Feature Id="Manual" Title="Manual">
97− <ComponentRef Id="Documentation" />
98− <ComponentRef Id="ApplicationShortcut" />
99− </Feature>
100− <Feature Id="Citation" Title="Citation Support" Description="Citation support.">
101− <ComponentRef Id="CitationSupport" />
102− </Feature>
103− </Feature>
104−
105− <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
106− <UIRef Id="WixUI_InstallDir" />
107− <UIRef Id="WixUI_ErrorProgressText" />
108− <WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />
109−
110− </Product>
111−</Wix>
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">
8+
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://pandoc.org" />
19+
20+ <InstallExecuteSequence>
21+ <RemoveExistingProducts After="InstallFinalize"/>
22+ </InstallExecuteSequence>
23+
24+ <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
25+
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>
36+
37+
38+ <Directory Id="TARGETDIR" Name="SourceDir">
39+
40+ <Directory Id="ProgramFilesFolder">
41+ <Directory Id="APPLICATIONFOLDER" Name="Pandoc">
42+ <Component Id="MainExecutable"
43+ Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
44+ <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
45+ Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
46+ <RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
47+ <File Id="pandocEXE" Name="pandoc.exe"
48+ Source="..\.cabal-sandbox\bin\pandoc.exe" />
49+ <File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
50+ Source="..\COPYRIGHT.txt" />
51+ <File Id="pandocCOPYING" Name="COPYING.rtf"
52+ Source="..\COPYING.rtf" />
53+ <Environment Id='UpdatePath' Name='PATH' Action='set' Permanent='no' System='no' Part='last' Value='[APPLICATIONFOLDER]' />
54+ </Component>
55+
56+ <Component Id="CitationSupport"
57+ Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
58+ <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
59+ Name="Version" Type="string" Value="[ProductVersion]" KeyPath="yes"/>
60+ <File Id="pandoc_citeprocEXE" Name="pandoc-citeproc.exe"
61+ Source="..\.cabal-sandbox\bin\pandoc-citeproc.exe" />
62+ </Component>
63+
64+
65+ <Component Id="Documentation"
66+ Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
67+ <File Id="pandocREADME" Name="Pandoc User's Guide.html"
68+ Source="..\README.html" KeyPath="yes">
69+ <Shortcut Id="ApplicationStartMenuShortcut" Directory="ApplicationProgramsFolder"
70+ Name="Pandoc User’s Guide" Advertise="yes" />
71+ </File>
72+ </Component>
73+ </Directory>
74+ </Directory>
75+
76+ <Directory Id="ProgramMenuFolder">
77+ <Directory Id="ApplicationProgramsFolder" Name="Pandoc">
78+ <Component Id="ApplicationShortcut" Guid="7F807DD5-CC54-474A-B571-89630893F563">
79+ <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
80+ <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
81+ Name="ShortcutInstalled" Type="integer" Value="1" KeyPath="yes"/>
82+ </Component>
83+ </Directory>
84+ </Directory>
85+
86+ </Directory>
87+
88+ <Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)" Description="Complete package" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER">
89+ <Feature Id="MainProgram" Title="Program" Description="The main executable." Level="1">
90+ <ComponentRef Id="MainExecutable" />
91+ </Feature>
92+ <Feature Id="Manual" Title="Manual">
93+ <ComponentRef Id="Documentation" />
94+ <ComponentRef Id="ApplicationShortcut" />
95+ </Feature>
96+ <Feature Id="Citation" Title="Citation Support" Description="Citation support.">
97+ <ComponentRef Id="CitationSupport" />
98+ </Feature>
99+ </Feature>
100+
101+ <CustomActionRef Id="WixBroadcastSettingChange" />
102+ <CustomActionRef Id="WixBroadcastEnvironmentChange" />
103+
104+ <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
105+ <UIRef Id="WixUI_InstallDir" />
106+ <UIRef Id="WixUI_ErrorProgressText" />
107+ <WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />
108+
109+ </Product>
110+</Wix>