Update
There is a brief update to this topic which is located at Install Microsoft Office 2007 in Ubuntu 8.10.
I have to admit that I absolutely love Office 12, OpenOffice just doesn’t compare! So, I needed to install Office 2007 into Ubuntu. If you do too, follow along with my handy guide!
Install Wine
First off, you need to install Wine. I won’t get into what it is, but you can get more information on the Official Wine site.
- Add the Wine repository’s key to your system’s list of trusted APT keys by entering the following into the Terminal (Applications->Accessories->Terminal):
sudo wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add - - Add the repository to your system’s list of APT sources, again in the Terminal:
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list - Update APT’s package information by running the following command (once again, in the Terminal):
sudo apt-get update - If you’re on your Ubuntu machine now, you can install Wine by clicking this link. If not, you can install by going to Applications->Add/Remove and searching for Wine.

Configure Wine
Now for the fun stuff!
- Open Wine. You can do so by clicking Applications->Wine->Configure Wine or by hitting ALT+F2 and entering:
winecfg - Under the Applications tab, set the Windows Version to Windows Vista.

- Under the Drivers tab, click Autodetect to assign a driver letter (D:\) to your CDROM drive (/media/cdrom0)

- Install winetricks by entering the following into the Terminal:
sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 - Navigate to following folder: ~/.wine/drive_c/windows/system32/
You can do this via your Home folder (once at your Home folder, hit CTRL+H to display hidden files). - We need to make a backup of a .dll file; rename rpcrt4.dll to rpcrt4.bak
- Download a new version of rpcrt4.dll and place it in the Wine system32 folder (from step 5)
- Open up the Wine Configuration tool again (ALT+F2, winecfg) and click the Libraries tab. In the New override for library field, enter in rpcrt4.dll and hit the Add button.

This will automatically install the following components:
Microsoft XML Parser

Microsoft .NET Framework 2.0

Microsoft PowerPoint Viewer 2003

Microsoft Visual C++ 2005 SP1

When wintricks is finished, it will let you know:

Install Microsoft Office 2007
Now that Wine is all set up, you can install Office 2007!
- Navigate to your CD-ROM drive and click setup.exe.
- Enter your product key
- Click the giant Install Now button (I noticed that the installation progress stays at 0% for a while, but your mileage may vary)!

If you click the Customize button, you can chose which components that you want to install. You can also enter your name, initials and company name. This information will be embedded into every document that you create, just like in the PC version.
Clean Up Wine Installation Settings
There are a couple of crucial cleanup and configuration steps remaining - hang in there, we’re all most done!
- Navigate back to Wine’s system32 folder (~/.wine/drive_c/windows/system32/)
- Delete the downloaded rpcrt4.dll.
- Rename rpcrt4.bak back to rpcrt4.dll.
- Open winecfg (ALT+F2, winecfg) and remove the rpct4 override we placed in the Libraries tab.
- Click the Applications tab and set the Windows Version to Windows XP.
You’re all done!
All of the Microsoft Office applications should now have appeared in your application menu: Applications->Wine->Programs->Microsoft Office
Source
Some of the information used on this how-to was gathered from the WineHQ page for Office 2007.
Good instructions overall. I already had Wine installed, but found that once I followed the initial instructions for installing Wine, my installation was updated to the latest version.
I did find that, before being able to run the command
sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1
I had to run this command:
wget http://www.kegel.com/wine/winetricks
to get the script (found it at http://wiki.winehq.org/winetricks)
My install is still running, but I wanted to pass along those couple items.
This, as good as it may be, is much of a bad idea. I dont mean to say anything bad about this post, infact lots of people who use MS Office on Windows will probably need this to open the new file format. But if your not one of those people, I would not recommend doing this. Why? The reason is very simple, I need recommend anyone to install software unless it runs natively. Too many glitches and problems arise for the entire system. Also, the truth is, that MS Office has to be the very latest updated, because the first versions of 2007 didn’t even run on Windows for lots of people.
blackravenplace.net76.net
That’s a good point. After I installed Office, I noticed that there are a few issues - one’s that really prevent me from doing some of the things that I need to do. So, I guess that I’ll still be dual-booting
Well or you can use OpenOffice 3 developers edition. Although OpenOffice won’t render microsoft formats accurately yet, it is a good contender.
Parental Control in XPs last blog post..View system files (super hidden) in Explorer
Well written guide. It worked perfectly after running the following commands in terminal: “wget http://www.kegel.com/wine/winetricks” (as mentioned above) and “sudo apt-get install cabextract”.
The installation appeared to freeze up at about 60-70% completion, but I waited for around 10-15 minutes and it did end up completing itself.
All the programs open up fine, but there are a lot of issues. Firstly, typing is responsive, but switching between the tabs at the top of the screen (View, Insert, etc.) was a little slow. Also, the font that is used in the menus (like at the top of the screen) isn’t what it should be and there are some graphical issues in the menu that occur as a result of this. Finally, I also tried to open up a .docx file that usually opens up properly if opened when on Windows Vista. Under my WINE Office 2007 installation, the left edge of the document was clipped off so I was missing a lot of letters on the left edge of the page. The document, however, opened up with no issues under Open Office.
Although I haven’t tried it myself, I’m betting that running Office through a virtual machine would be a better option. For now, I’ll stick to dualbooting.
It’s been a couple of years since I tried linux, I was going to ask if Wine had improved sufficently to run MS applications reliably, but sadly it seems from reading the comments above it still has a little way to go. I am tempted to trial this on an old machine though so thankyou for the comprehensive instructions.
Andrew Reynoldss last blog post..A quick recap
If you’re not intent on using Office 2007, WINE runs Office XP and Office 2003 a lot better than it does 2007.
Very informative content.
Nice guide….the only thing i wanted in Linux….and now i got it….however there is one issue, I cannot get Powerpoint to work….
I did not install Office from a CD ROM but from a Portable USB HDD. The thing was, like mentioned above the way to get winetricks, i wasn’t able to install tht msxml3 code thing. So i just went ahead installing Office. it installed properly. Then i went through the comments and then installed winetricks and the .net2 and stuff. Everything went fine but the apps dint start. So i completed the third major step of the .dll file and now Word and Excel works fine but for some reason, PowerPoint doesnt work.
excellent post!
I’m using hardy 8.04 with a fresh wine install, I had to install these other packages to a) make sure the CAB files could be extracted and b) make the application font appear properly
$ apt-get install cabextractand also
$ sh winetricks corefontsExcellent post… I could always use some linux help. Thanks again that was awesome!
Microsoft 2007 file format is readable my openoffice and many others. Wine is not an emulator, the libraries run natively, so if you run a win app in wine on Linux it is native. How can you recommend something to someone if everything you say is in error?
Hi,
I have a MS office 2007 setup on my HDD. I dont have any media drive on my pc.
How can I install the office on my desktop then?
Please guide me.
Yes you can! Once you’ve reached the Install Microsoft Office 2007, just double click the installer from the folder on the hard drive.
Sounds like he meant he has Office 2007 “installed” on his hdd, but probably does not have access to a setup.exe - any ideas?
I think he’s saying that he can’t access his CD-Rom (/media), but has the installer on his hard drive…

