Howto: Office 2007 on Linux with Wine

Microsoft Office 2007 is the most recent Windows version of the Microsoft Office system, Microsoft’s productivity suite. Formerly known as Office 12 in the initial stages of its beta cycle, it was released to volume license customers on November 30, 2006 and made available to retail customers on January 30, 2007.

New Features in Office 2007
Office 2007 contains a number of new features, the most notable of which is the entirely new graphical user interface called the Fluent User Interface (initially referred to as the Ribbon UI), replacing the menus and toolbars that have been the cornerstone of Office since its inception with a tabbed toolbar, known as the Ribbon. Office 2007 requires Windows XP with Service Pack 2 or 3, Windows Server 2003 with Service Pack 1 or higher, or Windows Vista.

The ‘Ribbon User Interface’ is a task-orientated Graphical User Interface (GUI). It features a central menu button, widely known as the ‘Office Button’. The Ribbon Interface has been rumored to be introduced into Microsoft Office 14.

The new user interface (UI), officially known as Microsoft Office Fluent, has been implemented in the core Microsoft Office applications: Word, Excel, PowerPoint, Access, and in the item inspector used to create or edit individual items in Outlook. These applications have been selected for the UI overhaul because they center around document authoring. The rest of the applications in the suite will also be upgraded to the new UI in subsequent versions. The default font used in this edition is Calibri. Original prototypes of the new user interface were revealed at MIX 2008 in Las Vegas.

Getting Wine Ready for Office 2007

Wine Configuration
The following guide is based on a clean configuration directory and running in a 1024×768 virtual desktop.


Wine version used:
wine-1.1.9
Windows version emulated:
Windows XP
Office version:
Microsoft Office 2007

Download and install the latest Wine available by following this guide.


$ winecfg

When the configuration dialog appears set the virtual desktop in the graphics tab and click OK.

Then download winetricks using wget:

$ wget http://www.kegel.com/wine/winetricks


sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 allfonts

Installing Microsoft Office 2007
Office 2007 requires a libraries, which are not included in a plain Wine-installation. These libraries could be obtained from CrossOver Games, which is a derived version of Wine made to support games under Linux.

Download and install CrossOver Games either by hand or by using the official Ubuntu or Debian package.

After the install then

Copy rpcrt4.dll.so into Wine:

$ sudo cp /opt/cxgames/lib/wine/rpcrt4.dll.so .wine/drive_c/windows/system32/

Rename the native Wine-dll version:

$ sudo mv .wine/drive_c/windows/system32/rpcrt4.dll .wine/drive_c/windows/system32/rpcrt4.dll.bak

Rename CrossOver Games version into the original name:

$ sudo mv .wine/drive_c/windows/system32/rpcrt4.dll.so .wine/drive_c/windows/system32/rpcrt4.dll

Moreover you will need to rename msxml3.dll into *.bak too:

$ sudo mv .wine/drive_c/windows/system32/msxml3.dll .wine/drive_c/windows/system32/msxml3.dll.bak

After the renaming it is time to run winecfg again and set msxml3.dll and rpcrt4.dll to “native windows” select save and exit.

Now it is time to mount the Office 2007 cd media and start the actual Office 2007 installation.

$ sudo mount -o loop -o unhide Office-2007.iso /mnt

Now cd into the mounted directory

$ cd /mnt
$ wine setup.exe

Type the serial number and click install.

Related posts:

  1. Mono developer brings the Ribbon interface (as in Office 2007) to Linux
  2. Windows XP themes on Wine
  3. iTunes on Linux (Ubuntu)
  4. Office 2007 Standard Theme Colors
  5. Seamless Windows Applications on Ubuntu Linux Using VirtualBox
  6. Safari on Linux
  7. X11 for Windows XP and Vista
  8. How to Download Microsoft Windows 7
  9. Xen Howto: Install Windows
  10. Howto Install Windows XP / Vista on Xen

Popular Related Items »

