Can't install .NET Framework 3.5 on Wine x64

Questions about Wine on Linux
Locked
byjove01
Level 3
Level 3
Posts: 58
Joined: Tue Jan 12, 2021 10:00 am

Can't install .NET Framework 3.5 on Wine x64

Post by byjove01 »

*sigh*

I noticed my .NET Framework install was probably corrupted according to weird reactions from my .NET-dependent games - like the Batman Arkham games - so I used the clean-up tool to remove my installations and ran the winetricks dotnet35 installer.
But the install fails and I get this log.

Code: Select all

[10/29/23,09:31:11] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/29/23,09:31:12] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/29/23,09:35:14] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/29/23,09:35:15] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/29/23,10:34:52] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/29/23,10:34:56] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/29/23,14:16:16] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/29/23,14:16:18] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/29/23,14:21:37] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/29/23,14:22:09] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/29/23,14:22:40] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/29/23,14:23:11] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/29/23,14:23:42] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/29/23,14:24:13] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/29/23,14:25:49] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/29/23,14:25:53] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/30/23,09:02:20] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/30/23,09:02:21] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/30/23,09:12:46] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/30/23,09:12:48] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/30/23,09:23:33] Windows Installer Patch Registration Fix for .NET Framework 3.5 (x64): [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:24:04] Windows Installer Patch Registration Fix for .NET Framework 3.5 (x64): [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:24:35] Windows Installer Patch Registration Fix for .NET Framework 3.5 (x64): [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:25:27] Windows Installer Patch Registration Fix for .NET Framework 3.5 (x64): [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:25:30] Windows Installer Patch Registration Fix for .NET Framework 3.5 (x64): [2] Failed to fetch setup file in CBaseComponent::PreInstall()
[10/30/23,09:25:30] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147467260.
[10/30/23,09:25:30] setup.exe: [2] CSetupManager::RunInstallPhase() - Call to Pre/Install/Post for InstallComponents failed
[10/30/23,09:25:30] setup.exe: [2] CSetupManager::RunInstallPhaseAndCheckResults() - RunInstallPhase() returned a NULL piActionResults
[10/30/23,09:25:30] setup.exe: [2] CSetupManager::RunInstallFromList() - RunInstallPhaseAndCheckResults failed [2]
[10/30/23,09:25:30] setup.exe: [2] ISetupManager::RunInstallLists(IP_PREINSTALL failed in ISetupManager::RunInstallFromThread()
[10/30/23,09:25:30] setup.exe: [2] ISetupManager::RunInstallFromThread() failed in ISetupManager::RunInstall()
[10/30/23,09:25:30] setup.exe: [2] CSetupManager::Run() - Call to RunInstall() failed
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Windows Installer Patch Registration Fix for .NET Framework 3.5 (x64) is not installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates XPSEPSC x64 Installer was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 SP2 x64 was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5 (x64) 'package' was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - CHS was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - CHT was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - DEU was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - ESN was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - FRA was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - ITA was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP (x64) - 日本語 was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - KOR was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - ARA was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - CSY was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - DAN was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - ELL was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - FIN was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - HEB was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - HUN was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - NLD was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - PLK was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - PTB was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - RUS was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - SVE was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - TRK was not attempted to be installed.
[10/30/23,09:25:30] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5LP(x64) - PTG was not attempted to be installed.
[10/30/23,09:26:03] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:26:34] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:27:05] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:27:37] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:28:08] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:28:39] Microsoft .NET Framework 3.5LP(x64) - HEB: [2] dlmgr: CDownloadJobBITSImpl::RunToFinish() : BITS job in BG_JOB_STATE_ERROR state.
Context: 5	Error code: -2145844844	Description: No description available.
[10/30/23,09:29:41] Microsoft .NET Framework 2.0a x64: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a x64. MSI returned error code 1603
[10/30/23,09:29:45] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a x64 is not installed.
[10/30/23,09:36:48] Microsoft .NET Framework 3.5 (x64) 'package': [2] Error: Installation failed for component Microsoft .NET Framework 3.5 (x64) 'package'. MSI returned error code 1603
[10/30/23,09:36:56] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5 (x64) 'package' is not installed.
Normally, 3.5 should include 2.0 and prior .NET builds. Using the build from the Microsoft website won't change anything. What is happening?

My build is wine-8.17 x64.
byjove01
Level 3
Level 3
Posts: 58
Joined: Tue Jan 12, 2021 10:00 am

Re: Can't install .NET Framework 3.5 on Wine x64

Post by byjove01 »

Anybody here?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't install .NET Framework 3.5 on Wine x64

Post by jkfloris »

Can you successfully install the .Net 3.5 framework in a new, clean prefix?

Code: Select all

WINEPREFIX="${HOME}/dotnet-test" winetricks -q dotnet35
byjove01
Level 3
Level 3
Posts: 58
Joined: Tue Jan 12, 2021 10:00 am

Re: Can't install .NET Framework 3.5 on Wine x64

Post by byjove01 »

Yes, it works (at least there were no errors), but I'd rather try to repair my own wineprefix instead of creating another one (and having to reinstall several programs) for the hundredth time if possible...
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't install .NET Framework 3.5 on Wine x64

Post by jkfloris »

Unfortunately, the .Net 3.5 Framework cannot be officially uninstalled.
However, you may be able to force it.

Make a backup of your wineprefix in case it doesn't work!

winecfg → Remove the "mscoree" and "mscorwks" overrides

Remove "mscoree.dll" from "system32" and "syswow64"

Repair the prefix with "wineboot -u"

Reinstall the .Net Framework with "winetricks --force -q dotnet35"

--- Edit ---
Unfortunately, the above solution does not work in my test prefix. Probably several registry keys also need to be removed before the prefix is repaired.
byjove01
Level 3
Level 3
Posts: 58
Joined: Tue Jan 12, 2021 10:00 am

Re: Can't install .NET Framework 3.5 on Wine x64

Post by byjove01 »

The problem is still there, but I managed to find a workaround. Wine being so hard to manage properly is just sad.
Thanks you anyways.
Locked