2015-06-13 06:30:18 +02:00
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
|
|
|
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
|
|
|
<Product Id="*"
|
|
|
|
|
UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)"
|
|
|
|
|
Version="$(var.VERSION)" Manufacturer="John MacFarlane"
|
|
|
|
|
Language="1033">
|
|
|
|
|
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Package InstallerVersion="200" Compressed="yes"
|
2015-06-13 06:30:18 +02:00
|
|
|
|
Comments="Windows Installer Package" />
|
|
|
|
|
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
|
|
|
|
|
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
|
|
|
|
|
<Upgrade Id="$(var.UpgradeCode)">
|
|
|
|
|
<UpgradeVersion Property='PREVIOUSVERSIONSINSTALLED'
|
|
|
|
|
Minimum='0.0.0.0' IncludeMinimum='yes'
|
|
|
|
|
Maximum="99.0.0.0" IncludeMaximum="no" />
|
|
|
|
|
</Upgrade>
|
|
|
|
|
<Property Id="ARPURLINFOABOUT" Value="http://pandoc.org" />
|
|
|
|
|
|
|
|
|
|
<InstallExecuteSequence>
|
|
|
|
|
<RemoveExistingProducts After="InstallFinalize"/>
|
|
|
|
|
</InstallExecuteSequence>
|
|
|
|
|
|
|
|
|
|
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
|
|
|
|
|
|
|
|
<Directory Id="ProgramFilesFolder">
|
|
|
|
|
<Directory Id="APPLICATIONFOLDER" Name="Pandoc">
|
|
|
|
|
<Component Id="MainExecutable"
|
|
|
|
|
Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
|
2015-06-29 07:43:05 +02:00
|
|
|
|
<RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
|
2015-06-28 05:47:37 +02:00
|
|
|
|
Name="Version" Type="string" Value="[ProductVersion]"
|
|
|
|
|
KeyPath="yes"/>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
|
|
|
|
|
<File Id="pandocEXE" Name="pandoc.exe"
|
|
|
|
|
Source="..\.cabal-sandbox\bin\pandoc.exe" />
|
|
|
|
|
<File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
|
|
|
|
|
Source="..\COPYRIGHT.txt" />
|
|
|
|
|
<File Id="pandocCOPYING" Name="COPYING.rtf"
|
|
|
|
|
Source="..\COPYING.rtf" />
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Environment Id='UpdatePath' Name='PATH' Action='set'
|
|
|
|
|
Permanent='no' System='no' Part='last'
|
|
|
|
|
Value='[APPLICATIONFOLDER]' />
|
|
|
|
|
</Component>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
|
|
|
|
|
<Component Id="CitationSupport"
|
|
|
|
|
Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
|
|
|
|
|
<RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
|
2015-06-28 05:47:37 +02:00
|
|
|
|
Name="Version" Type="string" Value="[ProductVersion]"
|
|
|
|
|
KeyPath="yes"/>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<File Id="pandoc_citeprocEXE" Name="pandoc-citeproc.exe"
|
|
|
|
|
Source="..\.cabal-sandbox\bin\pandoc-citeproc.exe" />
|
2015-06-28 05:47:37 +02:00
|
|
|
|
</Component>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Component Id="Documentation"
|
|
|
|
|
Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
|
|
|
|
|
<File Id="pandocREADME" Name="Pandoc User's Guide.html"
|
|
|
|
|
Source="..\README.html" KeyPath="yes">
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Shortcut Id="ApplicationStartMenuShortcut"
|
|
|
|
|
Directory="ApplicationProgramsFolder"
|
2015-06-13 06:30:18 +02:00
|
|
|
|
Name="Pandoc User’s Guide" Advertise="yes" />
|
|
|
|
|
</File>
|
|
|
|
|
</Component>
|
|
|
|
|
</Directory>
|
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
|
|
<Directory Id="ProgramMenuFolder">
|
|
|
|
|
<Directory Id="ApplicationProgramsFolder" Name="Pandoc">
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Component Id="ApplicationShortcut"
|
|
|
|
|
Guid="7F807DD5-CC54-474A-B571-89630893F563">
|
|
|
|
|
<RemoveFolder Id="ApplicationProgramsFolder"
|
|
|
|
|
On="uninstall"/>
|
2015-06-29 07:43:05 +02:00
|
|
|
|
<RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
|
2015-06-28 05:47:37 +02:00
|
|
|
|
Name="ShortcutInstalled" Type="integer" Value="1"
|
|
|
|
|
KeyPath="yes"/>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</Component>
|
|
|
|
|
</Directory>
|
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
|
|
</Directory>
|
|
|
|
|
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)"
|
|
|
|
|
Description="Complete package" Display="expand"
|
|
|
|
|
ConfigurableDirectory="APPLICATIONFOLDER">
|
|
|
|
|
<Feature Id="MainProgram" Title="Program" Description="The main
|
|
|
|
|
executable."
|
|
|
|
|
Level="1">
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<ComponentRef Id="MainExecutable" />
|
|
|
|
|
</Feature>
|
|
|
|
|
<Feature Id="Manual" Title="Manual">
|
|
|
|
|
<ComponentRef Id="Documentation" />
|
|
|
|
|
<ComponentRef Id="ApplicationShortcut" />
|
|
|
|
|
</Feature>
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Feature Id="Citation" Title="Citation Support"
|
|
|
|
|
Description="Citation support.">
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<ComponentRef Id="CitationSupport" />
|
|
|
|
|
</Feature>
|
|
|
|
|
</Feature>
|
|
|
|
|
|
|
|
|
|
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<SetProperty Id="ARPINSTALLLOCATION" Value="[APPLICATIONFOLDER]"
|
|
|
|
|
After="CostFinalize" />
|
|
|
|
|
|
|
|
|
|
<CustomAction Id="SetExitDialogOptText"
|
|
|
|
|
Property="WIXUI_EXITDIALOGOPTIONALTEXT"
|
|
|
|
|
Value="[ProductName] was installed in [APPLICATIONFOLDER]. You
|
|
|
|
|
may need to restart Cmd/Powershell windows before using it."
|
|
|
|
|
/>
|
|
|
|
|
|
2015-06-29 18:39:39 +02:00
|
|
|
|
<CustomAction Id="CustomWixSetPerUserFolder" Property="APPLICATIONFOLDER" Value="[LocalAppDataFolder][ApplicationFolderName]" Execute="immediate" />
|
|
|
|
|
|
|
|
|
|
<InstallExecuteSequence>
|
|
|
|
|
<Custom Action="CustomWixSetPerUserFolder" After="WixSetPerUserFolder">
|
|
|
|
|
ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))
|
|
|
|
|
</Custom>
|
|
|
|
|
</InstallExecuteSequence>
|
|
|
|
|
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<InstallUISequence>
|
|
|
|
|
<Custom Action="SetExitDialogOptText" Before="ExecuteAction">
|
|
|
|
|
NOT Installed
|
|
|
|
|
</Custom>
|
2015-06-29 18:39:39 +02:00
|
|
|
|
<Custom Action="CustomWixSetPerUserFolder" After="WixSetPerUserFolder">
|
|
|
|
|
ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))
|
|
|
|
|
</Custom>
|
2015-06-28 05:47:37 +02:00
|
|
|
|
</InstallUISequence>
|
|
|
|
|
|
|
|
|
|
<CustomActionRef Id="WixBroadcastSettingChange" />
|
|
|
|
|
<CustomActionRef Id="WixBroadcastEnvironmentChange" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Property Id="ApplicationFolderName" Value="Pandoc" />
|
|
|
|
|
<Property Id="WixAppFolder" Value="WixPerUserFolder" />
|
|
|
|
|
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />
|
|
|
|
|
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<UI Id="MyWixUI_Advanced">
|
|
|
|
|
<UIRef Id="WixUI_Advanced" />
|
|
|
|
|
<UIRef Id="WixUI_ErrorProgressText" />
|
|
|
|
|
|
|
|
|
|
<Publish Dialog="InstallScopeDlg" Control="Next"
|
|
|
|
|
Event="NewDialog" Value="VerifyReadyDlg"
|
|
|
|
|
Order="6">WixAppFolder =
|
|
|
|
|
"WixPerUserFolder"</Publish>
|
|
|
|
|
<Publish Dialog="InstallDirDlg" Control="Next"
|
|
|
|
|
Event="NewDialog" Value="VerifyReadyDlg"
|
|
|
|
|
Order="4">WIXUI_DONTVALIDATEPATH OR
|
|
|
|
|
WIXUI_INSTALLDIR_VALID="1"</Publish>
|
|
|
|
|
|
|
|
|
|
<Publish Dialog="VerifyReadyDlg" Control="Back"
|
|
|
|
|
Event="NewDialog" Value="InstallScopeDlg"
|
|
|
|
|
Order="11">WixAppFolder =
|
|
|
|
|
"WixPerUserFolder"</Publish>
|
|
|
|
|
<Publish Dialog="VerifyReadyDlg" Control="Back"
|
|
|
|
|
Event="NewDialog" Value="InstallDirDlg"
|
|
|
|
|
Order="12">WixAppFolder =
|
|
|
|
|
"WixPerMachineFolder"</Publish>
|
|
|
|
|
</UI>
|
|
|
|
|
|
|
|
|
|
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</Product>
|
2015-06-28 05:47:37 +02:00
|
|
|
|
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</Wix>
|