office 2007 activation (old: Word 2007: file association)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
s710
Level 1
Level 1
Posts: 6
Joined: Tue Mar 10, 2009 5:28 am

office 2007 activation (old: Word 2007: file association)

Post by s710 »

hello,

i successfully installed office 2007 with wine, following this guide/script:
http://linuxsagas.wordpress.com/2009/03 ... on-ubuntu/

now, what i would like to have is my file manager (pcmanfm) open .doc files with wine/word 2007. therefore i made a script that looks like this:

Code: Select all

export WINEPREFIX=/PATH/TO/wine
wine /PATH/TO/WINWORD.EXE "$*"
and made the filemanager open doc files with this script. but somehow word wont open the selected file upon starting. running the script from command line, passing the (relative) filepath like this:

Code: Select all

runword share/File\ name\,\with\,\ spaces\ and stuff.doc
works without problems; word 2007 comes up and opens the file.

I think the problem has to do something with spaces and commas in the filename. Someone knows how to solve this problem?
my wine version is 1.1.16 on ubuntu intrepid (32bit).

[edit] changed topic
Last edited by s710 on Tue Mar 17, 2009 6:48 am, edited 1 time in total.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Word 2007: file association

Post by dimesio »

s710 wrote:hello,

i successfully installed office 2007 with wine, following this guide/script:
http://linuxsagas.wordpress.com/2009/03 ... on-ubuntu/

now, what i would like to have is my file manager (pcmanfm) open .doc files with wine/word 2007. therefore i made a script that looks like this:

Code: Select all

export WINEPREFIX=/PATH/TO/wine
wine /PATH/TO/WINWORD.EXE "$*"
and made the filemanager open doc files with this script. but somehow word wont open the selected file upon starting. running the script from command line, passing the (relative) filepath like this:

Code: Select all

runword share/File\ name\,\with\,\ spaces\ and stuff.doc
works without problems; word 2007 comes up and opens the file.

I think the problem has to do something with spaces and commas in the filename. Someone knows how to solve this problem?
my wine version is 1.1.16 on ubuntu intrepid (32bit).
http://bugs.winehq.org/show_bug.cgi?id=12380
s710
Level 1
Level 1
Posts: 6
Joined: Tue Mar 10, 2009 5:28 am

Post by s710 »

ty, works fine now :)
s710
Level 1
Level 1
Posts: 6
Joined: Tue Mar 10, 2009 5:28 am

Post by s710 »

Sorry for bumping again, but it seems like i have another problem with word. i previously installed word 2007 without following the above mentioned guide by just running the installer (clean wine 1.1.16 installation, no other windows packages installed). after the setup was through, i noticed that, while word 2007 itself was working, all of the fonts were mixed up. so i completely uninstalled everything and installed again as described in the guide.

now, the problem is, word looks pretty now, and so far "works". however i cannot edit any file, even if i just open a blank new file. all of the controls are disabled, and i cannot write any text. all i can do is open existing documents and probably print it. why is that? how can i fix this?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

s710 wrote:Sorry for bumping again, but it seems like i have another problem with word. i previously installed word 2007 without following the above mentioned guide by just running the installer (clean wine 1.1.16 installation, no other windows packages installed). after the setup was through, i noticed that, while word 2007 itself was working, all of the fonts were mixed up. so i completely uninstalled everything and installed again as described in the guide.

now, the problem is, word looks pretty now, and so far "works". however i cannot edit any file, even if i just open a blank new file. all of the controls are disabled, and i cannot write any text. all i can do is open existing documents and probably print it. why is that? how can i fix this?

The only guide to installing Office 2007 that is supported here is the one in the AppDB. No overrides are needed to install in current Wine. Reinstall to a clean wineprefix following the instructions in http://appdb.winehq.org/objectManager.p ... n&iId=4992

I'm not sure what you mean by "the fonts were all mixed up," but if you have a problem with fonts in the clean install, try installing allfonts with winetricks.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Word 2007: file association

Post by austin987 »

On Thu, Mar 12, 2009 at 6:59 AM, s710 <[email protected]> wrote:
now, the problem is, word looks pretty now, and so far "works". however i cannot edit any file, even if i just open a blank new file. all of the controls are disabled, and i cannot write any text. all i can do is open existing documents and probably print it. why is that? how can i fix this?
Sounds like you need to activate it.

--
-Austin
s710
Level 1
Level 1
Posts: 6
Joined: Tue Mar 10, 2009 5:28 am

Re: Word 2007: file association

Post by s710 »

austin987 wrote:On Thu, Mar 12, 2009 at 6:59 AM, s710 <[email protected]> wrote:
now, the problem is, word looks pretty now, and so far "works". however i cannot edit any file, even if i just open a blank new file. all of the controls are disabled, and i cannot write any text. all i can do is open existing documents and probably print it. why is that? how can i fix this?
Sounds like you need to activate it.

--
-Austin
Yeah, appearently thats what i have to do. I tried to activate it, but unfortunately nothing happens when i click the activation button in the word options page. maybe i have to reinstall again and try, without using the guide mentioned before.
dimesio wrote:
s710 wrote:Sorry for bumping again, but it seems like i have another problem with word. i previously installed word 2007 without following the above mentioned guide by just running the installer (clean wine 1.1.16 installation, no other windows packages installed). after the setup was through, i noticed that, while word 2007 itself was working, all of the fonts were mixed up. so i completely uninstalled everything and installed again as described in the guide.

now, the problem is, word looks pretty now, and so far "works". however i cannot edit any file, even if i just open a blank new file. all of the controls are disabled, and i cannot write any text. all i can do is open existing documents and probably print it. why is that? how can i fix this?

The only guide to installing Office 2007 that is supported here is the one in the AppDB. No overrides are needed to install in current Wine. Reinstall to a clean wineprefix following the instructions in http://appdb.winehq.org/objectManager.p ... n&iId=4992

I'm not sure what you mean by "the fonts were all mixed up," but if you have a problem with fonts in the clean install, try installing allfonts with winetricks.
all of words menu fonts were italic, plus it wasnt the correct fonts. im neither familiar with wine nor winetricks, so i didnt know about the allfonts package. so probably i will have to reinstall as you said, and then install the allfonts package to fix fonts. hopefully activation will work then.
s710
Level 1
Level 1
Posts: 6
Joined: Tue Mar 10, 2009 5:28 am

Post by s710 »

So, i've been trying a few things to finally get office 2007 to work (activated, that is), but i was not successful. i wiped my current installation as well as removed ~/.wine/, and also upgraded to wine 1.1.17.
however, no matter what guide i follow (this or this one, or simply running the setup from clean wine installation), i fail to even install ms office 2007; setup crashes at 50% progress.

i then removed wine 1.1.17 (as well as ~/.wine/) and installed wine 1.1.16 again. this time, installing office without any dll replacing. setup completes, and i set riched20.dll and usp10.dll to "native". i can start word w/o problems. "winetricks allfonts" fixed the fonts problem mentioned earlier. but still, i can not activate the product. clicking the activation button on the word options page does nothing. i tried starting excel, but after excel loads an error message pops up stating "not enough memory (microsoft visual basic)", then excel freezes (i did run "winetricks msxml3 dotnet20 gdiplus vcrun2005sp1" after installation).

so right now i have no clue of how to get ms office activated. any help would be appreciated.

im running wine on ubuntu intrepid 32bit.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

s710 wrote:So, i've been trying a few things to finally get office 2007 to work (activated, that is), but i was not successful. i wiped my current installation as well as removed ~/.wine/, and also upgraded to wine 1.1.17.
however, no matter what guide i follow (this or this one, or simply running the setup from clean wine installation), i fail to even install ms office 2007; setup crashes at 50% progress.
There's a regression in 1.1.17 that broke the Office 2003 installer; looks like it also broke Office 2007. I'm running a regression test now to confirm it's the same patch.
(i did run "winetricks msxml3 dotnet20 gdiplus vcrun2005sp1" after installation).
Why?

Delete or rename your ~/.wine and do a fresh install using 1.1.16. Do not set any overrrides other than riched20, and no winetricks other than allfonts. If you still can't activate, file a bug report.
s710
Level 1
Level 1
Posts: 6
Joined: Tue Mar 10, 2009 5:28 am

Post by s710 »

dimesio wrote:
(i did run "winetricks msxml3 dotnet20 gdiplus vcrun2005sp1" after installation).
Why?
Its mentioned in additional comments here: http://appdb.winehq.org/objectManager.p ... &iId=12812

Anyway, even w/o those packages, neither excel nor office activation will work. heres the console output when i hit the activation button:

Code: Select all

fixme:hook:IsWinEventHookInstalled (32773)-stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
err:ole:marshal_object object doesn't expose interface {e19c7100-9709-4db7-9373-e7b518b47086}, failing with error 0x80004002
err:ole:ClientIdentity_QueryMultipleInterfaces IRemUnknown_RemQueryInterface failed with error 0x80004002
fixme:ole:NdrCorrelationInitialize (0x4c9e7e8, 0x4c9e3e8, 1024, 0x0): stub
fixme:rpc:NdrStubCall2 new correlation description not implemented
fixme:system:SetProcessDPIAware stub!
fixme:htmlhelp:HtmlHelpW HH case HH_INITIALIZE not handled.
fixme:hook:IsWinEventHookInstalled (32778 (or 32770 or 32772 or 32774 etc pp))-stub!

(repeat the above x280)

fixme:msxml:DllCanUnloadNow 
fixme:htmlhelp:HtmlHelpW HH case HH_UNINITIALIZE not handled.
fixme:ole:NdrCorrelationFree (0x4c9e7e8): stub
fixme:hook:IsWinEventHookInstalled (32773)-stub!
fixme:reg:GetNativeSystemInfo (0x33f0b4) using GetSystemInfo()
fixme:powrprof:DllMain (0x7de70000, 1, (nil)) not fully implemented
fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11
fixme:netapi32:NetGetJoinInformation Stub (null) 0x33f0dc 0x33f0d0
fixme:advapi:CheckTokenMembership ((nil) 0x143038 0x33f0b8) stub!
fixme:advapi:CheckTokenMembership ((nil) 0x143038 0x33f0b8) stub!
fixme:powrprof:DllMain (0x7de70000, 0, (nil)) not fully implemented
fixme:hook:IsWinEventHookInstalled (32773)-stub!
fixme:hook:IsWinEventHookInstalled (32773)-stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
fixme:xrender:X11DRV_AlphaBlend Ignoring SourceConstantAlpha 176 for AC_SRC_ALPHA
fixme:xrender:X11DRV_AlphaBlend Ignoring SourceConstantAlpha 176 for AC_SRC_ALPHA
fixme:hook:IsWinEventHookInstalled (32778)-stub!
fixme:hook:IsWinEventHookInstalled (32778)-stub!
err:ole:StdMarshalImpl_ReleaseMarshalData could not map object ID to stub manager, oxid=1c0000001d, oid=9
err:ole:CoReleaseMarshalData IMarshal::ReleaseMarshalData failed with error 0x8001011d
fixme:hook:IsWinEventHookInstalled (32782 (or other numbers..))-stub!

(+another33 of those)

fixme:advapi:CheckTokenMembership ((nil) 0x15b4c8 0x32f810) stub!
fixme:advapi:CheckTokenMembership ((nil) 0x15b4c8 0x32f810) stub!
fixme:advapi:RegisterEventSourceW ((null),L"Microsoft Office 12 Sessions"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00001b58,(nil),0x0006,0x00000000,0x32f770,(nil)): stub
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

s710 wrote:
dimesio wrote:
(i did run "winetricks msxml3 dotnet20 gdiplus vcrun2005sp1" after installation).
Why?
Its mentioned in additional comments here: http://appdb.winehq.org/objectManager.p ... &iId=12812
That test is for 1.1.0. Overrides that were needed to install Office 2007 in old versions of Wine can cause problems in newer releases.

Install to a clean wineprefix using 1.1.16, and if the problems persist, file bug reports (a separate one for each problem).
Locked