Skip to content

Conversation

@SurenIV
Copy link
Contributor

@SurenIV SurenIV commented Dec 22, 2025

The corruption occurs in the 64bit prefix when the component installation is run in the syswow64 directory:

  • W_PROGRAMS_WIN='C:\Program Files (x86)'
    ++ w_pathconv -u 'C:\Program Files (x86)'
    ++ case "${W_PLATFORM}" in
    ++ case "$@" in
    ++ winetricks_wintounix 'C:\Program Files (x86)'
    ++ W_winp='C:\Program Files (x86)'
    ++ _W_winp='\Program Files (x86)'
    ++ printf %s /home/guest/.wine/dosdevices/c:
    ++ echo '\Program Files (x86)'
    ++ sed 's,\,/,g'
  • W_PROGRAMS_UNIX='/home/guest/.wine/dosdevices/c:/Program Files (x86)'
    ...
  • W_PROGRAMS_X86_WIN='C:\Program Files (x86) (x86)'
  • W_PROGRAMS_X86_UNIX='/home/guest/.wine/dosdevices/c:/Program Files (x86) (x86)'

To avoid this, I added cd to the root of the prefix.

src/winetricks Outdated
}

# Expand an environment variable and print it to stdout
# Move to $WINEPREFIX to avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswo64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Move to $WINEPREFIX to avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswo64
# Move to $WINEPREFIX to avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswow64

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@SurenIV SurenIV changed the title Avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswo64 Avoid corruption of W_PROGRAMS_WIN and W_PROGRAMS_X86_WIN when running from syswow64 Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants