How can I get playonlinux to install Microsoft Office 2016. The options from the install menu only go up to 2013.
Is there a more recent version of PlayOnLinux (or indeed Wine) I can download to enable installation of MS Office 2016?
The steps I take are:
- open PlayOnLinux
- click Install
- Click Office
returns a list of several software packages including MS Office 2007, 2010 and 2013 (but alas not 2016)
Best Answer
I will provide directions that worked for me for a manual (non-script) installation of Microsoft Office 2016 Professional Plus on Ubuntu 18.04 using PlayOnLinux (POL) v4.3.4 and Wine x86 v3.4. All the apps except OneNote opens, though I have only really used Word and Excel so I can't speak for the functionality of the other apps.
Firstly, try the default POL script and/or some of the other scripts here to check if they work because that would save you a lot of time and headache.
I tried the default script that comes with POL as well as some of the other scripts provided here but they became stuck (eg Office installation does not finish) or crashed at various points (eg "file not found" error). The below manual process essentially replicates those scripts and the advantage of this manual process is that you can see exactly where your specific setup might be encountering problems.
Parts of these instructions are based on GlasierXplor's POL forum post as well as other answers here.
Preparations
Dependency installation: According to POL's website,
wine:i386
needs to be installed. If you try toapt-get install wine:i386
, it will fail because it is tied to 2 packages. On top ofwine:i386
, you will needsmbclient
andwinbind
for Office to start.Note: DO NOT use
--no-install-recommends
to installwine-stable
, as it will cause the Office installation to always crash due to some missing dependencies (didn't manage to pinpoint which packages).sudo apt-get update
sudo apt-get install wine-stable:i386 smbclient winbind
smbclient -V #Confirms that smbclient is installed
winbindd -V #Confirms that winbind is installed
Optional: Update POL to the latest version. This is because at one point POL gave an error indicating an update is needed and this error disappeared once I upgraded to POL v4.3.4. Here are the Ubuntu 18.04 (Bionic) instructions:
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_bionic.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux
Optional: download the Office 2016 installation file if you don't already have it or have a CD. You can download it from MS using one of the below options. I assume you have downloaded the Office 2016 Pro Plus version in the rest of this answer.
Optional: Install winetricks and mono. I received various errors relating to winetricks and mono from the scripts I tried previously so I had already installed these by the time I tried the manual installation. It is uncertain whether installing these made any difference so you could try the manual installation steps below first and then come back to this step if you encounter errors.
sudo apt-get install winetricks
winetricks dotnet45
Optional: Remove previous unsuccessful installation of Office 2016 on POL. If your tried installing using the scripts, there may be POL Virtual Drives with empty or partial installations. You may want to remove these drives before trying the below installation process.
Optional: Restart the computer just to be extra careful.
Note In any situation where you use a multiple displays with your computer, Office will not display correctly if:-
Office will start with a maximum size restricted to the top left of your primary display, and will refuse to respect the size of your desktop, until you connect the "correct" number of displays again. In which case Office will act normally (subjective) again.
E.g.
Setup POL
To consider: Wine x86 version 4.15 is more stable than 3.4 (below), or 3.14 (GlasierXplor's post on POL Forum). I.e. it does not crash randomly. The caveat is that there will be some issues with images, but should work fine 97~% of the time. Wine 4.15 requires the POL 4.3.4 update from the official POL repositories to be installed.
Wine x86 version 3.4 was used for this installation so check if it is installed by starting POL and then selecting
Tools
->Manage Wine Versions
.If Wine x86 version 3.4 does not appear under "Installed Wine versions", then select it from the "Available Wine versions" window and click on the
>
in the middle to install it. Once installed, close and exit to the main POL menu.In POL, select
Configure
to enter the configuration screen and then clickNew
in the bottom left to start the Virtual drive creator.Select 32 bits windows installation and press
Next
.Select Wine version 3.4 and press
Next
.Give the virtual drive a name (eg
Office2016pp
) and pressNext
to start the creation. Select to install Mono if POL asks.Once the virtual drive creation is complete, you should be back in the main POL configuration screen. Ensure the newly created drive (eg
Office2016pp
) is selected on the left window.Click on the Install components tab at the top. Then scroll down to select
msxml6
and clickInstall
.Repeat above step to install component
riched20
.Select the
Wine
tab in the POL Configuration screen and then click onConfigure Wine
.Once the Wine Configuration screen appears, click on the
Libraries
tab. Click Edit to change both msxml6 and riched20 to (native, builtin).In the Wine Configuration screen, click on the
Applications
tab and ensure thatWindows 7
is selected as the Windows version. Exit to the POL configuration screen.Select the
Wine
tab in the POL Configuration screen and then click onRegistry Editor
to open the Registry Editor.Select to
HKEY_CURRENT_USER
->Software
->Wine
andClick
Edit
->New
->Key
and name this keyDirect2D
.Select
Direct2D
and thenEdit
->New
->DWORD Value
namedmax_version_factory
with a value of0
.Install Office
Insert installation disk or mount the Office 2016 installation image file (eg
ProPlusRetail.img
). Double-clicking the image file on Nautilus should automatically mount it.In the Pol configuration screen, click on the
Miscellaneous
tab and click onRun a .exe file in this virtual drive
to open the Select a file menu.In the Select a file menu, select
Setup32.exe
in the Office 2016 drive (eg in theOffice
folder) to start the Office 2016 installation process. Hopefully it will install properly and exit without any errors.Once the installation is complete, close the POL configuration screen to exit to the main POL screen.
In the main POL screen, click
Tools
->Close all PlayOnLinux software
.In the main POL screen, click
Configure
to go to the POL configuration menu and selectOffice2016pp
(or whatever name you used) drive in the left hand.In the Pol configuration screen, click on the
Miscellaneous
tab and click onOpen virtual drive's directory
to open a new Nautilus ("Files") window.Using Nautilus go to folder
drive_c/Program Files/Common Files/Microsoft Shared/ClickToRun/
and copyAppvIsvSubsystems32.dll
andC2R32.dll
todrive_c/Program Files/Microsoft Office/root/Office16/
.Close Nautilus and go back to the POL configuration screen.
In the Pol configuration screen, click on the
General
tab and click onMake a new shortcut from this virtual drive
to start the POL Wizard in order to create links to the Office apps.You will need to select the executable for each office app and name the link. Note that some of these apps (eg OneNote) may not work at all.
WINWORD.EXE
and name the linkMicrosoft Word 2016
EXCEL.EXE
and name the linkMicrosoft Excel 2016
POWERPNT.EXE
and name the linkMicrosoft Powerpoint 2016
MSACCESS.EXE
and name the linkMicrosoft Access 2016
OUTLOOK.EXE
and name the linkMicrosoft Outlook 2016
ONENOTE.EXE
and name the linkMicrosoft OneNote 2016
I don't want to make another shortcut
to exit the wizard.Close the POL configuration screen to exit to the main POL screen. You should now see the apps you now linked to in the main POL screen.
Double click on MS Word inside POL to run it and you will be asked to activate Office. When complete, close Word and close POL.
You should also find new .desktop files for each off the office apps on your desktop. You can copy or move these files using Nautilus into
~/.local/share/applications
if you want them to appear in the Ubuntu dash and 'select application' menus.Post-Instalation
Optional: Insert categories into .desktop files. Edit each .desktop file and enter the Categories information to assist with searching. You can edit each file by right-clicking it ->
Open with other Application
->Text Editor
.Microsoft Word 2016.desktop
updateCategories=Office;WordProcessor;
Microsoft Excel 2016.desktop
updateCategories=Office;Spreadsheet;
Microsoft Powerpoint 2016.desktop
updateCategories=Office;Presentation;
Microsoft Access 2016
updateCategories=Office;Database;
Microsoft Outlook 2016
updateCategories=Network;Email;
Microsoft OneNote 2016
updateCategories=Office;WordProcessor;
Optional: Update POL's extension file. Start POL and click
Setting
under Actions on the left side of the screen. Then associate the extensions and programs as shown below.Optional: Set Office .desktop files as trusted to avoid the "Untrusted application launcher" warning. You only need to do this if it's causing problems.
~/.local/share/applications
and type:gio set "Microsoft Word 2016.desktop" "metadata::trusted" yes
gio set "Microsoft Excel 2016.desktop" "metadata::trusted" yes
gio set "Microsoft Powerpoint 2016.desktop" "metadata::trusted" yes
gio set "Microsoft Access 2016.desktop" "metadata::trusted" yes
gio set "Microsoft Outlook 2016.desktop" "metadata::trusted" yes
gio set "Microsoft OneNote 2016.desktop" "metadata::trusted" yes
Optional: Install Office 2016 updates. This is still a work in progress. Watch this post for updates.