Skip to content

[Bug]: Unable to install dotnet40 when Z drive disabled #4875

Description

@philipzae

Describe the bug

If the Z drive is disable in preferences, then its not possible to successfully install dotnet40.

The unsuccessful installation will produce the file c:\users\steamuser\AppData\Local\Temp\dd_dotnet40_decompression_log.txt containing

[10/11/2026, 1:17:16] === Logging started: 2026/10/11 01:17:16 ===
[10/11/2026, 1:17:16] Executable: unix\home\jay\.var\app\com.usebottles.bottles\data\bottles\temp\dotnet40.exe v0.0.0.0
[10/11/2026, 1:17:16] --- logging level: standard ---
[10/11/2026, 1:17:16] Error 0x80070002: Failed to open box from path: unix\home\jay\.var\app\com.usebottles.bottles\data\bottles\temp\dotnet40.exe
[10/11/2026, 1:17:16] Error 0x80070002: Failed to open the box
[10/11/2026, 1:17:16] Exiting with result code: 0x80070002
[10/11/2026, 1:17:16] === Logging stopped: 2026/10/11 01:17:16 ===

To Reproduce

  1. Open preferences dialog and disable 'Default Z: Drive in New Bottles'
  2. Create a new bottle
  3. Install dotnet40
  4. Notice that the c:\windows\Microsoft.NET\ wasn't created

Package

Flatpak from Flathub

Distribution

KDE Neon

Debugging Information

Official Package: true
Version: '67.4'
DE/WM: plasma
Display:
    X.org: true
    X.org (port): :1
    Wayland: true
Graphics:
    vendors:
        intel:
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/share/vulkan/icd.d/intel_icd.x86_64.json:/usr/share/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.i686.json
    prime:
        integrated: null
        discrete: null
    Vulkan: true
Kernel:
    Type: Linux
    Version: 6.17.0-35-generic
Disk:
    Total: 8205201408
    Free: 8205025280
RAM:
    MemTotal: 15.3GiB
    MemAvailable: 7.7GiB
Bottles_envs: null

Troubleshooting Logs

Additional context

Installation Log

