How to install MS Office 2010 with wine.

Questions about Wine on Linux
Locked
erlogerik
Level 1
Level 1
Posts: 6
Joined: Sat Dec 01, 2012 9:55 am

How to install MS Office 2010 with wine.

Post by erlogerik »

Hello, I am new to this forum and have a question,
I have a 64 bit Linux Mint 13 computer and wine 1.4.1, I have been able to properly install software with wine and they work just fine, now I want to install the latest MS Office, I have the disc of it, how can I achieve this?
When I try to install it from the disk, the setup starts just fine and towards the end it says that it has encountered a problem, I click on details and it gives me this:

Code: Select all

Unhandled exception: 0xc06d007e in 32-bit code (0x7b839d82).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7b839d82 ESP:09f1d258 EBP:09f1d2bc EFLAGS:00000283(   - --  I S - - -C)
 EAX:7b826255 EBX:7b894ff4 ECX:09f1d2e0 EDX:09f1d278
 ESI:c06d007e EDI:00000000
Stack dump:
0x09f1d258:  09f1d330 00000004 00000000 c06d007e
0x09f1d268:  00000000 00000000 7b839d82 00000001
0x09f1d278:  09f1d2e0 7ffccc00 00de2428 00000000
0x09f1d288:  09f1d2a8 7b854185 7ffccc00 00000000
0x09f1d298:  00000000 00000000 7b85414b 7b894ff4
0x09f1d2a8:  09f1d2c8 7b8541bf 7b839d3a 00000000
000c: sel=0067 base=00000000 limit=00000000 16-bit --x
Backtrace:
=>0 0x7b839d82 in kernel32 (+0x29d82) (0x09f1d2bc)
  1 0x00dd93bb in msi3f6f.tmp (+0x493ba) (0x09f1d324)
  2 0x00dd78d8 in msi3f6f.tmp (+0x478d7) (0x09f1d564)
  3 0x00dd28cd in msi3f6f.tmp (+0x428cc) (0x09f1d7a0)
  4 0x00dacaf8 in msi3f6f.tmp (+0x1caf7) (0x09f1e69c)
  5 0x7e29435b CUSTOMPROC_wrapper+0xa() in msi (0x09f1e6a8)
  6 0x7e295f47 in msi (+0x35f46) (0x09f1e9e8)
  7 0x7e2961b8 in msi (+0x361b7) (0x09f1ea18)
  8 0x7bc71d90 call_thread_func_wrapper+0xb() in ntdll (0x09f1ea28)
  9 0x7bc7486d call_thread_func+0x7c() in ntdll (0x09f1eaf8)
  10 0x7bc71d6e RtlRaiseException+0x21() in ntdll (0x09f1eb18)
  11 0x7bc7a748 in ntdll (+0x6a747) (0x09f1f368)
  12 0xf7585d4c start_thread+0xcb() in libpthread.so.0 (0x09f1f468)
0x7b839d82: subl	$4,%esp
Modules:
Module	Address			Debug info	Name (152 modules)
PE	  840000-  86f000	Deferred        osetupui
PE	  bb0000-  bb7000	Deferred        msi3f93.tmp
PE	  bd0000-  be1000	Deferred        msi3f3f.tmp
PE	  d90000-  ded000	Export          msi3f6f.tmp
PE	  df0000-  e08000	Deferred        msi44f6.tmp
PE	 1040000- 1172000	Deferred        pidgenx
PE	 1330000- 133a000	Deferred        msi44fb.tmp
PE	 1340000- 136a000	Deferred        msi5295.tmp
PE	 15a0000- 15fb000	Deferred        msi499a.tmp
PE	 1600000- 161a000	Deferred        msi5751.tmp
PE	 a080000- a0bb000	Deferred        msi56a7.tmp
PE	 a0c0000- a0e2000	Deferred        msid067.tmp
PE	 a230000- a2c3000	Deferred        msi527d.tmp
PE	10000000-10593000	Deferred        osetup
PE	2e000000-2e119000	Deferred        setup
PE	41110000-41155000	Deferred        msi3f5c.tmp
PE	504a0000-504c7000	Deferred        msi5271.tmp
PE	504d0000-504f0000	Deferred        msi4b9b.tmp
ELF	7b800000-7ba29000	Dwarf           kernel32<elf>
  \-PE	7b810000-7ba29000	\               kernel32
