Codeunit 1809 Assisted Setup Installation

System Application, System.Environment.Configuration

src/System Application/App/Guided Experience/src/Assisted Setup/AssistedSetupInstallation.Codeunit.al38 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace System.Environment.Configuration;using System.Environment;using System.Upgrade;#pragma warning disable AA0235codeunit 1809 "Assisted Setup Installation"#pragma warning restore AA0235{    Subtype = Install;    InherentEntitlements = X;    InherentPermissions = X;    trigger OnInstallAppPerCompany()    var        EnvironmentInformation: Codeunit "Environment Information";        AppInfo: ModuleInfo;    begin        NavApp.GetCurrentModuleInfo(AppInfo);        if EnvironmentInformation.VersionInstalled(AppInfo.Id()) = 0 then            SetAllUpgradeTags();    end;    local procedure SetAllUpgradeTags()    var        UpgradeTag: Codeunit "Upgrade Tag";        AssistedSetupUpgradeTag: Codeunit "Assisted Setup Upgrade Tag";    begin        if not UpgradeTag.HasUpgradeTag(AssistedSetupUpgradeTag.GetDeleteAssistedSetupTag()) then            UpgradeTag.SetUpgradeTag(AssistedSetupUpgradeTag.GetDeleteAssistedSetupTag());    end;}