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