Installing Microsoft Office 2007 using wine

Yes.. I know theres a lot of office suites out there for linux.. the problem is: In my actual work, I *MUST* use the dammit OOXML for docs, spreadsheets, presentations and Visio for stuff. I personaly hate Office2007 but.. I just need it…

  • Download and install crossover-game trial at codeweavers (yes, crossover games)
  • Install the last wine available (Ubuntu 8.04 have a good one, gentoo ~x86 too)
  • Download and install winetricks at http://www.kegel.com/wine/winetricks
  • Now, go to console and type winecfg to create your first wine configuration.
  • From winetricks, install this packages: dotnet11, dotnet20, gdiplus, msxml3, msxml4, msxml6, vcrun2005sp1 and vcrun2008.
  • Now, go to /home/<youruser>/.wine/drive_c/windows/system32 and rename rpcrt4.dll to something like rpcrt4.dll.bak
  • Copy /opt/cxgames/lib/wine/rpcrt4.dll.so to /home/<youruser>/.wine/drive_c/windows/system32/rpcrt4.dll (yes, without the .so).
  • Mount office cd with -o unhide option (I don’t know why, but if you automount, the cd will miss some files).
  • Go to directory of cdrom and type wine setup.exe
  • Now you can uninstall crossover trial, remove the rpcrt4.dll used and put the old one in this place (now office 2007 will work with the old one).

Update 1: It’s a good one to install riched20 and riched30 to have a better look on fonts.
Update 2: 4j4x translate this post to indonesian, check here
Update 3: MS Project and MS Outlook doesn’t work (project claims to not being installed to current user, I think this is just a registry problem).
Update 4: MS Visio and Office updates works as well.
Update 5: Alain reports the .Net 1.1 asks for ie5 (this doesn’t occurs with me), but without the .net 1.1 the installation works.
Update 6: I don’t know why but Powerpoint doesn’t work to everyone.
Update 7: Portuguese version here

Thanks for all testing and reporting.