01:16:49 (INFO) Installing dependency [dotnet40] in bottle [Test No Z Drive]. 
01:16:49 (INFO) Using Wine Uninstaller -- get_uuid 
01:16:49 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine uninstaller --list 2>&1 
01:16:52 (INFO) Using Wine Uninstaller -- from_uuid 
01:16:52 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine uninstaller --remove '{D535B019-7406-58F2-8408-EA9A188713EF}' 
wineserver: using server-side synchronization.
00e00f00fregsvr32: Successfully unregistered DLL 'C:\windows\\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll'
regsvr32: Successfully unregistered DLL 'C:\windows\\Microsoft.NET\Framework64\v4.0.30319\diasymreader.dll'
01:16:57 (INFO) Using Wine Uninstaller -- from_uuid 
01:16:57 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine uninstaller --remove '{52AFF04B-2DB1-5423-BD66-6ACC193D1621}' 
wineserver: using server-side synchronization.
01:17:08 (INFO) Setting Windows version to win7 
01:17:08 (INFO) There is no running wineserver. 
01:17:08 (INFO) Using Wine Configuration -- set_windows_version 
01:17:09 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine winecfg -v win7 
wineserver: using server-side synchronization.
00e00f01:17:13 (INFO) There is no running wineserver. 
01:17:13 (WARNING) File [dotnet40.exe] already exists in temp, skipping. 
01:17:13 (INFO) Launching an executable… 
01:17:13 (INFO) Fonts directory modified manually, running wineboot to update fonts registry. 
01:17:13 (INFO) Session started: id=1529 bottle=Test No Z Drive program=dotnet40.exe 
01:17:13 (INFO) Using Wine Starter -- run 
01:17:14 (INFO) Using EasyAntiCheat runtime 
01:17:14 (INFO) Using BattlEye runtime 
01:17:14 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine start /wait /unix /home/jay/.var/app/com.usebottles.bottles/data/bottles/temp/dotnet40.exe /q 
wineserver: using server-side synchronization.
00f01:17:17 (INFO) Setting Windows version to win10 
01:17:17 (INFO) There is no running wineserver. 
01:17:17 (INFO) Using Wine Configuration -- set_windows_version 
01:17:17 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine winecfg -v win10 
wineserver: using server-side synchronization.
00e00f01:17:21 (INFO) There is no running wineserver. 
01:17:21 (INFO) Adding Key: [HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full] with Value: [Install] and Data: [0001] in Test No Z Drive registry 
01:17:21 (INFO) Using Wine Registry CLI -- add 
01:17:21 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine reg add 'HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full' /v 'Install' /t REG_DWORD /d '0001' /f 
wineserver: using server-side synchronization.
00e01:17:24 (INFO) reg: Unable to access or create the specified registry key
01:17:24 (INFO) Adding Key: [HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full] with Value: [Version] and Data: [4.0.30319] in Test No Z Drive registry 
01:17:24 (INFO) Using Wine Registry CLI -- add 
01:17:25 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine reg add 'HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full' /v 'Version' /t REG_SZ /d '4.0.30319' /f 
wineserver: using server-side synchronization.
00e01:17:27 (INFO) reg: Unable to access or create the specified registry key
01:17:27 (INFO) Adding Key: [HKEY_CURRENT_USER\Software\Wine\DllOverrides] with Value: [mscoree] and Data: [native] in Test No Z Drive registry 
01:17:28 (INFO) Using Wine Registry CLI -- add 
01:17:28 (INFO) Executing command: /home/jay/.var/app/com.usebottles.bottles/data/bottles/runners/soda-11.0-10/bin/wine reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v 'mscoree' /d 'native' /f 
wineserver: using server-side synchronization.
00e01:17:30 (INFO) reg: The operation completed successfully
01:17:30 (INFO) Setting Key Installed_Dependencies=['arial32', 'times32', 'courie32', 'mono', 'gecko', 'dotnet40'] for bottle Test No Z Drive… 
01:17:30 (INFO) Setting Key dotnet40=Microsoft .NET Framework 4 Extended for bottle Test No Z Drive… 
01:17:30 (INFO) Dependency installed: dotnet40 in Test No Z Drive 

Activity

  1. philipzae commented on Oct 10, 2026

    @philipzae
    Author

    When Z drive is enabled, this is how c:\users\steamuser\AppData\Local\Temp\dd_dotnet40_decompression_log.txt looks

    [10/11/2026, 2:15:59] === Logging started: 2026/10/11 02:15:59 ===
    [10/11/2026, 2:15:59] Executable: Z:\home\jay\.var\app\com.usebottles.bottles\data\bottles\temp\dotnet40.exe v4.0.30319.1
    [10/11/2026, 2:15:59] --- logging level: standard ---
    [10/11/2026, 2:15:59] Successfully bound to the ClusApi.dll
    [10/11/2026, 2:15:59] Cluster drive map: ''
    [10/11/2026, 2:15:59] Considering drive: 'C:\'...
    [10/11/2026, 2:15:59] Considering drive: 'Z:\'...
    [10/11/2026, 2:15:59] Drive 'Z:\' has been selected as the largest fixed drive
    [10/11/2026, 2:15:59] Directory 'Z:\dcc69730f95a904d028d16483a\' has been selected for file extraction
    [10/11/2026, 2:15:59] Extracting files to: Z:\dcc69730f95a904d028d16483a\
    [10/11/2026, 2:16:19] Extraction took 19.817 seconds
    [10/11/2026, 2:16:19] Executing command line: 'Z:\dcc69730f95a904d028d16483a\\Setup.exe  /q /x86 /x64'
    [10/11/2026, 2:21:42] Exiting with result code: 0x0
    [10/11/2026, 2:21:42] === Logging stopped: 2026/10/11 02:21:42 ===
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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