git.iko.soy/typeable/pandoc
on 2.1 help sign in
188 lines 7.7 kB history raw
1<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
2<?if $(sys.BUILDARCH)=x64?>
3<?define ProgFilesFolder="ProgramFiles64Folder"?>
4<?else?>
5<?define ProgFilesFolder="ProgramFilesFolder"?>
6<?endif?>
7<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
8 <Product Id="*"
9 UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)"
10 Version="$(var.VERSION)" Manufacturer="John MacFarlane"
11 Language="1033">
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" />
21 </Upgrade>
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]"
38 KeyPath="yes"/>
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="COPYRIGHT.txt" />
44 <File Id="pandocCOPYING" Name="COPYING.rtf"
45 Source="COPYING.rtf" />
46 </Component>
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]"
53 KeyPath="yes"/>
54 <File Id="pandoc_citeprocEXE" Name="pandoc-citeproc.exe"
55 Source="$(var.BINPATH)\pandoc-citeproc.exe" />
56 </Component>
58 <Component Id="Documentation"
59 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
60 <File Id="pandocMANUAL" Name="Pandoc User's Guide.html"
61 Source="MANUAL.html" KeyPath="yes">
62 <Shortcut Id="ApplicationStartMenuShortcut"
63 Directory="ApplicationProgramsFolder"
64 Name="Pandoc User’s Guide" Advertise="yes" />
65 </File>
66 </Component>
69 <Component Id="UpdateUserPath"
70 Guid="7ECEAD05-CA5C-4147-82CB-F7CADABAC7F3"
71 KeyPath="yes">
72 <Condition>ALLUSERS = "" OR ALLUSERS = 2</Condition>
73 <Environment Id='SetUserPath' Name='PATH' Action='set'
74 Permanent='no' System='no' Part='last'
75 Value='[APPLICATIONFOLDER]' />
76 </Component>
78 <Component Id="UpdateSystemPath"
79 Guid="F8AC4135-C0AE-48C7-BAC5-311DAC97CFD8"
80 KeyPath="yes">
81 <Condition>ALLUSERS = 1</Condition>
82 <Environment Id='SetSystemPath' Name='PATH' Action='set'
83 Permanent='no' System='yes' Part='last'
84 Value='[APPLICATIONFOLDER]' />
85 </Component>
87 </Directory>
88 </Directory>
90 <Directory Id="ProgramMenuFolder">
91 <Directory Id="ApplicationProgramsFolder" Name="Pandoc">
92 <Component Id="ApplicationShortcut"
93 Guid="7F807DD5-CC54-474A-B571-89630893F563">
94 <RemoveFolder Id="ApplicationProgramsFolder"
95 On="uninstall"/>
96 <RegistryValue Root="HKMU" Key="Software\John MacFarlane\Pandoc"
97 Name="ShortcutInstalled" Type="integer" Value="1"
98 KeyPath="yes"/>
99 </Component>
100 </Directory>
101 </Directory>
103 </Directory>
105 <Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)"
106 Description="Complete package" Display="expand"
107 ConfigurableDirectory="APPLICATIONFOLDER">
108 <Feature Id="MainProgram"
109 Title="Program"
110 Description="The main executable."
111 Level="1">
112 <ComponentRef Id="MainExecutable" />
113 <ComponentRef Id="UpdateUserPath" />
114 <ComponentRef Id="UpdateSystemPath" />
115 </Feature>
116 <Feature Id="Manual" Title="Manual">
117 <ComponentRef Id="Documentation" />
118 <ComponentRef Id="ApplicationShortcut" />
119 </Feature>
120 <Feature Id="Citation" Title="Citation Support"
121 Description="Citation support.">
122 <ComponentRef Id="CitationSupport" />
123 </Feature>
124 </Feature>
127 <!-- Set properties for add/remove programs -->
128 <Property Id="ARPURLINFOABOUT" Value="http://pandoc.org" />
129 <Property Id="ARPHELPLINK" Value="http://pandoc.org" />
130 <Property Id="ARPNOREPAIR" Value="yes" Secure="yes" /> <!-- Remove repair -->
131 <Property Id="ARPNOMODIFY" Value="yes" Secure="yes" /> <!-- Remove modify -->
134 <!--Needed for WixUI_Advanced-->
135 <Property Id="ApplicationFolderName" Value="Pandoc" />
136 <Property Id="WixAppFolder" Value="WixPerUserFolder" />
138 <!--For Single Package for dual purpose i.e. per User/Machine-->
139 <!--<Property Id="ALLUSERS" Value="2" Secure="yes" />-->
140 <Property Id="MSIINSTALLPERUSER" Value="1" />
142 <!--Inform about installed location-->
143 <SetProperty Id="ARPINSTALLLOCATION" Value="[APPLICATIONFOLDER]"
144 After="CostFinalize" />
145 <CustomAction Id="SetExitDialogOptText"
146 Property="WIXUI_EXITDIALOGOPTIONALTEXT"
147 Value="!(loc.ExitDialogText)" />
149 <!--Offer Per User installs only on workstations (block on servers)-->
150 <!--Unless ALLUSERS=1 is specified on command line-->
151 <SetProperty Id="WixUISupportPerUser" Value="0" Before="FindRelatedProducts">
152 <!--https://msdn.microsoft.com/en-us/library/windows/desktop/aa370329(v=vs.85).aspx-->
153 MsiNTProductType > 1
154 </SetProperty>
155 <SetProperty Id="WixUISupportPerUser" Value="1" Before="FindRelatedProducts" Action="CASupportPerUser">
156 MsiNTProductType = 1
157 </SetProperty>
158 <SetProperty Id="ALLUSERS" Value="1" Before="FindRelatedProducts">
159 MsiNTProductType > 1
160 </SetProperty>
161 <SetProperty Id="ALLUSERS" Value="{}" Before="FindRelatedProducts" Action="CASetPuaPackage">
162 (NOT ALLUSERS = 1) AND MsiNTProductType = 1
163 </SetProperty>
164 <SetProperty Id="MSIINSTALLPERUSER" Value="1" Before="FindRelatedProducts">
165 (NOT ALLUSERS = 1) AND MsiNTProductType = 1
166 </SetProperty>
167 <SetProperty Id="WixAppFolder" Value="WixPerMachineFolder" Before="FindRelatedProducts">
168 MsiNTProductType > 1
169 </SetProperty>
171 <!--Make changes to PATH visible immeidiately-->
172 <CustomActionRef Id="WixBroadcastSettingChange" />
173 <CustomActionRef Id="WixBroadcastEnvironmentChange" />
175 <InstallUISequence>
176 <Custom Action="SetExitDialogOptText" Before="ExecuteAction">
177 NOT Installed
178 </Custom>
179 </InstallUISequence>
181 <UIRef Id="WixUI_Advanced_Custom"/>
182 <!--Enable better description when debug logging-->
183 <UIRef Id="WixUI_ErrorProgressText" />
185 </Product>
188</Wix>