2015-06-13 06:30:18 +02:00
|
|
|
|
<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<?if $(sys.BUILDARCH)=x64?>
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<?define ProgFilesFolder="ProgramFiles64Folder"?>
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<?else?>
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<?define ProgFilesFolder="ProgramFilesFolder"?>
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<?endif?>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<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">
|
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<Package InstallerVersion="301" 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>
|
|
|
|
|
|
|
|
|
|
<InstallExecuteSequence>
|
|
|
|
|
<RemoveExistingProducts After="InstallFinalize"/>
|
|
|
|
|
</InstallExecuteSequence>
|
|
|
|
|
|
|
|
|
|
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
|
|
|
|
|
|
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
|
|
|
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<Directory Id="$(var.ProgFilesFolder)">
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<Directory Id="APPLICATIONFOLDER" Name="Pandoc">
|
|
|
|
|
<Component Id="MainExecutable"
|
2015-07-10 07:02:30 +02:00
|
|
|
|
Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
|
|
|
|
|
<RegistryValue Root="HKMU"
|
|
|
|
|
Key="Software\John MacFarlane\Pandoc"
|
|
|
|
|
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"
|
2015-11-15 07:23:47 +01:00
|
|
|
|
Source="$(var.BINPATH)\pandoc.exe" />
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
|
2020-01-18 00:37:49 +01:00
|
|
|
|
Source="$(var.BINPATH)\COPYRIGHT.txt" />
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<File Id="pandocCOPYING" Name="COPYING.rtf"
|
2020-01-18 00:37:49 +01:00
|
|
|
|
Source="$(var.BINPATH)\COPYING.rtf" />
|
2015-06-28 05:47:37 +02:00
|
|
|
|
</Component>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
|
|
|
|
|
<Component Id="CitationSupport"
|
2015-07-10 07:02:30 +02:00
|
|
|
|
Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
|
|
|
|
|
<RegistryValue Root="HKMU"
|
|
|
|
|
Key="Software\John MacFarlane\Pandoc"
|
|
|
|
|
Name="Version" Type="string" Value="[ProductVersion]"
|
|
|
|
|
KeyPath="yes"/>
|
2015-06-28 05:47:37 +02:00
|
|
|
|
</Component>
|
2015-06-13 06:30:18 +02:00
|
|
|
|
|
|
|
|
|
<Component Id="Documentation"
|
2015-07-10 07:02:30 +02:00
|
|
|
|
Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
|
2016-07-20 14:12:57 +02:00
|
|
|
|
<File Id="pandocMANUAL" Name="Pandoc User's Guide.html"
|
2020-01-18 00:37:49 +01:00
|
|
|
|
Source="$(var.BINPATH)\MANUAL.html" KeyPath="yes">
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<Shortcut Id="ApplicationStartMenuShortcut"
|
|
|
|
|
Directory="ApplicationProgramsFolder"
|
2015-07-10 07:02:30 +02:00
|
|
|
|
Name="Pandoc User’s Guide" Advertise="yes" />
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</File>
|
|
|
|
|
</Component>
|
2015-07-10 07:02:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Component Id="UpdateUserPath"
|
|
|
|
|
Guid="7ECEAD05-CA5C-4147-82CB-F7CADABAC7F3"
|
|
|
|
|
KeyPath="yes">
|
|
|
|
|
<Condition>ALLUSERS = "" OR ALLUSERS = 2</Condition>
|
|
|
|
|
<Environment Id='SetUserPath' Name='PATH' Action='set'
|
|
|
|
|
Permanent='no' System='no' Part='last'
|
|
|
|
|
Value='[APPLICATIONFOLDER]' />
|
|
|
|
|
</Component>
|
|
|
|
|
|
|
|
|
|
<Component Id="UpdateSystemPath"
|
|
|
|
|
Guid="F8AC4135-C0AE-48C7-BAC5-311DAC97CFD8"
|
|
|
|
|
KeyPath="yes">
|
|
|
|
|
<Condition>ALLUSERS = 1</Condition>
|
|
|
|
|
<Environment Id='SetSystemPath' Name='PATH' Action='set'
|
|
|
|
|
Permanent='no' System='yes' Part='last'
|
|
|
|
|
Value='[APPLICATIONFOLDER]' />
|
|
|
|
|
</Component>
|
|
|
|
|
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</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-07-10 07:02:30 +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">
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<Feature Id="MainProgram"
|
|
|
|
|
Title="Program"
|
|
|
|
|
Description="The main executable."
|
2015-06-28 05:47:37 +02:00
|
|
|
|
Level="1">
|
2015-06-13 06:30:18 +02:00
|
|
|
|
<ComponentRef Id="MainExecutable" />
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<ComponentRef Id="UpdateUserPath" />
|
|
|
|
|
<ComponentRef Id="UpdateSystemPath" />
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</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>
|
|
|
|
|
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<!-- Set properties for add/remove programs -->
|
2021-02-27 02:56:04 +01:00
|
|
|
|
<Property Id="ARPURLINFOABOUT" Value="https://pandoc.org" />
|
|
|
|
|
<Property Id="ARPHELPLINK" Value="https://pandoc.org" />
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<Property Id="ARPNOREPAIR" Value="yes" Secure="yes" /> <!-- Remove repair -->
|
|
|
|
|
<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" /> <!-- Remove modify -->
|
|
|
|
|
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<!--Needed for WixUI_Advanced-->
|
|
|
|
|
<Property Id="ApplicationFolderName" Value="Pandoc" />
|
|
|
|
|
<Property Id="WixAppFolder" Value="WixPerUserFolder" />
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<!--For Single Package for dual purpose i.e. per User/Machine-->
|
|
|
|
|
<!--<Property Id="ALLUSERS" Value="2" Secure="yes" />-->
|
|
|
|
|
<Property Id="MSIINSTALLPERUSER" Value="1" />
|
2015-06-13 06:30:18 +02:00
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<!--Inform about installed location-->
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<SetProperty Id="ARPINSTALLLOCATION" Value="[APPLICATIONFOLDER]"
|
2015-07-10 07:02:30 +02:00
|
|
|
|
After="CostFinalize" />
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<CustomAction Id="SetExitDialogOptText"
|
2016-06-04 20:34:41 +02:00
|
|
|
|
Property="WIXUI_EXITDIALOGOPTIONALTEXT"
|
|
|
|
|
Value="!(loc.ExitDialogText)" />
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<!--Offer Per User installs only on workstations (block on servers)-->
|
2016-06-23 20:08:36 +02:00
|
|
|
|
<!--Unless ALLUSERS=1 is specified on command line-->
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<SetProperty Id="WixUISupportPerUser" Value="0" Before="FindRelatedProducts">
|
|
|
|
|
<!--https://msdn.microsoft.com/en-us/library/windows/desktop/aa370329(v=vs.85).aspx-->
|
|
|
|
|
MsiNTProductType > 1
|
|
|
|
|
</SetProperty>
|
|
|
|
|
<SetProperty Id="WixUISupportPerUser" Value="1" Before="FindRelatedProducts" Action="CASupportPerUser">
|
|
|
|
|
MsiNTProductType = 1
|
|
|
|
|
</SetProperty>
|
|
|
|
|
<SetProperty Id="ALLUSERS" Value="1" Before="FindRelatedProducts">
|
|
|
|
|
MsiNTProductType > 1
|
|
|
|
|
</SetProperty>
|
|
|
|
|
<SetProperty Id="ALLUSERS" Value="{}" Before="FindRelatedProducts" Action="CASetPuaPackage">
|
2016-06-23 20:08:36 +02:00
|
|
|
|
(NOT ALLUSERS = 1) AND MsiNTProductType = 1
|
2016-06-04 20:34:41 +02:00
|
|
|
|
</SetProperty>
|
|
|
|
|
<SetProperty Id="MSIINSTALLPERUSER" Value="1" Before="FindRelatedProducts">
|
2016-06-23 20:08:36 +02:00
|
|
|
|
(NOT ALLUSERS = 1) AND MsiNTProductType = 1
|
2016-06-04 20:34:41 +02:00
|
|
|
|
</SetProperty>
|
|
|
|
|
<SetProperty Id="WixAppFolder" Value="WixPerMachineFolder" Before="FindRelatedProducts">
|
|
|
|
|
MsiNTProductType > 1
|
|
|
|
|
</SetProperty>
|
|
|
|
|
|
|
|
|
|
<!--Make changes to PATH visible immeidiately-->
|
|
|
|
|
<CustomActionRef Id="WixBroadcastSettingChange" />
|
|
|
|
|
<CustomActionRef Id="WixBroadcastEnvironmentChange" />
|
2015-06-29 18:39:39 +02:00
|
|
|
|
|
2015-06-28 05:47:37 +02:00
|
|
|
|
<InstallUISequence>
|
2015-07-10 07:02:30 +02:00
|
|
|
|
<Custom Action="SetExitDialogOptText" Before="ExecuteAction">
|
|
|
|
|
NOT Installed
|
|
|
|
|
</Custom>
|
2015-06-28 05:47:37 +02:00
|
|
|
|
</InstallUISequence>
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
2016-06-04 20:34:41 +02:00
|
|
|
|
<UIRef Id="WixUI_Advanced_Custom"/>
|
2016-06-23 20:08:36 +02:00
|
|
|
|
<!--Enable better description when debug logging-->
|
|
|
|
|
<UIRef Id="WixUI_ErrorProgressText" />
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</Product>
|
2016-07-20 14:12:57 +02:00
|
|
|
|
|
|
|
|
|
|
2015-06-13 06:30:18 +02:00
|
|
|
|
</Wix>
|