-
Notifications
You must be signed in to change notification settings - Fork 9
Description
The functions GetSCCompiledVersion, GetSysComponentsCompiledVersion and GetLifetimeCompiledVersion check a registry key that is created by the corresponding Set*CompiledVersion function, so to work properly they require the previous use of those functions to setup the environment and create the registry key.
This dependency means that if a function that depends on GetSCCompiledVersion, GetSysComponentsCompiledVersion or GetLifetimeCompiledVersion (and there several) is used in an environment that was not installed/configured using SetupTools, they will fail or have inconsistent behaviour.
An example is Install-OSPlatformLicense, which will fail with the error:
Install-OSPlatformLicense : Service Center version mismatch. You should run the Install-OSPlatformServiceCenter first
because it uses GetSCCompiledVersion to compare the current version of Service Center to the version of Platform Server installed, and GetSCCompiledVersion returns an empty string if ServiceCenter was not published using SetupTool.
OutSystems.SetupTools/src/Outsystems.SetupTools/Functions/Install-OSPlatformLicense.ps1
Line 53 in 40bf70b
| if ($(GetSCCompiledVersion) -ne $osVersion) |