I’m trying to install an MSI, but it is failing with .net framework 4.6.1 on Windows Server 2022
The same MSI works on Windows Server 2019. What could be the reason?
Below is the logic of my wix file.
<!-- LaunchConditions -->
<MajorUpgrade
Schedule="afterInstallInitialize"
AllowSameVersionUpgrades="yes"
DowngradeErrorMessage="A later version of $(var.ProductName) is already installed. Setup will now exit." />
<Condition Message="This application requires .NET Framework 4.6.1. Please install the .NET Framework then run this installer again.">
<![CDATA[Installed OR WIX_IS_NETFRAMEWORK_461_OR_LATER_INSTALLED]]>
</Condition>
Below is the error:
[3818:0C4C][2024-04-29T11:47:08]w343: Prompt for source of package: NetFx461Web, payload: NetFx461Web, path: C:UsersadminDocumentsTamil_TestingACT3.0.24115.1_Hotfix_202404223.0.24115.1_Hotfix_20240422redistNDP461-KB3102438-Web.exe
[3818:0C4C][2024-04-29T11:47:08]i338: Acquiring package: NetFx461Web, payload: NetFx461Web, download from: http://go.microsoft.com/fwlink/?LinkId=671728
[3818:0C4C][2024-04-29T11:47:09]e000: Error 0x80072f07: Failed to send request to URL: http://go.microsoft.com/fwlink/?LinkId=671728, trying to process HTTP status code anyway.
[3818:0C4C][2024-04-29T11:47:09]e000: Error 0x80072f76: Failed attempt to download URL: ‘http://go.microsoft.com/fwlink/?LinkId=671728’ to: ‘C:WindowsTemp{0C0C4114-B4A5-424B-A79C-71DEAB89E9F0}NetFx461Web’
I have updated the property ref ID to support 4.8.1 and also I’m referencing WixNetFxExtension.dll, but it failed with the below error.
error LGHT0094 : Unresolved reference to symbol ‘Property:WIX_IS_NETFRAMEWORK_481_OR_LATER_INSTALLED’ in section ‘Product:{6cfa24a2-0ed9-43c2-b45c-acc4b819c404}’.
Wed 06/05/2024 15:21:30.61 Error, cannot find MSI file “C:BuildAgent_work35bpkgouttestmanager.msi”
Dinakar G is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.