Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Powershell 7 installation error with BC24

(0) ShareShare
ReportReport
Posted on by 6
Hi,
 
 Unfortunately the installation fails because I have PowerShell 7.4.2 installed, which is a newer version compared to PowerShell 7.4.1 which is embedded into the installer:
MSI (s) (30:18) [11:49:14:485]: Product: PowerShell 7-x64 -- A newer version of PowerShell is already installed.
MSI (s) (30:18) [11:49:14:517]: Product: PowerShell 7-x64 -- Installation failed.
MSI (s) (30:18) [11:49:14:517]: Windows Installer installed the product. Product Name: PowerShell 7-x64. Product Version: 7.4.1.0. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
 
Is there any way to get around of this issue? (Other than downgrade the PowerShell.)
 
 
  • Verified answer
    HRST64 Profile Picture
    7 on at
    Powershell 7 installation error with BC24
    I've struggled with that, too. It is a known installation bug that could hopefully be resolved in version 24.2 or 24.3.The solution is simple - uninstall PowerShell 7 from the machine where you want to install Business Central before running the installation using the Control Panel (it will be installed during BC installation).
    See: 
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/known-issues#installation-fails-because-powershell-7-is-already-installed
  • BS-09051231-0 Profile Picture
    6 on at
    Powershell 7 installation error with BC24
    === Logging started: 09/05/2024  12:33:27 ===
    Action start 12:33:27: INSTALL.
    Action start 12:33:27: FindRelatedProducts.
    Action ended 12:33:27: FindRelatedProducts. Return value 1.
    Action start 12:33:27: AppSearch.
    Action ended 12:33:27: AppSearch. Return value 1.
    Action start 12:33:27: LaunchConditions.
    MSI (s) (D4:30) [12:33:27:611]: Product: PowerShell 7-x64 -- A newer version of PowerShell is already installed.
    A newer version of PowerShell is already installed.
    Action ended 12:33:27: LaunchConditions. Return value 3.
    Action ended 12:33:27: INSTALL. Return value 3.
    Property(S): UpgradeCode = {31AB5147-9A97-4452-8443-D9709F0516E1}
    Property(S): WINDOWS_PRODUCT_NAME = Windows 10 Pro
    Property(S): ProductName = PowerShell 7-x64
    Property(S): UNIVERSAL_C_RUNTIME_INSTALLED = C:\WINDOWS\System32\ucrtbase.dll
    Property(S): PWRSHPLUGIN_VERSION = C:\WINDOWS\System32\pwrshplugin.dll
    Property(S): ADD_PATH = 1
    Property(S): REGISTER_MANIFEST = 1
    Property(S): USE_MU = 1
    Property(S): ENABLE_MU = 1
    Property(S): WixUIRMOption = UseRM
    Property(S): WIXUI_INSTALLDIR = INSTALLFOLDER
    Property(S): ALLUSERS = 1
    Property(S): ARPNOMODIFY = 1
    Property(S): ProgramFiles64Folder = C:\Program Files\
    Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
    Property(S): ARPPRODUCTICON = PowerShellExe.ico
    Property(S): ARPHELPLINK = https://github.com/PowerShell/PowerShell
    Property(S): WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT = Open PowerShell
    Property(S): WixShellExecTarget = [VersionFolder]pwsh.exe
    Property(S): REINSTALLMODE = dmus
    Property(S): Manufacturer = Microsoft Corporation
    Property(S): ProductCode = {B06D1894-3827-4E0C-A092-7DC50BE8B210}
    Property(S): ProductLanguage = 1033
    Property(S): ProductVersion = 7.4.1.0
    Property(S): DefaultUIFont = WixUI_Font_Normal
    Property(S): WixUI_Mode = InstallDir
    Property(S): ErrorDialog = ErrorDlg
    Property(S): SecureCustomProperties = PWRSHPLUGIN_VERSION;UNIVERSAL_C_RUNTIME_INSTALLED;WIX_DOWNGRADE_DETECTED;WIX_UPGRADE_DETECTED
    Property(S): WIX_DOWNGRADE_DETECTED = {F895A69B-7C3F-49AD-83FC-A87B31EFF8F3}
    Property(S): MsiLogFileLocation = C:\Users\BALAZS~1.SZE\AppData\Local\Temp\setup.wix.msi.b.log
    Property(S): PackageCode = {79F7FC03-0E49-40C3-BDA9-1EABB8C2EE58}
    Property(S): ProductState = -1
    Property(S): PackagecodeChanging = 1
    Property(S): REBOOT = ReallySuppress
    Property(S): CURRENTDIRECTORY = C:\Users\balazs.szentesi\Downloads
    Property(S): CLIENTUILEVEL = 3
    Property(S): MSICLIENTUSESEXTERNALUI = 1
    Property(S): CLIENTPROCESSID = 37672
    Property(S): VersionDatabase = 200
    Property(S): MsiSystemRebootPending = 1
    Property(S): VersionMsi = 5.00
    Property(S): VersionNT = 603
    Property(S): VersionNT64 = 603
    Property(S): WindowsBuild = 9600
    Property(S): ServicePackLevel = 0
    Property(S): ServicePackLevelMinor = 0
    Property(S): MsiNTProductType = 1
    Property(S): WindowsFolder = C:\WINDOWS\
    Property(S): WindowsVolume = C:\
    Property(S): System64Folder = C:\WINDOWS\system32\
    Property(S): SystemFolder = C:\WINDOWS\SysWOW64\
    Property(S): RemoteAdminTS = 1
    Property(S): TempFolder = C:\Users\BALAZS~1.SZE\AppData\Local\Temp\
    Property(S): ProgramFilesFolder = C:\Program Files (x86)\
    Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
    Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
    Property(S): AppDataFolder = C:\Users\balazs.szentesi\AppData\Roaming\
    Property(S): FavoritesFolder = C:\Users\balazs.szentesi\Favorites\
    Property(S): NetHoodFolder = C:\Users\balazs.szentesi\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
    Property(S): PersonalFolder = C:\Users\balazs.szentesi\OneDrive - TrustQuay Limited\Documents\
    Property(S): PrintHoodFolder = C:\Users\balazs.szentesi\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
    Property(S): RecentFolder = C:\Users\balazs.szentesi\AppData\Roaming\Microsoft\Windows\Recent\
    Property(S): SendToFolder = C:\Users\balazs.szentesi\AppData\Roaming\Microsoft\Windows\SendTo\
    Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
    Property(S): CommonAppDataFolder = C:\ProgramData\
    Property(S): LocalAppDataFolder = C:\Users\balazs.szentesi\AppData\Local\
    Property(S): MyPicturesFolder = C:\Users\balazs.szentesi\OneDrive - TrustQuay Limited\Pictures\
    Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
    Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
    Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
    Property(S): DesktopFolder = C:\Users\Public\Desktop\
    Property(S): FontsFolder = C:\WINDOWS\Fonts\
    Property(S): GPTSupport = 1
    Property(S): OLEAdvtSupport = 1
    Property(S): ShellAdvtSupport = 1
    Property(S): MsiAMD64 = 6
    Property(S): Msix64 = 6
    Property(S): Intel = 6
    Property(S): PhysicalMemory = 65256
    Property(S): VirtualMemory = 30237
    Property(S): AdminUser = 1
    Property(S): MsiTrueAdminUser = 1
    Property(S): LogonUser = Balazs.Szentesi
    Property(S): UserSID = S-1-5-21-3572068118-837097053-1361986110-1759
    Property(S): UserLanguageID = 2057
    Property(S): ComputerName = MIC12695
    Property(S): SystemLanguageID = 1033
    Property(S): ScreenX = 1024
    Property(S): ScreenY = 768
    Property(S): CaptionHeight = 44
    Property(S): BorderTop = 1
    Property(S): BorderSide = 1
    Property(S): MsiTabletPC = 1
    Property(S): TextHeight = 16
    Property(S): TextInternalLeading = 3
    Property(S): ColorBits = 32
    Property(S): TTCSupport = 1
    Property(S): Time = 12:33:27
    Property(S): Date = 09/05/2024
    Property(S): MsiNetAssemblySupport = 4.8.9032.0
    Property(S): MsiWin32AssemblySupport = 6.3.22621.2506
    Property(S): RedirectedDllSupport = 2
    Property(S): MsiRunningElevated = 1
    Property(S): Privileged = 1
    Property(S): USERNAME = TrustQuay
    Property(S): DATABASE = C:\WINDOWS\Installer\29d8602e.msi
    Property(S): OriginalDatabase = C:\Temp\NavOne_OneClick\Dynamics.365.BC.18056.gb.DVD-APPWEB\Prerequisite Components\PowerShell7.msi
    Property(S): UILevel = 2
    Property(S): ACTION = INSTALL
    MSI (s) (D4:30) [12:33:27:652]: Product: PowerShell 7-x64 -- Installation failed.
    MSI (s) (D4:30) [12:33:27:652]: Windows Installer installed the product. Product Name: PowerShell 7-x64. Product Version: 7.4.1.0. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
    === Logging stopped: 09/05/2024  12:33:27 ===
     
  • BS-09051231-0 Profile Picture
    6 on at
    Powershell 7 installation error with BC24

    **********************
    05/09/2024 12:32:49 Install Business Central
    === Logging started: 2024/05/09 12:32:50 ===
    Executable: C:\Temp\NavOne_OneClick\Dynamics.365.BC.18056.gb.DVD-APPWEB\setup.exe v24.0.18037.0
    Computer  : MIC12695
    --- logging level: standard ---
    RegistrySearch: Id = 'SqlServerInstalled', checking registry key existence.
                    Id = 'SqlServerInstalled', Key = 'SYSTEM\CurrentControlSet\Services\', Exists = '1'
    RegistrySearch: Id = 'DotNetFxRelease', searching for registry key value.
                    Id = 'DotNetFxRelease', Key = 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', Value = '533320'
    RegistrySearch: Id = 'PowerShell30Installed', searching for registry key value.
                    Id = 'PowerShell30Installed', Key = 'SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', Value = '5.1.22621.1'
    RegistrySearch: Id = 'WindowsSearchInstalled', checking registry key existence.
                    Id = 'WindowsSearchInstalled', Key = 'SYSTEM\CurrentControlSet\Services\WSearch', Exists = '1'
    RegistrySearch: Id = 'VCPPSpLevel', searching for registry key value.
                    Id = 'VCPPSpLevel', Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\12.0', Value = '0'
    RegistrySearch: Id = 'VCPPInstalled', checking registry key existence.
                    Id = 'VCPPInstalled', Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\12.0', Exists = '1'
    RegistrySearch: Id = 'VCPP64Installed', checking registry key existence.
                    Id = 'VCPP64Installed', Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\12.0', Exists = '1'
    RegistrySearch: Id = 'VCPP201764Installed', checking registry key existence.
                    Id = 'VCPP201764Installed', Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0', Exists = '1'
    RegistrySearch: Id = 'IISInstalled', checking registry key existence.
                    Id = 'IISInstalled', Key = 'SOFTWARE\Microsoft\InetStp', Exists = '1'
    RegistrySearch: Id = 'IISWinAuthInstalled', searching for registry key value.
                    Id = 'IISWinAuthInstalled', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'IISASPNETInstalled', searching for registry key value.
                    Id = 'IISASPNETInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'ASPNET'
    RegistrySearch: Id = 'IISASPNET45Installed', searching for registry key value.
                    Id = 'IISASPNET45Installed', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'IISNETFXInstalled', searching for registry key value.
                    Id = 'IISNETFXInstalled', Registry value not found. Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = 'NetFxExtensibility'
    RegistrySearch: Id = 'IISNETFX45Installed', searching for registry key value.
                    Id = 'IISNETFX45Installed', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'IISISAPEXInstalled', searching for registry key value.
                    Id = 'IISISAPEXInstalled', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'HttpActivationInstalled', checking registry key existence.
                    Id = 'HttpActivationInstalled', Key = 'SYSTEM\CurrentControlSet\Services\WAS', Exists = '1'
    RegistrySearch: Id = 'IISISAPIFIInstalled', searching for registry key value.
                    Id = 'IISISAPIFIInstalled', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'IISREQSTFIInstalled', searching for registry key value.
                    Id = 'IISREQSTFIInstalled', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'IISSTATICInstalled', searching for registry key value.
                    Id = 'IISSTATICInstalled', Key = 'SOFTWARE\Microsoft\InetStp\Components', Value = '1'
    RegistrySearch: Id = 'WebComponentsPrerequisitesInstalled', searching for registry key value.
                    Id = 'WebComponentsPrerequisitesInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\Microsoft Dynamics NAV\240\Web Components Prerequisites'
    Configuring package. Id = 'ARP'
    MSI log file set to: C:\Users\BALAZS~1.SZE\AppData\Local\Temp\setup.wix.msi.a.log
    Done configuring package. Id = 'ARP' ReturnCode = 0
    Configuring package. Id = 'WebClientDependency'
    Path to executable = 'C:\Temp\NavOne_OneClick\Dynamics.365.BC.18056.gb.DVD-APPWEB\WebClientDependencyInstaller.exe', Arguments = '/install'
    Done configuring package. Id = 'WebClientDependency' ReturnCode = 0
    Configuring package. Id = 'DotNetCore'
    Path to executable = 'C:\Temp\NavOne_OneClick\Dynamics.365.BC.18056.gb.DVD-APPWEB\Prerequisite Components\DotNetCore\dotnetcore-windowshosting.exe', Arguments = '/quiet /install /norestart'
    Done configuring package. Id = 'DotNetCore' ReturnCode = 0
    Configuring package. Id = 'PowerShell7'
    MSI log file set to: C:\Users\BALAZS~1.SZE\AppData\Local\Temp\setup.wix.msi.b.log
    Windows Installer: Error: A newer version of PowerShell is already installed.
    Done configuring package. Id = 'PowerShell7' ReturnCode = 1603
    Rolling back MSI package. Id = 'ARP'
    MSI log file set to: C:\Users\BALAZS~1.SZE\AppData\Local\Temp\setup.wix.msi.c.log
    Done rolling back MSI package. ReturnCode = 0
    SUCCESS: Package IIS prerequisites for Web Server Components executed sucessfully.
    SUCCESS: Package Microsoft .NET Core Windows Server Hosting executed sucessfully.
    ERROR: Package PowerShell 7 for the commandlets failed with error. See detailed message above.
    === Logging stopped: 2024/05/09 12:33:28 ===
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,318 Super User 2025 Season 1 on at
    Powershell 7 installation error with BC24
    Hi,
     
    Can you provide detailed error message from event log.
     
    Regards,
    Saurav Dhyani

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans