Skip to content

Automatically create "C:\Windows\assembly" folder after installing .NET #2459

@MrPowerGamerBR

Description

@MrPowerGamerBR

Some application installers, like the Sony/MAGIX Vegas 13+ installer, fail to install under Wine because the "assembly" folder inside the Windows folder is missing.

The reason this happens is because "ngen.exe" tries writing the .NET assemblies to the "C:\windows\assembly" folder and, because that folder is not created automatically by .NET, "ngen.exe" fails which causes the installer to also fail. (you can see the error logs in the log file that is generated in the "C:\windows\Microsoft.NET\framework\NetVersionNumberHere\ngen.log").

01/09/2026 15:18:23.643 [580]: Command line: C:\windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe Install C:\Program Files\VEGAS\VEGAS Pro 13.0\bdmux\BdMuxServer.exe 
01/09/2026 15:18:23.657 [580]: Installing assembly C:\Program Files\VEGAS\VEGAS Pro 13.0\bdmux\BdMuxServer.exe
01/09/2026 15:18:24.043 [580]: Failed to load dependency AppSec of assembly mux.net, Version=6.1.1.13, Culture=neutral, PublicKeyToken=null because of the following error : Arquivo não encontrado. (Exception from HRESULT: 0x80070002)
01/09/2026 15:18:24.437 [580]: 1>    Compiling assembly mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (CLR v4.0.30319) ...
01/09/2026 15:18:24.526 [580]: 1>Error compiling mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089: Caminho não encontrado. (Exception from HRESULT: 0x80070003)
01/09/2026 15:18:24.543 [580]: 1>Ngen failed to generate native code for image mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 because of the following error: Caminho não encontrado. (Exception from HRESULT: 0x80070003)
01/09/2026 15:18:24.544 [580]: 1>Ngen will retry compilation of image mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
01/09/2026 15:18:24.724 [580]: 1>    Compiling assembly mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (CLR v4.0.30319) ...
01/09/2026 15:18:24.813 [580]: 1>Error compiling mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089: Caminho não encontrado. (Exception from HRESULT: 0x80070003)
01/09/2026 15:18:24.832 [580]: 1>Failed to generate native code for dependent image mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 because of the following error: Caminho não encontrado. (Exception from HRESULT: 0x80070003)
01/09/2026 15:18:25.010 [580]: 1>    Compiling assembly Vegmuxrt, Version=6.1.1.13, Culture=neutral, PublicKeyToken=null (CLR v4.0.30319) ...
01/09/2026 15:18:25.118 [580]: 1>Error compiling Vegmuxrt, Version=6.1.1.13, Culture=neutral, PublicKeyToken=null: Caminho não encontrado. (Exception from HRESULT: 0x80070003)
01/09/2026 15:18:25.127 [580]: 1>Ngen failed to generate native code for image Vegmuxrt, Version=6.1.1.13, Culture=neutral, PublicKeyToken=null because of the following error: Caminho não encontrado. (Exception from HRESULT: 0x80070003)

When reading about the issue here, it seems that newer Windows versions automatically create that folder when installing Windows, but the standalone .NET installer doesn't do that.

Wine Bug report: https://bugs.winehq.org/show_bug.cgi?id=47193

Of course, I'm not sure if this would be a winetricks issue, considering that Wine should create all the necessary files and folders mimicking the original Windows install, and that Wine Mono also doesn't create the assembly folder, so this is issue is mostly a "hey maybe this would be a nice thing to have" :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions