Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 3 | <Fragment> |
Steve Dower | 0533826 | 2016-07-24 18:04:29 -0700 | [diff] [blame] | 4 | <Property Id="ROOTREGISTRYKEY" Value="Software\Python\PythonCore" /> |
| 5 | </Fragment> |
| 6 | |
| 7 | <Fragment> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 8 | <Property Id="REGISTRYKEY" Value="Software\Python\PythonCore\$(var.ShortVersion)$(var.PyArchExt)$(var.PyTestExt)" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 9 | </Fragment> |
| 10 | |
| 11 | <Fragment> |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 12 | <Component Id="OptionalFeature" Guid="*" Directory="InstallDirectory"> |
| 13 | <Condition>OPTIONALFEATURESREGISTRYKEY</Condition> |
| 14 | <RegistryKey Root="HKMU" Key="[OPTIONALFEATURESREGISTRYKEY]"> |
| 15 | <RegistryValue Type="string" Name="$(var.OptionalFeatureName)" Value="$(var.Version)" KeyPath="yes" /> |
| 16 | </RegistryKey> |
| 17 | </Component> |
| 18 | </Fragment> |
| 19 | |
| 20 | <Fragment> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 21 | <Property Id="UpgradeTable" Value="1" /> |
| 22 | |
Steve Dower | fa526bd | 2016-09-09 13:19:09 -0700 | [diff] [blame] | 23 | <?ifndef SuppressUpgradeTable ?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 24 | <Upgrade Id="$(var.UpgradeCode)"> |
| 25 | <UpgradeVersion Property="DOWNGRADE" Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" /> |
| 26 | <UpgradeVersion Property="UPGRADE" Minimum="$(var.UpgradeMinimumVersion)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="no" /> |
| 27 | </Upgrade> |
Steve Dower | fa526bd | 2016-09-09 13:19:09 -0700 | [diff] [blame] | 28 | <?endif ?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 29 | |
Steve Dower | 4962141 | 2016-05-18 15:54:05 -0700 | [diff] [blame] | 30 | <?ifdef CoreUpgradeCode ?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 31 | <?if $(var.UpgradeCode)!=$(var.CoreUpgradeCode) ?> |
| 32 | <Upgrade Id="$(var.CoreUpgradeCode)"> |
Steve Dower | 102f72c | 2015-03-24 21:25:16 -0700 | [diff] [blame] | 33 | <UpgradeVersion Property="MISSING_CORE" Minimum="$(var.Version)" IncludeMinimum="yes" Maximum="$(var.Version)" IncludeMaximum="yes" OnlyDetect="yes" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 34 | </Upgrade> |
Steve Dower | c9fda9b | 2015-10-01 15:19:39 -0700 | [diff] [blame] | 35 | <Condition Message="!(loc.IncorrectCore)">Installed OR NOT MISSING_CORE</Condition> |
| 36 | <?endif ?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 37 | <?endif ?> |
| 38 | |
| 39 | <Condition Message="!(loc.NoDowngrade)">Installed OR NOT DOWNGRADE</Condition> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 40 | <Condition Message="!(loc.NoTargetDir)">Installed OR TARGETDIR OR Suppress_TARGETDIR_Check</Condition> |
| 41 | |
| 42 | <InstallExecuteSequence> |
Steve Dower | c9fda9b | 2015-10-01 15:19:39 -0700 | [diff] [blame] | 43 | <RemoveExistingProducts After="InstallInitialize" Overridable="yes">UPGRADE</RemoveExistingProducts> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 44 | </InstallExecuteSequence> |
| 45 | </Fragment> |
| 46 | |
| 47 | <Fragment> |
| 48 | <!-- Include an icon for the Programs and Features dialog --> |
Steve Dower | 4565986 | 2016-09-05 14:51:41 -0700 | [diff] [blame] | 49 | <Icon Id="ARPIcon" SourceFile="!(bindpath.src)PC\icons\python.ico" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 50 | <Property Id="ARPPRODUCTICON" Value="ARPIcon" /> |
| 51 | <Property Id="ARPNOMODIFY" Value="1" /> |
| 52 | <Property Id="DISABLEADVTSHORTCUTS" Value="1" /> |
| 53 | </Fragment> |
| 54 | |
| 55 | <Fragment> |
Steve Dower | 4962141 | 2016-05-18 15:54:05 -0700 | [diff] [blame] | 56 | <?ifdef InstallDirectoryGuidSeed ?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 57 | <Directory Id="TARGETDIR" Name="SourceDir"> |
| 58 | <Directory Id="InstallDirectory" ComponentGuidGenerationSeed="$(var.InstallDirectoryGuidSeed)" /> |
| 59 | </Directory> |
Steve Dower | 4962141 | 2016-05-18 15:54:05 -0700 | [diff] [blame] | 60 | <?endif ?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 61 | </Fragment> |
| 62 | |
| 63 | <!-- Top-level directories --> |
| 64 | <Fragment> |
| 65 | <DirectoryRef Id="InstallDirectory"> |
Steve Dower | 425ec15 | 2016-10-09 20:18:52 -0700 | [diff] [blame] | 66 | <Directory Id="DLLs" Name="DLLs"> |
| 67 | <Directory Id="Catalogs" /> |
| 68 | </Directory> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 69 | </DirectoryRef> |
| 70 | </Fragment> |
| 71 | |
| 72 | <Fragment> |
| 73 | <DirectoryRef Id="InstallDirectory"> |
| 74 | <Directory Id="Doc" Name="Doc" /> |
| 75 | </DirectoryRef> |
| 76 | </Fragment> |
| 77 | |
| 78 | <Fragment> |
| 79 | <DirectoryRef Id="InstallDirectory"> |
| 80 | <Directory Id="include" Name="include" /> |
| 81 | </DirectoryRef> |
| 82 | </Fragment> |
| 83 | |
| 84 | <Fragment> |
| 85 | <DirectoryRef Id="InstallDirectory"> |
| 86 | <Directory Id="Lib" Name="Lib" /> |
| 87 | </DirectoryRef> |
| 88 | </Fragment> |
| 89 | |
| 90 | <Fragment> |
| 91 | <DirectoryRef Id="InstallDirectory"> |
| 92 | <Directory Id="libs" Name="libs" /> |
| 93 | </DirectoryRef> |
| 94 | </Fragment> |
| 95 | |
| 96 | <Fragment> |
| 97 | <DirectoryRef Id="InstallDirectory"> |
| 98 | <Directory Id="Scripts" Name="Scripts" /> |
| 99 | </DirectoryRef> |
| 100 | </Fragment> |
| 101 | |
| 102 | <Fragment> |
| 103 | <DirectoryRef Id="InstallDirectory"> |
| 104 | <Directory Id="tcl" Name="tcl" /> |
| 105 | </DirectoryRef> |
| 106 | </Fragment> |
| 107 | |
| 108 | <Fragment> |
| 109 | <DirectoryRef Id="InstallDirectory"> |
| 110 | <Directory Id="Tools" Name="Tools" /> |
| 111 | </DirectoryRef> |
| 112 | </Fragment> |
| 113 | |
| 114 | <!-- Start Menu folder --> |
| 115 | <Fragment> |
| 116 | <DirectoryRef Id="TARGETDIR"> |
| 117 | <Directory Id="ProgramMenuFolder"> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 118 | <Directory Id="MenuDir" Name="!(loc.ProductName)" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 119 | </Directory> |
| 120 | </DirectoryRef> |
| 121 | </Fragment> |
| 122 | </Wix> |