1<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
2<?if $(sys.BUILDARCH)=x64?>
3<?define ProgFilesFolder="ProgramFiles64Folder"?>
5<?define ProgFilesFolder="ProgramFilesFolder"?>
7<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
9 UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)"
10 Version="$(var.VERSION)" Manufacturer="John MacFarlane"
13 <Package InstallerVersion="301" Compressed="yes"
14 Comments="Windows Installer Package" />
15 <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
16 <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
17 <Upgrade Id="$(var.UpgradeCode)">
18 <UpgradeVersion Property='PREVIOUSVERSIONSINSTALLED'
19 Minimum='0.0.0.0' IncludeMinimum='yes'
20 Maximum="99.0.0.0" IncludeMaximum="no" />
23 <InstallExecuteSequence>
24 <RemoveExistingProducts After="InstallFinalize"/>
25 </InstallExecuteSequence>
27 <Property Id="DISABLEADVTSHORTCUTS" Value="1" />
29 <Directory Id="TARGETDIR" Name="SourceDir">
31 <Directory Id="$(var.ProgFilesFolder)">
32 <Directory Id="APPLICATIONFOLDER" Name="Pandoc">
33 <Component Id="MainExecutable"
34 Guid="ECD35082-4C28-49E1-977E-B90FC7C400C7">
35 <RegistryValue Root="HKMU"
36 Key="Software\John MacFarlane\Pandoc"
37 Name="Version" Type="string" Value="[ProductVersion]"
39 <RemoveFolder Id="APPLICATIONFOLDER" On="uninstall"/>
40 <File Id="pandocEXE" Name="pandoc.exe"
41 Source="$(var.BINPATH)\pandoc.exe" />
42 <File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
43 Source="$(var.BINPATH)\COPYRIGHT.txt" />
44 <File Id="pandocCOPYING" Name="COPYING.rtf"
45 Source="$(var.BINPATH)\COPYING.rtf" />
48 <Component Id="CitationSupport"
49 Guid="0A214839-2E69-4026-8DBB-0F0A9DB75C12">
50 <RegistryValue Root="HKMU"
51 Key="Software\John MacFarlane\Pandoc"
52 Name="Version" Type="string" Value="[ProductVersion]"
56 <Component Id="Documentation"
57 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
58 <File Id="pandocMANUAL" Name="Pandoc User's Guide.html"
59 Source="$(var.BINPATH)\MANUAL.html" KeyPath="yes">
60 <Shortcut Id="ApplicationStartMenuShortcut"
61 Directory="ApplicationProgramsFolder"
62 Name="Pandoc User’s Guide" Advertise="yes" />
67 <Component Id="UpdateUserPath"
68 Guid="7ECEAD05-CA5C-4147-82CB-F7CADABAC7F3"
70 <Condition>ALLUSERS = "" OR ALLUSERS = 2</Condition>
71 <Environment Id='SetUserPath' Name='PATH' Action='set'
72 Permanent='no' System='no' Part='last'
73 Value='[APPLICATIONFOLDER]' />
76 <Component Id="UpdateSystemPath"
77 Guid="F8AC4135-C0AE-48C7-BAC5-311DAC97CFD8"
79 <Condition>ALLUSERS = 1</Condition>
80 <Environment Id='SetSystemPath' Name='PATH' Action='set'
81 Permanent='no' System='yes' Part='last'
82 Value='[APPLICATIONFOLDER]' />
88 <Directory Id="ProgramMenuFolder">
89 <Directory Id="ApplicationProgramsFolder" Name="Pandoc">
90 <Component Id="ApplicationShortcut"
91 Guid="7F807DD5-CC54-474A-B571-89630893F563">
92 <RemoveFolder Id="ApplicationProgramsFolder"
94 <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
95 Name="ShortcutInstalled" Type="integer" Value="1"
103 <Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)"
104 Description="Complete package" Display="expand"
105 ConfigurableDirectory="APPLICATIONFOLDER">
106 <Feature Id="MainProgram"
108 Description="The main executable."
110 <ComponentRef Id="MainExecutable" />
111 <ComponentRef Id="UpdateUserPath" />
112 <ComponentRef Id="UpdateSystemPath" />
114 <Feature Id="Manual" Title="Manual">
115 <ComponentRef Id="Documentation" />
116 <ComponentRef Id="ApplicationShortcut" />
118 <Feature Id="Citation" Title="Citation Support"
119 Description="Citation support.">
120 <ComponentRef Id="CitationSupport" />
125 <!-- Set properties for add/remove programs -->
126 <Property Id="ARPURLINFOABOUT" Value="http://pandoc.org" />
127 <Property Id="ARPHELPLINK" Value="http://pandoc.org" />
128 <Property Id="ARPNOREPAIR" Value="yes" Secure="yes" /> <!-- Remove repair -->
129 <Property Id="ARPNOMODIFY" Value="yes" Secure="yes" /> <!-- Remove modify -->
132 <!--Needed for WixUI_Advanced-->
133 <Property Id="ApplicationFolderName" Value="Pandoc" />
134 <Property Id="WixAppFolder" Value="WixPerUserFolder" />
136 <!--For Single Package for dual purpose i.e. per User/Machine-->
137 <!--<Property Id="ALLUSERS" Value="2" Secure="yes" />-->
138 <Property Id="MSIINSTALLPERUSER" Value="1" />
140 <!--Inform about installed location-->
141 <SetProperty Id="ARPINSTALLLOCATION" Value="[APPLICATIONFOLDER]"
142 After="CostFinalize" />
143 <CustomAction Id="SetExitDialogOptText"
144 Property="WIXUI_EXITDIALOGOPTIONALTEXT"
145 Value="!(loc.ExitDialogText)" />
147 <!--Offer Per User installs only on workstations (block on servers)-->
148 <!--Unless ALLUSERS=1 is specified on command line-->
149 <SetProperty Id="WixUISupportPerUser" Value="0" Before="FindRelatedProducts">
150 <!--https://msdn.microsoft.com/en-us/library/windows/desktop/aa370329(v=vs.85).aspx-->
153 <SetProperty Id="WixUISupportPerUser" Value="1" Before="FindRelatedProducts" Action="CASupportPerUser">
156 <SetProperty Id="ALLUSERS" Value="1" Before="FindRelatedProducts">
159 <SetProperty Id="ALLUSERS" Value="{}" Before="FindRelatedProducts" Action="CASetPuaPackage">
160 (NOT ALLUSERS = 1) AND MsiNTProductType = 1
162 <SetProperty Id="MSIINSTALLPERUSER" Value="1" Before="FindRelatedProducts">
163 (NOT ALLUSERS = 1) AND MsiNTProductType = 1
165 <SetProperty Id="WixAppFolder" Value="WixPerMachineFolder" Before="FindRelatedProducts">
169 <!--Make changes to PATH visible immeidiately-->
170 <CustomActionRef Id="WixBroadcastSettingChange" />
171 <CustomActionRef Id="WixBroadcastEnvironmentChange" />
174 <Custom Action="SetExitDialogOptText" Before="ExecuteAction">
179 <UIRef Id="WixUI_Advanced_Custom"/>
180 <!--Enable better description when debug logging-->
181 <UIRef Id="WixUI_ErrorProgressText" />
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list