WineHQ for Microsoft Office 2010

11 Dec

Edited on 6th May 2013.

This is an update for How-to install Microsoft Office 2010 via WineHQ in Ubuntu 12.10 and Ubuntu 13.04. The Wine I am using is 1.4.1. Hope this may help.

1) Install winetricks and Microsoft Core fonts:

sudo apt-get install winetricks msttcorefonts wine-mono

2) If you have installed WineHQ before, you should remove all config files from your home directory:

rm -rf ~/.wine
rm -rf ~/.cache/winetricks
rm -rf ~/.config/menus/applications-merged/*
rm -rf ~/.local/share/applications/*
rm -rf ~/.local/share/mime/application/*

3) For 64-bit system, you have to tell WineHQ to run in 32-bit mode:

export WINEARCH=win32
wineboot --update

4) In order for Office to work properly, you have to install some software from winetricks

4.1) Open Winetricks
4.2) Select "Select the default wineprefix", then click OK.
4.3) Select "Install a Windows DLL or component", then click OK.
4.4) Select and install the following components:
4.4.1) dotnet20(*)
4.4.2) msxml6
4.4.3) vcrun2005
(*) : Since this file could not download automatically,
please follow the prompt, download the file,
copy it to the designated directory,
re-run winetricks and install this file again.

5) Install Microsoft Office 2010

6) (Optional) Install some Windows fonts from Winetricks

6.1) Open Winetricks
6.2) Select "Select the default wineprefix", then click OK.
6.3) Select "Install a font", then click OK.
6.4) Select and install the following font:
6.4.1) corefonts

7) Then, we need to specified which DLL file to use, Winehq provided one or Windows native.

7.1) Open Winetricks
7.2) Select "Select the default wineprefix", then click OK.
7.3) Select "Run winecfg", then click OK.
7.4) Go to the "Library" tab:
7.4.1) Edit "msxml6" to "Native (Windows)"
7.4.2) Edit "msvcp90" to "Native (Windows)"
7.4.3) Add "gdiplus", then edit it to "Native (Windows)"
7.4.4) Add "riched20", then edit it to "Native (windows)"
7.4.5) Now can click "Apply" then "OK"

8) Apparently, after Wine1.2rc, whenever you open a MS Office file, it will create a .lnk file in your working directory, which will not be removed after you close the file. The .lnk file was supposed to be created for the “Recently opened file” menu, however, there is a little bug. WineHQ forgot to create a folder to store all those .lnk

mkdir ~/.wine/drive_c/users/"your_user_name"/Recent

9) WineHQ will change some file association to “Wine Explorer” and “Wine Notepad”, to stop this:

cd ~/.local/share/applications/

rm -rf wine-extension-dic.desktop wine-extension-exc.desktop wine-extension-gif.desktop wine-extension-ini.desktop wine-extension-jfif.desktop wine-extension-jpe.desktop wine-extension-png.desktop wine-extension-txt.desktop wine-extension-url.desktop wine-extension-wri.desktop

10) For IBus to work correctly in Office, please edit the following text files:

Go to :
~/.local/share/applications/wine/Programs/Microsoft Office

Edit the following files:
Microsoft Office Access 2010.desktop
Microsoft Office Excel 2010.desktop
Microsoft Office Groove 2010.desktop
Microsoft Office InfoPath 2010.desktop
Microsoft Office OneNote 2010.desktop
Microsoft Office Outlook 2010.desktop
Microsoft Office PowerPoint 2010.desktop
Microsoft Office Publisher 2010.desktop
Microsoft Office Word 2010.desktop
Exec=env WINEPREFIX=..............
Exec=env LANG=zh_TW.UTF-8 WIEPREFIX=............
Depend on your language, you may use:
zh_TW.UTF-8 zh_CN.UTF-8 ja_JP.UTF-8 ko_KR.UTF-8
Leave a comment

Posted by on December 11, 2012 in IBus, Linux, Wine


Tags: , , , , , , , , ,

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: