09 April 2008

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.

42 comments:

  1. 4j4x9.4.08

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

    ReplyDelete
  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 [...]

    ReplyDelete
  3. Alain13.4.08

    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.

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

    ReplyDelete
  5. Alain13.4.08

    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 (0x7e0b0000, 1, (nil)) not fully implemented
    fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11
    fixme:netapi32:NetGetJoinInformation Stub (null) 0x32f0bc 0x32f0b0
    fixme:advapi:CheckTokenMembership ((nil) 0x135320 0x32f098) stub!
    fixme:advapi:CheckTokenMembership ((nil) 0x135320 0x32f098) stub!
    fixme:powrprof:DllMain (0x7e0b0000, 0, (nil)) not fully implemented

    ReplyDelete
  6. Verify this in winecfg, if in the "library" options:

    msxml3: (native, builtin)

    ReplyDelete
  7. Alain13.4.08

    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..."

    ReplyDelete
  8. Alain13.4.08

    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?

    ReplyDelete
  9. Alain13.4.08

    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?

    ReplyDelete
  10. Are you using the rpcrt4.dll from "rpcrt4.dll.so" from crossover-games, right?

    ReplyDelete
  11. Alain13.4.08

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

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

    ReplyDelete
  13. ie5?? o_O

    But I have this installed without any ie5 o_O

    ReplyDelete
  14. Alain13.4.08

    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?

    ReplyDelete
  15. Alain13.4.08

    Did you have to install .Net Framework 1.1?

    ReplyDelete
  16. Alain13.4.08

    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.

    ReplyDelete
  17. 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..

    ReplyDelete
  18. Oh Nice.

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

    ReplyDelete
  19. anopticon16.4.08

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

    ReplyDelete
  20. 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 ;)

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

    ReplyDelete
  22. anopticon22.5.08

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

    ReplyDelete
  23. hk758922.5.08

    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..

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

    ReplyDelete
  25. hk758923.5.08

    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!

    ReplyDelete
  26. vs12329.5.08

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

    fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
    fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
    err:ole:CoCreateInstance apartment not initialised
    fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
    fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE
    fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
    fixme:heap:HeapSetInformation 0x110000 1 (nil) 0
    fixme:advapi:RegisterTraceGuidsW 0x38ee62e8 0x442628 0x442630 14 0x442690 (null) (null) 0x442640

    Any ideas?

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

    ReplyDelete
  28. Lars7.6.08

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

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

    ReplyDelete
  30. Alan4.7.08

    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!!!

    ReplyDelete
  31. sandesh4.2.09

    power point fail to load run in safe mode also failed waht to do anyone please help

    ReplyDelete
  32. Arrta18.2.09

    Doesn't work.
    Installer crashes.

    ReplyDelete
  33. i forgot to mention im also trying to install enterprise edition via this method

    ReplyDelete
  34. all i get is

    fixme:xrender:X11drv_alphablend not a dibsection

    it keeps displaying and the installer doesnt do anyting else

    ReplyDelete
  35. First of all thank you very much Daniel for this great guide.
    I'm really glad to have founf this.


    Next is something that might help someone.

    It worked just fine in Gentoo.
    A couple of things to keep on mind.
    - I installed crossover-game as user not as root
    - I also installed winetricks as a user as well
    - I installed winetricks one by one, just to keep track of what was going on. In this way

    user@Brass # sh /home/edo/Desktop/winetricks dotnet11

    - do the same for the rest !


    - Before mounting the office cd I created a folder
    user@Bras # mkdir /home/user/office


    - Then I mounted the cd in this way
    mount -o unhide /dev/cdrom /home/user/office


    - user is you user name
    - office is a folder you have to create as a user NOT AS ROOT
    - cdrom is your cdrive usually /cdrw or /cdrom
    - One last thing you have to open .doc files by clicking
    File > open > then selecting the file to open
    Other wise if you make word open all the .doc files by clicking on them it will seem as if all your documents were blank. perahps a bug ?

    ReplyDelete
  36. I forgot to mention that PowerPoint, word, excel all work.

    ReplyDelete
  37. Hi all. I have the worst memory ever so no matter who comes up to me - they're just, like, 'I can't believe you don't remember me!" I'm like, 'Oh Dad I'm sorry!'
    I am from Burma and bad know English, please tell me right I wrote the following sentence: "Vojvodinacarl runs a bigotry that has an diagonal cap.."

    With respect ;-), Ram.

    ReplyDelete
  38. I m trying to install office but dont have a CD i have a CD image, dont know how to use the unhide option together with loop.

    any help please ?

    ReplyDelete
  39. cbm6414.2.10

    mount -t iso9660 -o ro,loop,unhide

    ReplyDelete
  40. MrMintanet19.2.10

    This is why Linux sucks. You have to jump through this many f-ing hoops just to get a single program to install.

    I think I'll just stick to using RDP until I have a better comprehension of what's going on.

    ReplyDelete
  41. Menelkir19.2.10

    No, this is why companies that doesn't give a fuck to RFCs, ISOs or standards sucks. If lots of programs doesn't use standards and companies loves using software that doesn't use even an ISO form, linux isn't guilty about that.

    ReplyDelete
  42. WINE is a good API when you are installing MS Office on the cloud. It also helped me install email archiving for my network.

    ReplyDelete