mike@mike-Inspiron-N4010:~$ winetricks
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned unexpanded string '%ProgramFiles%' ... can be caused a corrupt wineprefix, an old wine, or by not owning /home/mike/.wine
------------------------------------------------------
mike@mike-Inspiron-N4010:~$
I'm new to linux so does anybody have a fix for this? I'm trying to play LoL on here but I need extra packages from winetricks, and it won't open. Please help!
winetricks won't open from terminal
Re: winetricks won't open from terminal
The terminal gave you three possible reasons; figure out which one it is. Delete the wineprefix, upgrade to the latest development release if you're not already using it, and reinstall your apps as a normal user (never run Wine as root).holmesmr wrote:mike@mike-Inspiron-N4010:~$ winetricks
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned unexpanded string '%ProgramFiles%' ... can be caused a corrupt wineprefix, an old wine, or by not owning /home/mike/.wine
------------------------------------------------------
mike@mike-Inspiron-N4010:~$
Same error here while trying to run winetricks.
This is not helpfull at all. I got latest wine release, fresh Ubuntu 12.04 install and deleting wineprefix doesn't help.The terminal gave you three possible reasons; figure out which one it is. Delete the wineprefix, upgrade to the latest development release if you're not already using it, and reinstall your apps as a normal user (never run Wine as root).
-
- Newbie
- Posts: 1
- Joined: Tue Jan 08, 2013 2:00 pm
Re: winetricks won't open from terminal
To fully reset wine one must delete (or rename if you wanna do some backup) ~/.wine folder.
After that you can remove and re-install wine and everything will be as new.
After that you can remove and re-install wine and everything will be as new.
Re: winetricks won't open from terminal
The problem is with windows environment variables set by wine (%SystemDrive% is not set). To fix this, registry needs to be modified and variable set to "C:"
1) Verify variable settings:
$ wine cmd.exe /c echo '%ProgramFiles%
%SystemDrive%\Program Files
$ wine cmd.exe /c echo '%SystemDrive%
%SystemDrive%
2) Set missing variable:
$ wine cmd.exe /c regedit
a) Go to: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment]
b) Set string variable: "SystemDrive"="C:"
Hope is more helpful than moderator answer
1) Verify variable settings:
$ wine cmd.exe /c echo '%ProgramFiles%
%SystemDrive%\Program Files
$ wine cmd.exe /c echo '%SystemDrive%
%SystemDrive%
2) Set missing variable:
$ wine cmd.exe /c regedit
a) Go to: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment]
b) Set string variable: "SystemDrive"="C:"
Hope is more helpful than moderator answer