Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Xubuntu 12.04 and I installed Wine 1.4. I am now trying to install the .NET 4.0 Framework using Winetricks. I use this command

sudo sh winetricks dotnet40

But I get this error

wine cmd.exe / c echo '% ProgramFiles%' returned empty string

I get this error when I try to install other programs as well. I have managed to install .NET Framework 4.0. previously, but now I can not get this install to go smoothly. How can I resolve this error?

share|improve this question

migrated from Sep 19 '12 at 4:44

This question came from our site for professional and enthusiast programmers.

You don't need to use sudo there. – user203631 Mar 2 '13 at 16:10
You can find an in-depth tutorial at ask-ubuntu… – pd12 May 28 at 9:09

did you get the file first? Try the following:

$ ­wget

$ bash winetricks dotnet40

WineHQ gives .NET 4 a bronze rating at best. Its ability to install and run properly will vary by which version of Wine you are running.

share|improve this answer

Try this:

$ sudo apt-get install winetricks
$ winetricks dotnet40
share|improve this answer

For a 64bit system you need to make a 32bit prefix and put the dotnet4.0 in it.




env WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks dotnet40

share|improve this answer

You must log in to answer this question.