30 Comments so far

  1. 4j4x on April 10, 2008

    thanks… great post.. may i post it in my blog? I will translate it into Indonesian language.

  2. [...] Menginstall Office 2007 di linux dengan Wine Iseng-iseng buka tag surfer di wordpress, eh ada artikel menarik tentang cara menginstall Office 2007 di Linux dengan Wine. Source asli didapat dari sini [...]

  3. Alain on April 13, 2008

    Hi, I’m able to get up to the before last step but every time I try to run wine setup.exe I get errors then one of those M$ “Send error reports”. I’m a newbie to Linux so I might have done something wrong. I’m using ubuntu 7.10.

  4. Daniel de Oliveira on April 13, 2008

    I think you’re missing some point. I receive this error when I forgot some of the packages that winetricks install.

  5. Alain on April 13, 2008

    These are the last few lines before the setup gives me the error any help would be greatly appreciated:
    fixme:msxml:bsc_QueryInterface interface {6d5140c1-7436-11ce-8034-00aa006009fa} not implemented
    fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE
    fixme:msxml:bsc_QueryInterface interface {79eac9e4-baf9-11ce-8c82-00aa004ba90b} not implemented
    fixme:msxml:DllCanUnloadNow
    fixme:htmlhelp:HtmlHelpW HH case HH_UNINITIALIZE not handled.
    fixme:powrprof:DllMain (0×7e0b0000, 1, (nil)) not fully implemented
    fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11
    fixme:netapi32:NetGetJoinInformation Stub (null) 0×32f0bc 0×32f0b0
    fixme:advapi:CheckTokenMembership ((nil) 0×135320 0×32f09 8) stub!
    fixme:advapi:CheckTokenMembership ((nil) 0×135320 0×32f09 8) stub!
    fixme:powrprof:DllMain (0×7e0b0000, 0, (nil)) not fully implemented

  6. Daniel de Oliveira on April 13, 2008

    Verify this in winecfg, if in the “library” options:

    msxml3: (native, builtin)

  7. Alain on April 13, 2008

    Thanks for your help so far … I have msxml3: (native, builtin) and rpcrt4 :(native,builtin) and now instead of the ” Send error report” i get “setup cannot continue because a required file is either corrupted or not available…”

  8. Alain on April 13, 2008

    I’ve just noticed that when I go into the system32 folder of wine, the file msxml.dll isn’t there but rpcrt4.dll is there…Could that be where the mistake comes from? If so, how would I fix this?

  9. Alain on April 13, 2008

    I’ve just noticed that when I go into the system32 folder of wine, the file msxml.dll isn’t there but rpcrt4.dll is there…Could that be where the mistake comes from? If so, how would I fix this?

  10. Daniel de Oliveira on April 13, 2008

    Are you using the rpcrt4.dll from “rpcrt4.dll.so” from crossover-games, right?

  11. Alain on April 13, 2008

    Ya I renamed rpcrt4.dll.so to rpcrt4.dll from crossover-games then copied it to the wine system32 folder

  12. Daniel de Oliveira on April 13, 2008

    Try install again the packages with winetricks, maybe you miss some of them.

  13. Alain on April 13, 2008

    When I select these packages to install dotnet11, dotnet20, gdiplus, msxml3, msxml4, msxml6, vcrun2005sp1 and vcrun2008, I get a Install Microsoft .Net Framework 1.1 package message. I click ok but it says i need microsoft internet explorer 5.01… any idea how to get internet explorer 5.01?

  14. Daniel de Oliveira on April 13, 2008

    ie5?? o_O

    But I have this installed without any ie5 o_O

  15. Alain on April 13, 2008

    Did you have to install .Net Framework 1.1?

  16. Alain on April 13, 2008

    Thank you for you help. It finally installed. All I had to do was not to install dotnet11 and it worked! Again Thank you very much for your help.

  17. Daniel de Oliveira on April 13, 2008

    Yep.

    Oh wait.. My wine is 0.9.59. I remember the version that comes in 7.10 causes me a lot of problems, so after I upgrade my system to hardy, everything works..

  18. Daniel de Oliveira on April 13, 2008

    Oh Nice.

    Dependecies I put to install with winetricks is because office2007 needs.. but if works without the dotnet11, better than nothing. =)

  19. anopticon on April 16, 2008

    welldone! I am just displeased that powerpoint doesn’t work.. hovewer word and exel work perfectly!

  20. dax on May 8, 2008

    hi man, powerpoint works @ me
    http://img181.imageshack.us/img181/4351/20080509powerpointnj3.png

    nice work, i followed u step by step and works fine.

    made with wine-git 20080506-1 ;)

  21. [...] installing-microsoft-office-2007-using-wine [...]

  22. anopticon on May 22, 2008

    allright.. now powerpoint works very well, thanks wine rc1! XD

  23. hk7589 on May 23, 2008

    Im getting msiapicalfailure!

    Im using Hardy and Wine RC1

    GAH! please help! I followed this step by step and it didnt work for me. Heres how im setup.

    Dll Overrides

    gdiplus Native
    msxml3 Native,Builtin
    rpcrt4 Native

    I also noticed that i dont have a msxm3.dll in my system 32 folder. Could this be the problem?

    This is listed in the uninstall software in wine.
    I have Framework 2.0
    Office PowerPoint viewer 2003
    Microsoft Visual C++ 2005
    Microsoft Visual C++ 2008
    Microsoft XML parser
    MSXML 4.0 SP2
    MSXML 6.0 Parser

    Am i missing something.. this is driving me mad!
    Any help would be great..

  24. Menelkir on May 23, 2008

    I think this dll is essencial. Try installing the dependencies in winetricks again.

  25. hk7589 on May 23, 2008

    Well i have a Office Pro version that i got from school that i wanted to use but it wont work. However the student version trial that i downloaded last night installed with no problem. But the Office Pro Trial requires Microsoft Installer 3.1. Which I’m having trouble installing but at least I’m finally getting somewhere. I had the trial version up and running last night. By the way this is the best tutorial I’ve found. Good Work!

  26. vs123 on May 29, 2008

    Install went perfectly, still cant open Outlook though. “Cannot start Microsoft Outlook” … here is the debug:

    fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
    fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
    err:ole:CoCreateInstance apartment not initialised
    fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
    fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE
    fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
    fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
    fixme:advapi:RegisterTraceGuidsW 0×38ee62e8 0×442628 0×442630 14 0×442690 (null) (null) 0×442640

    Any ideas?

  27. Menelkir on May 29, 2008

    No idea, I just try to run outlook and project a lot of times and always get errors.

  28. Lars on June 7, 2008

    OneNote seems to me as not working which is a shame, as i use it a lot and now i have to use Virtualization :/

  29. [...] em Inglês: by ME Versão em Indonésio: by [...]

  30. Alan on July 4, 2008

    Hey! I’ve been following your guide, and everything’s fine till I get in

    Mount office cd with -o unhide option

    I’m kinda new in linux, so I don’t know how to do that… and if I insert the cd and double-click on SETUP.EXE I get the missing/corrupted files error… anyone could help? thanks a lot!!!

Leave a reply