diff --git a/src/Umbraco.Web/Install/InstallHelper.cs b/src/Umbraco.Web/Install/InstallHelper.cs index b74a20c27c2c..a998a172fcd8 100644 --- a/src/Umbraco.Web/Install/InstallHelper.cs +++ b/src/Umbraco.Web/Install/InstallHelper.cs @@ -30,6 +30,18 @@ public sealed class InstallHelper private readonly IInstallationService _installationService; private InstallationType? _installationType; + + [Obsolete("Use the constructor with IInstallationService injected.")] + public InstallHelper( + IUmbracoContextAccessor umbracoContextAccessor, + DatabaseBuilder databaseBuilder, + ILogger logger, + IGlobalSettings globalSettings) + : this(umbracoContextAccessor, databaseBuilder, logger, globalSettings, Current.Factory.GetInstance()) + { + + } + public InstallHelper(IUmbracoContextAccessor umbracoContextAccessor, DatabaseBuilder databaseBuilder, ILogger logger, IGlobalSettings globalSettings, IInstallationService installationService)