Skip to content

Commit d4ea6ff

Browse files
committed
Document bug with Microsoft SQL Server 2017 Reporting Services
1 parent 9844984 commit d4ea6ff

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

source/Classes/020.SqlRSSetup.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@
105105
installed or not. Due to this limitation the property is evaluated in
106106
the AssertProperties() method to have one of the valid values.
107107
108+
Known issues:
109+
- Using `VersionUpgrade` with Microsoft SQL Server 2017 Reporting Services
110+
does not work because that version does not set a product version in the
111+
registry. So there is nothing to compare against the setup executable
112+
product version. It does set a current version, but that does not correlate
113+
to the product version. This apparently by design with Microsoft SQL Server
114+
2017 Reporting Services.
115+
108116
.EXAMPLE
109117
Configuration Example
110118
{
@@ -342,15 +350,7 @@ class SqlRSSetup : ResourceBase
342350
$currentState.InstanceName = $rsConfiguration.InstanceName
343351
$currentState.InstallFolder = $rsConfiguration.InstallFolder
344352

345-
if ([System.String]::IsNullOrEmpty($rsConfiguration.ProductVersion))
346-
{
347-
Write-Verbose -Message (
348-
$this.localizedData.MissingProductVersionUsingCurrentVersion -f $properties.InstanceName, $rsConfiguration.CurrentVersion
349-
)
350-
351-
$currentState.ProductVersion = $rsConfiguration.CurrentVersion
352-
}
353-
else
353+
if (-not ([System.String]::IsNullOrEmpty($rsConfiguration.ProductVersion)))
354354
{
355355
$currentState.ProductVersion = $rsConfiguration.ProductVersion
356356
}

source/en-US/SqlRSSetup.strings.psd1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ ConvertFrom-StringData @'
2929
NotDesiredProductVersion = The product version '{0}' is not the desired for the instance '{1}'. Desired version in executable: '{2}'.
3030
InstanceName_Invalid = The instance name '{0}' is invalid. Only one of the supported instance name can be used, either SSRS or PBIRS depending on what setup executable is used.
3131
CannotDetermineProductVersion = Could not determine the product version for the installed instance '{0}'. Run the command `Get-SqlDscRSSetupConfiguration -InstanceName '{0}'` to get the configuration for the instance and verify that it returns a valid product version.
32-
MissingProductVersionUsingCurrentVersion = The product version for the instance '{0}' is missing. Returning the current version '{1}' instead.
3332
'@

tests/Integration/Resources/DSC_SqlRSSetup.config.ps1

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,19 @@ Configuration DSC_SqlRSSetup_InstallReportingServicesAsUser_Config
6363
InstallFolder = $Node.InstallFolder
6464
LogPath = $Node.LogPath
6565

66-
# The build worker contains already an instance, make sure to upgrade it.
67-
VersionUpgrade = $true
66+
<#
67+
The build worker contains already an instance, make sure to upgrade it.
68+
It does not work for Microsoft SQL Server 2017 Reporting Services,
69+
see .NOTES section in the resource.
70+
#>
71+
VersionUpgrade = if ($env:Integration_SQL2017)
72+
{
73+
$false
74+
}
75+
else
76+
{
77+
$true
78+
}
6879

6980
# Suppressing restart because the build worker are not allowed to be restarted.
7081
SuppressRestart = $true

0 commit comments

Comments
 (0)