15 Comments »

  1. cisco80211 said,

    December 8, 2008 @ 0:41

    This worked perfect on one of my computers, but I may have missed a step on my second computer. Both running Ubuntu 8.10 with Wine 1.1.10 and Crossover Games (crossover-games-demo_7.1.0-1_i386.deb)

    I’ve tried uninstalling wine and then re-doing everything on this page, and Office 2007 starts and errors out right away. I do not even get to enter a serial number.

    How do I just delete everything and start from the beginning?

    This is the log from the Office 2007 installer:
    PERF: TickCount=530 Name=OBootStrapper::Run Description=Begin function

    Operating System version: 5.1.2600 Service Pack 2. Platform ID: 2

    Running on a 32-bit operating system.

    Command line: setup.exe

    No command line arguments given

    Verify file signature in “Z:\home\chris\Desktop\office2007\setup.exe”

    Verify file signature in “Z:\home\chris\Desktop\office2007\Ultimater.WW\OSETUP.DLL”

    Using setup controller dll at [Z:\home\chris\Desktop\office2007\Ultimater.WW\OSETUP.DLL].

    PERF: TickCount=1936 Name=OBootStrapper::Run Description=Calling RunSetup

    Opening log file C:\windows\temp\SetupExe(200812071719108).log.

    =========================================================================

    PERF: TickCount=1940 Name=RunSetup Description=Begin function

    Catalyst execution began: 12/07/2008 17:19:10.

    Setupexe Resiliency Mode is set to [PerformIfApplicable]; thus Resiliency is [disabled] for the [InstallExecutionMode]

    Searching for updated versions of resource files under the ‘updates’ folder [Z:\home\chris\Desktop\office2007\updates].

    Found [0] resource files under the update folder.

    Searching for default versions of resource files under the folder [Z:\home\chris\Desktop\office2007].

    Resource File Manager : Found (CultureTag=en-US) resource file at [Z:\home\chris\Desktop\office2007\Office.en-us\OSETUPUI.DLL].

    Found [1] resource files under the default folder.

    Resource File Manager : Current user’s LCID is [1033].

    Resource File Manager : Selecting resource file (File=Z:\home\chris\Desktop\office2007\Office.en-us\OSETUPUI.DLL) for CultureTag [en-US].

    Running in [InstallExecutionMode]. Run from TEMP folder at [C:\windows\temp\Setup00000008].

    Loaded resource file [C:\windows\temp\Setup00000008\OSETUPUI.DLL] (CultureTag=en-US).

    Loaded Dll : Z:\home\chris\Desktop\office2007\Ultimater.WW\OSETUP.DLL.

    Catalyst version is : 12.0.4518.1014

    JobExecutionMode is InstallExecutionMode.

    Error: CoCreateInstance failed HResult: 0×80070005.

    Catalyst execution finished: 12/07/2008 17:19:11. Return code: 30023. Exception caught: HResultOnly.

    PERF: TickCount=2398 Name=RunSetup Description=End function

    =========================================================================

  2. Linux 下使用 Wine 安装运行 TM2008 Beta | 益友网 | Linux之友 said,

    December 9, 2008 @ 12:55

    [...] Howto: Office 2007 on Linux with Wine [...]

  3. Jakob Nielsen said,

    December 9, 2008 @ 23:32

    Hi

    Nice guide..

    It seems like you miss the command “sudo apt-get install cabextract
    ” before running “sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 allfonts” or it will fail installing from gdiplus and the rest.

    /Skipper

  4. Jakob Nielsen said,

    December 10, 2008 @ 1:12

    Hi

    I also experienced problems with the install, maybe it has changed with the new 1.1.10. I could install Office (excel, word, powerpoint and publisher) but I could not open the programs.

    After reading on http://appdb.winehq.org/commentview.php?iAppId=31&iVersionId=4992&iThreadId=43508
    it seemed that wine 1.1.10 could run it without install too much crap. I uninstalled all wine with “sudo apt-get remove wine” and then I remove winetricks, wine settings with this command:
    $ rm -rf ~/.wine ~/.winetrickscache ~/winetrickscache ~/winetricks

    Then I simply installed wine with this command “apt-get install wine”
    After installing wine I ran the winecfg to make sure it was set to “Windows XP” under applications. Then I choose to “Emulate a virtual desktop” under Graphics – pressed apply and then ok.

    I still used the mouting command from this guide:
    $ sudo mount -o loop -o unhide Office-2007.iso /mnt

    And then launched the setup:
    $ cd /mnt
    $ wine setup.exe

    After installing Office 2007 I could launch word, excel and publisher from the menu application-Other without a problem. However Powerpoint will not start.

    Lucky the most important program work.. I have just installed and therefore I do not know how stable they work.

    I will try to make an updated guide on my site jakobskipper.dk as I know the owner of this page is on holiday for three weeks.
    /Skipper

  5. Linux 下使用 Wine 安装运行 TM2008 Beta 及乱码、与 Windows 共享聊天记录等相关问题的解决。 | 走过岁月 said,

    December 10, 2008 @ 14:22

    [...] Howto: Office 2007 on Linux with Wine [...]

  6. Umut Mert said,

    December 24, 2008 @ 12:59

    Thank you!!!!!

    Fİnally after days of trying it worked on Ubuntu 8.10 with Wİne 1.1.10

  7. Andrew said,

    April 4, 2009 @ 5:37

    I had to basically run the program in Wine as root

    “cd /mnt
    sudo wine setup.exe”

    Hope that helps someone.

  8. Mike Naughton said,

    September 18, 2009 @ 20:06

    Works great on Fedora 11 running Wine 1.1.29. Thanks a lot.

  9. Ismail Meghani said,

    November 12, 2009 @ 17:40

    control panel remove, won’t remove microsoft office publisher 2007
    version 12.0.4518.1014

  10. Ismail Meghani said,

    November 12, 2009 @ 17:42

    help me remove office 2007 publisher version 12.0.4518.1014

  11. [Ubuntu] 9.10 installation « My Knowledge Base said,

    December 18, 2009 @ 22:57

    [...] Wine (Office 2007 + Adobe)  ????? Office 2007 in Ubuntu [...]

  12. giuseppe terrasi said,

    February 15, 2010 @ 20:46

    it’s work but

    “After the renaming it is time to run winecfg again and set msxml3.dll and rpcrt4.dll to “native windows” select save and exit.”

    I have used “built in”


    Ubuntu 9.10
    wine_1.1.38

    bye

  13. MS Office on a Linux machine - Page 3 - Overclock.net - Overclocking.net said,

    April 24, 2010 @ 4:31

    [...] http://mediakey.dk/~cc/howto-office-…nux-with-wine/ __________________ If you have switched to Linux from Windows and feel that something is still missing look here Core i7 4Ghz+ Club OCN Water Cooling Club The Tux Club [...]

  14. Deependra said,

    July 11, 2010 @ 12:53

    Thanks a lot for a nice writeup. Got Office Professional Plus 2007 SP 2 installed on fedora 13 with the steps mentioned here.

    Only change from the steps was that I had to rename msxml3.dll.bak back to msxml3.dll

    and also had to install samba-winbind (for NTLM auth) and cabextract from the repos.

  15. J.v.C said,

    July 16, 2010 @ 19:22

    Thanks for information.

RSS feed for comments on this post · TrackBack URI

Leave a Comment