I get that, Saman, but I think his word choice is ambiguous so I mentioned the alternative interpretation…anyhow…
Matt,
I appreciate the help! Though, since he “mac” hasn’t returned and is not subscribed to this post, the point is moot…
Thanks again!
Wow, what a great hack. Thank you for the info. But does it operate properly though on Linux?
this tutorial is good I’m sure apart from it didn’t work for me! The only microsoft program that even remotely opens is powerpoint but even then it freezes when it gets to the startup screen. All of the others just open well show up on the bottom bar and then just go again!
Can anyone help me
Tom (Compaq Presario c700 > Hardy Heron 8.04)
Tom,
I have read that some versions of Wine create problems. I’ve read that v.09 works the best…
Install works fine, and running Office 2007 works fine, but it won’t let me activate it when running in Wine. How can I get around this? It’s a legal copy, and I would like to activate it if possible.
Great guide! It worked fine for me.
this guide is good. it worked very well.
I’m having a bit of a problem, not sure if maybe someone can help me. I had to install from the install files downloaded from the office website - I have a key, but purchased only the key, not the disk. However, the install is split into two files - I’m guessing the second file has things like clip art, because I have none. The first install file worked just fine, and Office 2007 is running well. However, like I said, I have no clip art - and I can’t figure out how to download new ones from the site. The second install file won’t run properly. I keep getting this error:
Extraction Failed: Unable to find a volume for file extraction. Please verify that you have proper permissions.
Any ideas? I’m glad to have Office 2007; I love the features, and I can’t do the same things with OpenOffice (sometimes it doesn’t even open .doc files acurately!) - I love that it’s free and someone put a lot of work into it, but it just doesn’t work for what I need to do. However, I need cliparts - but I don’t have a clue where to go from here! Any suggestions? Anything at all would be much appreciated!
this worked perfectly for me. excel, word, and powerpoint (access fails.. didnt need it anyways) all work as expected. the fonts are a little quirky, and the clipart organizer is missing, otherwise excellent. i’m using ubuntu 8.04 hardy on a dell studio15 laptop - thanks
Man, thanks a lot! You could say also how to install winetriks, but thats ok.
Murio,
Check out Step 4:
Install winetricks by entering the following into the Terminal:
sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1To install winetricks, type “wget http://www.kegel.com/wine/winetricks” in terminal.
http://wiki.winehq.org/winetricks
interesting site it really learns me a lot.
thanks for the information i will apply that.
hey!
i finished the guide step by step and got the office 2k7 to work. but i cannot save or overwrite documents in word, excel, powerpoint. can anybody help me?
Thanks a lot, all works fine except MS Access. I continue looking for a solution to this problem.
Again, thanks
this dont work setup.exe keeps crashing when i open it
Hi,
First off, thanks a lot for the excellent guide.
I installed Word, Excel and Powerpoint.
Word works if I open it thrice.
Excel Works.
Powerpoint does not work.
this is the output that I get:
fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
fixme:heap:HeapSetInformation 0×110000 1 (nil) 0
Any help?
Thanks a lot!
I got it installed but i try to open Word or any other MS office program it wont open i see it on the taskbar then after a few seconds it goes away
I got installed, however I was not able to open Outlook!
I have just upgraded up from Open Office as well! The comments here really helped in a couple of hangups . . . but I am having the same Powerpoint problem as above, if anyone has any ideas, please post! However, powerpoint to me isn’t a big loss. I really like open office, but Mic Office is microsoft’s shining star to me at the moment.
For intrepid and hardy users, I installed office 2007 correctly just by updating to the newest version of wine using their repositories. Everything works without having to change anything else. Just run $wine setup.exe once you have wine updated.
Good luck!
Hi all
Has any one been able to install and run MS Visio 2007? I’m using OpenSuSe installing MS Office by this guide wasn’t problem but I’m still not able to install MS Visio 2007(same problem like installation Office by original .dll file) or run Visio which was installed under MS Vista but no luck too. I’ve read many forums but didn’t found way to run it. Can anybody help? Thx.
Hi, I installed the complete office 2007 suite in Ubuntu 8.04 and I was able to successfully run the following applications: Word, Power Point, Excel, Outlook and Publisher, as well as other apps from the complete suite. Access 2007 was not able to run. All was done on a test-machine just for that purpose. I wrote a very simple to follow guide on this as well. All is packed in a zip with the PDF document and the necessary files. I am looking for a place to upload the downloadable guide with the necessary files.
I get this error when i do your guide as said
err:ntdll:RtlpWaitForCriticalSection section 0x77c78bb0 "?" wait timed out in thread 0013, blocked by 0019, retrying (60 sec)Hi, i installed office without much problems, but i can’t open ms outlook! it stars but shows the mensage:
No se puede iniciar Microsoft office Outlook. no se puede abrir la ventana de otulook
in english is something like this:
can not start Microsoft office outlook, can not open otulook’s windows
help please.
ciao
All function but not outlook.
sergio
Wine states on their site that Wine does not have the necessary support to run Office 2007. This is a waste of time. You will not be able to work with Office 2007 in Wine on a Linux box. It will crash if you try to actually use it.
That’s what is odd about this, the tutorial works for some users and not others - also, the features that work for some aren’t working for others….
I’ve moved to using CrossOver Linux and have had no issues at all!
CrossOver Linux is Wine…
More accurately, Wine is a watered-down version of CrossOver Linux.
Last time I checked, Wine does not support Office 2007 but CrossOver Linux does.
Last time I checked CrossOver Linux is built directly on top of Wine and CrossOver Linux sales revenue directly supports further Wine development. (see http://www.codeweavers.com/products/support_wine/)
i follow the steps, then i run setup.exe. It starts to prepare some files but a few moments after a classic microsoft error occurs…
my offixe 2K7 edition is enterpise blue edition without cd key
PLZ help me!!!
Hey - one more thing Saman, “while you’re here” …
Have you actually had any luck seriously using Office 2007 in CrossOver? I mean really using it. Like, “I actually need to run Office 2007″ for the features that OpenOffice (et. al.) does not support. Personally, I have not. It installs fine, and runs fine for light-weight use (i.e., why not use Evolution/OO?) but Outlook via CrossOver refuses to connect to my Exchange Server 2007 to do real enterprise grade Office Outlook 2007 stuff - to add insult to injury it hangs when it tries. I fear 2007 is too new for easy linux support. But, there’s probably a better reason - for starters, I think my web install method does not play well with CrossOver (seems that one package does not extract properly when run from CrossOver’s install) - and what about any other crucial Win services that might be necessary to fully wield Outlook 2007 on any platform - any ideas? Or is it just me?
Cheers,
Matt
Matt,
Personally, I have not had real issues while using Office 2007 with CrossOver Linux Professional. That being said, I don’t use Outlook (or connect to an Exchange server). Other then that, Word, Excel and PowerPoint are all working without issues. I am using them for some schoolwork, though, I have been spending more time in Windows (for Dreamweaver)and have stayed booted there to do “Office” work….
Every time i goto save in publisher it crashes
anyone had this problem and know how to fix it? im sure i dont everything properly but maybe I stuffed up somewhere