ELF	7bc00000-7bcc3000	Dwarf           ntdll<elf>
  \-PE	7bc10000-7bcc3000	\               ntdll
ELF	7bf00000-7bf04000	Deferred        <wine-loader>
ELF	7c19b000-7c1b6000	Deferred        spoolss<elf>
  \-PE	7c1a0000-7c1b6000	\               spoolss
ELF	7c1b6000-7c1ff000	Deferred        libdbus-1.so.3
ELF	7c304000-7c319000	Deferred        activeds<elf>
  \-PE	7c310000-7c319000	\               activeds
ELF	7c319000-7c331000	Deferred        libresolv.so.2
ELF	7c331000-7c400000	Deferred        libkrb5.so.3
ELF	7c40d000-7c435000	Deferred        libk5crypto.so.3
ELF	7c435000-7c473000	Deferred        libgssapi_krb5.so.2
ELF	7c473000-7c4c6000	Deferred        libcups.so.2
ELF	7c4c6000-7c500000	Deferred        winspool<elf>
  \-PE	7c4d0000-7c500000	\               winspool
ELF	7c708000-7c711000	Deferred        librt.so.1
ELF	7c711000-7c71a000	Deferred        libkrb5support.so.0
ELF	7c71a000-7c72c000	Deferred        libavahi-client.so.3
ELF	7c72c000-7c7b9000	Deferred        msvcrt<elf>
  \-PE	7c740000-7c7b9000	\               msvcrt
ELF	7c7b9000-7c7f5000	Deferred        libxslt.so.1
ELF	7d78b000-7d799000	Deferred        libavahi-common.so.3
ELF	7d799000-7d7b7000	Deferred        libgcc_s.so.1
ELF	7d7b7000-7d904000	Deferred        libxml2.so.2
ELF	7d904000-7d99a000	Deferred        msxml3<elf>
  \-PE	7d910000-7d99a000	\               msxml3
ELF	7d99a000-7d9c8000	Deferred        msxml6<elf>
  \-PE	7d9a0000-7d9c8000	\               msxml6
ELF	7da07000-7da28000	Deferred        localspl<elf>
  \-PE	7da10000-7da28000	\               localspl
ELF	7da28000-7da80000	Deferred        riched20<elf>
  \-PE	7da30000-7da80000	\               riched20
ELF	7da80000-7dab0000	Deferred        hhctrl<elf>
  \-PE	7da90000-7dab0000	\               hhctrl
ELF	7dab0000-7dad2000	Deferred        hlink<elf>
  \-PE	7dac0000-7dad2000	\               hlink
ELF	7dad2000-7daf2000	Deferred        oleacc<elf>
  \-PE	7dae0000-7daf2000	\               oleacc
ELF	7daf2000-7db30000	Deferred        rsaenh<elf>
  \-PE	7db00000-7db30000	\               rsaenh
ELF	7db30000-7db4a000	Deferred        imagehlp<elf>
  \-PE	7db40000-7db4a000	\               imagehlp
ELF	7db60000-7db94000	Deferred        uxtheme<elf>
  \-PE	7db70000-7db94000	\               uxtheme
ELF	7db94000-7db9a000	Deferred        libxfixes.so.3
ELF	7db9a000-7dba5000	Deferred        libxcursor.so.1
ELF	7dba5000-7dba9000	Deferred        libkeyutils.so.1
ELF	7dba9000-7dbae000	Deferred        libcom_err.so.2
ELF	7dbfc000-7dc26000	Deferred        libexpat.so.1
ELF	7dc26000-7dc5a000	Deferred        libfontconfig.so.1
ELF	7dc5a000-7dc6a000	Deferred        libxi.so.6
ELF	7dc6a000-7dc6e000	Deferred        libxcomposite.so.1
ELF	7dc6e000-7dc77000	Deferred        libxrandr.so.2
ELF	7dc77000-7dc81000	Deferred        libxrender.so.1
ELF	7dc81000-7dc87000	Deferred        libxxf86vm.so.1
ELF	7dc87000-7dc8b000	Deferred        libxinerama.so.1
ELF	7dc8b000-7dcad000	Deferred        imm32<elf>
  \-PE	7dc90000-7dcad000	\               imm32
