Installing .NET 4.0 Framework on Wine using Winetricks

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?

2

3 Answers

Try this:

$ sudo apt-get install winetricks
$ winetricks dotnet40

To install using gui, you can try winetricks --gui, than choose install app, than cancel and in new window, choose install windows part or library. There are dot net dependencies.

To show installed things, you can winetricks list-installed.

1

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

So:

wget

Then:

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

1

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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like