fc8c6666fd
Set a new registry 'BuildType' when installing. Check for this reg key when upgrading to a newer version. Show error message and exit if the previous installation does not have the same 'BuildType'.
37 lines
1.8 KiB
XML
37 lines
1.8 KiB
XML
<?xml version="1.0"?>
|
|
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
<?if $(var.ReleaseSuffix) ~= "beta" OR $(var.ReleaseSuffix) ~= "rc1" OR $(var.ReleaseSuffix) ~= "rtm" OR $(var.ReleaseSuffix) ~= ""?>
|
|
<?define BuildType="Release"?>
|
|
<?else?>
|
|
<?define BuildType="Nightly"?>
|
|
<?endif?>
|
|
|
|
<?define Servicing_Key_SP = "0" ?>
|
|
<?define Servicing_Key_SPIndex = "0" ?>
|
|
<?define Servicing_Key_SPName = "Beta" ?>
|
|
<?define Dotnet_ProductVersion = "$(var.BuildVersion)" ?>
|
|
<?define Dotnet_DisplayVersion = "1.0" ?>
|
|
<?define Dotnet_BuildVersion = "$(var.BuildVersion)" ?>
|
|
<?define Manufacturer = "Microsoft Corporation" ?>
|
|
<?define ProductName = "Microsoft Dotnet CLI for Windows ($(var.DisplayVersion) $(var.ReleaseSuffix))" ?>
|
|
<?define ProductLanguage = "1033" ?>
|
|
<?define ProductVersion = "$(var.Dotnet_ProductVersion)" ?>
|
|
<?define ProductFamily = "dotnet" ?>
|
|
<?define ProductEdition = "001dotnet" ?>
|
|
<?define LCID = "$(var.ProductLanguage)"?>
|
|
<?define DowngradeErrorMessage = "A newer version is already installed; please uninstall it and re-run setup."?>
|
|
<?define IncompatibleBuildTypeError = "You have installed '[INSTALLEDCLIBUILDTYPE]' build of Dotnet CLI. It is cannot be upgraded to a '[EXPECTEDCLIBUILDTYPE]' build of Dotnet CLI. Please uninstall it and re-run setup."?>
|
|
|
|
<?define Platform = "$(sys.BUILDARCH)" ?>
|
|
<?if $(var.Platform)=x86?>
|
|
<?define Program_Files="ProgramFilesFolder"?>
|
|
<?define Win64AttributeValue=no?>
|
|
<?define UpgradeCode="70A1576F-63B6-4659-9E39-25C7B769DDE5"?>
|
|
<?elseif $(var.Platform)=x64?>
|
|
<?define Program_Files="ProgramFiles64Folder"?>
|
|
<?define Win64AttributeValue=yes?>
|
|
<?define UpgradeCode="7D73E4F7-71E2-4236-8CF5-1C499BA3FF50"?>
|
|
<?else?>
|
|
<?error Invalid Platform ($(var.Platform))?>
|
|
<?endif?>
|
|
</Include>
|