ELF	7dcad000-7dcb4000	Deferred        libxdmcp.so.6
ELF	7dcb4000-7dcb8000	Deferred        libxau.so.6
ELF	7dcb8000-7dcd9000	Deferred        libxcb.so.1
ELF	7dcd9000-7dcdf000	Deferred        libuuid.so.1
ELF	7dcdf000-7dcf9000	Deferred        libice.so.6
ELF	7dcf9000-7de2d000	Deferred        libx11.so.6
ELF	7de2d000-7de3f000	Deferred        libxext.so.6
ELF	7de3f000-7de48000	Deferred        libsm.so.6
ELF	7de48000-7dedc000	Deferred        winex11<elf>
  \-PE	7de50000-7dedc000	\               winex11
ELF	7dedc000-7df76000	Deferred        libfreetype.so.6
ELF	7df76000-7df88000	Deferred        libp11-kit.so.0
ELF	7df88000-7e00d000	Deferred        libgcrypt.so.11
ELF	7e00d000-7e01f000	Deferred        libtasn1.so.3
ELF	7e01f000-7e0e3000	Deferred        libgnutls.so.26
ELF	7e106000-7e12c000	Deferred        mpr<elf>
  \-PE	7e110000-7e12c000	\               mpr
ELF	7e12c000-7e142000	Deferred        libz.so.1
ELF	7e145000-7e165000	Deferred        cabinet<elf>
  \-PE	7e150000-7e165000	\               cabinet
ELF	7e165000-7e1d4000	Deferred        wininet<elf>
  \-PE	7e170000-7e1d4000	\               wininet
ELF	7e1d4000-7e258000	Deferred        urlmon<elf>
  \-PE	7e1e0000-7e258000	\               urlmon
ELF	7e258000-7e33b000	Dwarf           msi<elf>
  \-PE	7e260000-7e33b000	\               msi
ELF	7e33b000-7e34f000	Deferred        psapi<elf>
  \-PE	7e340000-7e34f000	\               psapi
ELF	7e34f000-7e3ad000	Deferred        dbghelp<elf>
  \-PE	7e360000-7e3ad000	\               dbghelp
ELF	7e3ad000-7e467000	Deferred        crypt32<elf>
  \-PE	7e3c0000-7e467000	\               crypt32
ELF	7e467000-7e49a000	Deferred        wintrust<elf>
  \-PE	7e470000-7e49a000	\               wintrust
ELF	7e49a000-7e593000	Deferred        comctl32<elf>
  \-PE	7e4a0000-7e593000	\               comctl32
ELF	7e593000-7e5fd000	Deferred        shlwapi<elf>
  \-PE	7e5a0000-7e5fd000	\               shlwapi
ELF	7e5fd000-7e810000	Deferred        shell32<elf>
  \-PE	7e610000-7e810000	\               shell32
ELF	7e810000-7e902000	Deferred        oleaut32<elf>
  \-PE	7e830000-7e902000	\               oleaut32
ELF	7e902000-7e9bf000	Deferred        gdi32<elf>
  \-PE	7e910000-7e9bf000	\               gdi32
ELF	7e9bf000-7eaff000	Deferred        user32<elf>
  \-PE	7e9d0000-7eaff000	\               user32
ELF	7eaff000-7ec07000	Deferred        ole32<elf>
  \-PE	7eb20000-7ec07000	\               ole32
ELF	7ec07000-7ec7d000	Deferred        rpcrt4<elf>
  \-PE	7ec10000-7ec7d000	\               rpcrt4
ELF	7ec7d000-7ecaf000	Deferred        ws2_32<elf>
  \-PE	7ec80000-7ecaf000	\               ws2_32
ELF	7ecaf000-7ed11000	Deferred        advapi32<elf>
  \-PE	7ecc0000-7ed11000	\               advapi32
ELF	7ed11000-7ed33000	Deferred        iphlpapi<elf>
  \-PE	7ed20000-7ed33000	\               iphlpapi
ELF	7ed33000-7ed5e000	Deferred        netapi32<elf>
  \-PE	7ed40000-7ed5e000	\               netapi32
ELF	7ed5e000-7ed8a000	Deferred        secur32<elf>
  \-PE	7ed60000-7ed8a000	\               secur32
ELF	7ed8a000-7ed97000	Deferred        libnss_files.so.2
ELF	7ed97000-7edb1000	Deferred        libnsl.so.1
ELF	7efb1000-7efdd000	Deferred        libm.so.6
ELF	7efe7000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f73c2000-f73ce000	Deferred        libnss_nis.so.2
ELF	f73cf000-f73d4000	Deferred        libdl.so.2
ELF	f73d4000-f757e000	Dwarf           libc.so.6
ELF	f757f000-f759a000	Dwarf           libpthread.so.0
ELF	f759b000-f75a0000	Deferred        libgpg-error.so.0
ELF	f75b3000-f75bc000	Deferred        libnss_compat.so.2
ELF	f75bd000-f76ff000	Dwarf           libwine.so.1
ELF	f7701000-f7723000	Deferred        ld-linux.so.2
ELF	f7723000-f7724000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
	00000081    0
	00000080    0
	0000007e    0
	00000023    0
	0000001a    0
	00000010    0
	0000000f    0
00000014 explorer.exe
	00000015    0
00000017 winedevice.exe
	0000001e    0
	0000001d    0
	00000019    0
	00000018    0
00000020 plugplay.exe
	00000025    0
	00000022    0
	00000021    0
00000028 (D) D:\x86\setup.exe
	00000083    0 <==
	00000030    0
	00000029    0
00000039 ose00000.exe
	00000041    0
	00000067    0
	00000065    0
	00000044    0
	00000043    0
	0000003b    0
	0000003a    0
System information:
    Wine build: wine-1.4.1
    Platform: i386 (WOW64)
    Host system: Linux
    Host version: 3.2.0-23-generic
Thanks
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

Delete your wineprefix and reinstall following the howto in the AppDB: http://appdb.winehq.org/objectManager.p ... &iId=17336. Pay particular attention to the part about creating a 32 bit wineprefix.
erlogerik
Level 1
Level 1
Posts: 6
Joined: Sat Dec 01, 2012 9:55 am

Re: How to install MS Office 2010 with wine.

Post by erlogerik »

dimesio wrote:Delete your wineprefix and reinstall following the howto in the AppDB: http://appdb.winehq.org/objectManager.p ... &iId=17336. Pay particular attention to the part about creating a 32 bit wineprefix.
Do I delete all data and applications in the wineprefix?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

Deleting the wineprefix will delete everything in it. If you have something in it you want to save, create a separate wineprefix for Office and install to that. http://wiki.winehq.org/FAQ#wineprefix
erlogerik
Level 1
Level 1
Posts: 6
Joined: Sat Dec 01, 2012 9:55 am

Re: How to install MS Office 2010 with wine.

Post by erlogerik »

dimesio wrote:Deleting the wineprefix will delete everything in it. If you have something in it you want to save, create a separate wineprefix for Office and install to that. http://wiki.winehq.org/FAQ#wineprefix
The command specified

Code: Select all

export WINEPREFIX=~/.wine-new wine winecfg
does nothing when I run it in the terminal.
Defiantone
Level 2
Level 2
Posts: 17
Joined: Fri Nov 16, 2012 3:40 pm

Re: How to install MS Office 2010 with wine.

Post by Defiantone »

Use OpenOffice in Linux...Why would want to use that MS Crap anyway.
I found that OpenOffice works better

Not unless you really need it for testing or something like that ...then just ignore this post.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

erlogerik wrote:The command specified

Code: Select all

export WINEPREFIX=~/.wine-new wine winecfg
does nothing when I run it in the terminal.
That should be:

Code: Select all

WINEPREFIX=~/.wine-new wine winecfg
erlogerik
Level 1
Level 1
Posts: 6
Joined: Sat Dec 01, 2012 9:55 am

Re: How to install MS Office 2010 with wine.

Post by erlogerik »

fixed that, and it did it correctly, now I can't even run the setup from the disk :/
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

Post terminal output, including the command used to run it.
erlogerik
Level 1
Level 1
Posts: 6
Joined: Sat Dec 01, 2012 9:55 am

Re: How to install MS Office 2010 with wine.

Post by erlogerik »

dimesio wrote:Post terminal output, including the command used to run it.
I didn't use the terminal, I just right clicked the setup in the disk and clicked run with wine.

Here is a screen of what it says (though, it doesn't say much):
Image
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

Right-clicking will just use the default wineprefix, which is going to fail because it is a 64 bit wineprefix. You have to run the installer from a terminal and specify the new wineprefix you created.

Also, looking back over this thread I suspect you didn't create a 32 bit wineprefix. Delete the one you created and recreate it with:

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine-new winecfg
After that, run the installer with:

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine-new wine /path/to/setup.exe
(use the actual path to setup.exe)

If that doesn't work, post terminal output, including the command used to run it. http://wiki.winehq.org/FAQ#get_log
erlogerik
Level 1
Level 1
Posts: 6
Joined: Sat Dec 01, 2012 9:55 am

Re: How to install MS Office 2010 with wine.

Post by erlogerik »

Microsoft Office Professional Plus 2010 Trial encountered an error during the setup
1: 25541 2: -2147024786 3:
c:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config

Code: Select all

erik@erik-HP-Pavilion-dm4-Notebook-PC ~ $ WINEARCH=win32 WINEPREFIX=~/.wine-new winecfg
wine: created the configuration directory '/home/erik/.wine-new'
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:iphlpapi:NotifyAddrChange (Handle 0xebe8cc, overlapped 0xebe8b0): stub
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
wine: configuration in '/home/erik/.wine-new' has been updated.
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
erik@erik-HP-Pavilion-dm4-Notebook-PC ~ $ WINEARCH=win32 WINEPREFIX=~/.wine-new wine /media/OFFICE14/setup.exe
...
fixme:ole:NdrCorrelationInitialize (0x103d1b8, 0x103cdb8, 1024, 0x0): stub
fixme:ole:NdrCorrelationInitialize (0x103d198, 0x103cd98, 1024, 0x0): stub
fixme:ole:NdrCorrelationInitialize (0x103d178, 0x103cd78, 1024, 0x0): stub
fixme:rpc:handle_bind_error unexpected status value 1765
err:rpc:RpcAssoc_BindConnection rejected bind for reason 0
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

erlogerik wrote:Microsoft Office Professional Plus 2010 Trial encountered an error during the setup
1: 25541 2: -2147024786 3:
c:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
That was fixed in 1.5.6. Normally I'd tell you to upgrade to the latest development release, but there's a regression in 1.5.18 that affects the Office 2010 installer (bugs 32327 and 32360). You could upgrade to 1.5.17, wait until 1.5.19 comes out, or follow the howto in the AppDB for workarounds for Wine versions without wine-mono if you want to stick with 1.4.x.
ShawnD
Newbie
Newbie
Posts: 1
Joined: Wed Dec 04, 2013 12:17 pm

Re: How to install MS Office 2010 with wine.

Post by ShawnD »

dimesio wrote: After that, run the installer with:

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.wine-new wine /path/to/setup.exe
(use the actual path to setup.exe)

If that doesn't work, post terminal output, including the command used to run it. http://wiki.winehq.org/FAQ#get_log
Thank you! Giving this thread a bump because this actually worked. Most of the guides explaining how to install Office in wine are terrible, and it all comes down to this one line.

Start to finish process to get Office installed. Some steps may be redundant because I'm not entirely sure what each step does:
1. Type winecfg in a terminal. This opens the wine config.
2. Select the Libraries tab.
3. Add the override riched20. This allows the Office installer to start without error.
4. Type WINEPREFIX='/home/username/prefix32' WINEARCH='win32' wine 'wineboot' in a terminal, replacing username with your username.
5. Type WINEARCH=win32 WINEPREFIX=/home/username/prefix32 wine /path/to/setup.exe in a terminal, filling in your username and the path to the Office setup.exe
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install MS Office 2010 with wine.

Post by dimesio »

ShawnD wrote: Start to finish process to get Office installed. Some steps may be redundant because I'm not entirely sure what each step does:
1. Type winecfg in a terminal. This opens the wine config.
2. Select the Libraries tab.
3. Add the override riched20. This allows the Office installer to start without error.
4. Type WINEPREFIX='/home/username/prefix32' WINEARCH='win32' wine 'wineboot' in a terminal, replacing username with your username.
5. Type WINEARCH=win32 WINEPREFIX=/home/username/prefix32 wine /path/to/setup.exe in a terminal, filling in your username and the path to the Office setup.exe
Nope. What your sequence does is set an override for riched20 in the default wineprefix, then installs Office to a different wineprefix. The installer works anyway because it is not necessary to set the override for riched20 to run it--you set that AFTER installing, or Powerpoint won't work.
Locked