[XWord] Can't create System log file

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[XWord] Can't create System log file

Paul Harris
Hi again,

I've been investigating problems with XWord.

One of the big problems on Vista and Windows7 is this line in Log.cs

      EventLog.CreateEventSource(eventSource, logName);

It can't create a system log at this point as that must be done as
Administrator... and normally its the User running XWord/Word at this point.

This sort of thing is supposed to be done at the point of installation, but
I don't have any idea of how to do this yet.

Does anyone know?  Can someone please explain how the XWord installer
works?  The "Setup XWord" project appears to be completely empty to my
untrained eye!

thanks
Paul
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Paul Harris
and one more question,

I'm hacking this in a bzr repository (which should be able to write back to
the svn if required).

I can submit a set of patches against XOffice once I've ironed out the bugs
that are show-stoppers for me.

Who do I talk to about that sort of thing?

thanks
Paul
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Sergiu Dumitriu-2
On Fri, Dec 10, 2010 at 09:49, Paul Harris <[hidden email]> wrote:
> and one more question,
>
> I'm hacking this in a bzr repository (which should be able to write back to
> the svn if required).
>
> I can submit a set of patches against XOffice once I've ironed out the bugs
> that are show-stoppers for me.
>
> Who do I talk to about that sort of thing?

Patches should be uploaded to corresponding issues on jira.xwiki.org

--
http://purl.org/net/sergiu
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Florin Ciubotaru
In reply to this post by Paul Harris
Hi Paul,

I plan to spend a few days on XOffice later this month in order to bring it up to date with the latest XWiki versions. Please submit your patched to jira and I will apply them.

Thanks,
Florin Ciubotaru
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Florin Ciubotaru
In reply to this post by Paul Harris
On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris <[hidden email]> wrote:

> Hi again,
>
> I've been investigating problems with XWord.
>
> One of the big problems on Vista and Windows7 is this line in Log.cs
>
>      EventLog.CreateEventSource(eventSource, logName);
>
This is a know issue. IIRC I didn't have an optimal solution for it, but the
logger should fall back to writing to a file is it doesn't have the rights
to create a Windows log.

>
> It can't create a system log at this point as that must be done as
> Administrator... and normally its the User running XWord/Word at this
> point.


> This sort of thing is supposed to be done at the point of installation, but
> I don't have any idea of how to do this yet.
>
>

> Does anyone know?  Can someone please explain how the XWord installer
> works?  The "Setup XWord" project appears to be completely empty to my
> untrained eye!
>
Setup XWord was used on an outdated build of XOffice. The advantage of using
it was that it allowed custom setup actions(extra screens, custom code like
registering log groups, etc). The issue is that is not well integrated with
VSTO and even with proper code/assembly signing the add-in will fail to
start on some custom Windows and Office distributions.

The current installer is ClickOnce based and is bundled in the "XWord"
project, unfortunately it's harder to customize it.

I guess the only quick & healthy solution to this issue is to remove the
system logging.

Florin Ciubotaru

>
> thanks
> Paul
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Paul Harris
On 10 December 2010 20:30, Florin Ciubotaru <[hidden email]>wrote:

> On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris <[hidden email]> wrote:
>
> > Hi again,
> >
> > I've been investigating problems with XWord.
> >
> > One of the big problems on Vista and Windows7 is this line in Log.cs
> >
> >      EventLog.CreateEventSource(eventSource, logName);
> >
> This is a know issue. IIRC I didn't have an optimal solution for it, but
> the
> logger should fall back to writing to a file is it doesn't have the rights
> to create a Windows log.
>
> >
> > It can't create a system log at this point as that must be done as
> > Administrator... and normally its the User running XWord/Word at this
> > point.
>
>
> > This sort of thing is supposed to be done at the point of installation,
> but
> > I don't have any idea of how to do this yet.
> >
> >
>
> > Does anyone know?  Can someone please explain how the XWord installer
> > works?  The "Setup XWord" project appears to be completely empty to my
> > untrained eye!
> >
> Setup XWord was used on an outdated build of XOffice. The advantage of
> using
> it was that it allowed custom setup actions(extra screens, custom code like
> registering log groups, etc). The issue is that is not well integrated with
> VSTO and even with proper code/assembly signing the add-in will fail to
> start on some custom Windows and Office distributions.
>
> The current installer is ClickOnce based and is bundled in the "XWord"
> project, unfortunately it's harder to customize it.
>
> I guess the only quick & healthy solution to this issue is to remove the
> system logging.
>
> Florin Ciubotaru
>
>
I have patched a few things, including system logging - it now correctly
falls back to writing a file in a spot that it will be allowed to write to,
and if that is still not possible then it'll show a warning to the user
once.

What I'd like to know now is: where does the ClickOnce installer get built?
Where is the configuration for it?  And, were could i put some code to
create a system log?

I'm not familiar with C# etc so if you could just point me in the
potentially correct direction or tell me where the related projects/files
are, that would be appreciated.

thanks
Paul
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Florin Ciubotaru
Hi Paul,

Can you contribute your patches to jira.xwiki.org?
I'd like to make a release that supports newer XWiki versions. 

Thanks,
Florin Ciubotaru


On Sat, Dec 11, 2010 at 1:40 AM, Paul Harris [via XWiki] <[hidden email]> wrote:
On 10 December 2010 20:30, Florin Ciubotaru <[hidden email]>wrote:

> On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris <[hidden email]> wrote:
>
> > Hi again,
> >
> > I've been investigating problems with XWord.
> >
> > One of the big problems on Vista and Windows7 is this line in Log.cs
> >
> >      EventLog.CreateEventSource(eventSource, logName);
> >
> This is a know issue. IIRC I didn't have an optimal solution for it, but
> the
> logger should fall back to writing to a file is it doesn't have the rights
> to create a Windows log.
>
> >
> > It can't create a system log at this point as that must be done as
> > Administrator... and normally its the User running XWord/Word at this
> > point.
>
>
> > This sort of thing is supposed to be done at the point of installation,
> but
> > I don't have any idea of how to do this yet.
> >
> >
>
> > Does anyone know?  Can someone please explain how the XWord installer
> > works?  The "Setup XWord" project appears to be completely empty to my
> > untrained eye!
> >
> Setup XWord was used on an outdated build of XOffice. The advantage of
> using
> it was that it allowed custom setup actions(extra screens, custom code like
> registering log groups, etc). The issue is that is not well integrated with
> VSTO and even with proper code/assembly signing the add-in will fail to
> start on some custom Windows and Office distributions.
>
> The current installer is ClickOnce based and is bundled in the "XWord"
> project, unfortunately it's harder to customize it.
>
> I guess the only quick & healthy solution to this issue is to remove the
> system logging.
>
> Florin Ciubotaru
>
>
I have patched a few things, including system logging - it now correctly
falls back to writing a file in a spot that it will be allowed to write to,
and if that is still not possible then it'll show a warning to the user
once.

What I'd like to know now is: where does the ClickOnce installer get built?
Where is the configuration for it?  And, were could i put some code to
create a system log?

I'm not familiar with C# etc so if you could just point me in the
potentially correct direction or tell me where the related projects/files
are, that would be appreciated.

thanks
Paul
_______________________________________________
users mailing list
[hidden email]

View message @ http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5824995.html

To unsubscribe from [XWord] Can't create System log file, click here.

Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Paul Harris
There you go :)  3 new shiny patches

On 20 December 2010 19:49, Florin Ciubotaru <[hidden email]>wrote:

>
> Hi Paul,
>
> Can you contribute your patches to jira.xwiki.org?
> I'd like to make a release that supports newer XWiki versions.
>
> Thanks,
> Florin Ciubotaru
>
>
> On Sat, Dec 11, 2010 at 1:40 AM, Paul Harris [via XWiki] <
> [hidden email]<ml-node%[hidden email]>
> <ml-node%[hidden email]<ml-node%[hidden email]>
> >
> > wrote:
>
> > On 10 December 2010 20:30, Florin Ciubotaru <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5824995&i=0>>wrote:
> >
> >
> > > On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5824995&i=1>>
> > wrote:
> > >
> > > > Hi again,
> > > >
> > > > I've been investigating problems with XWord.
> > > >
> > > > One of the big problems on Vista and Windows7 is this line in Log.cs
> > > >
> > > >      EventLog.CreateEventSource(eventSource, logName);
> > > >
> > > This is a know issue. IIRC I didn't have an optimal solution for it,
> but
> > > the
> > > logger should fall back to writing to a file is it doesn't have the
> > rights
> > > to create a Windows log.
> > >
> > > >
> > > > It can't create a system log at this point as that must be done as
> > > > Administrator... and normally its the User running XWord/Word at this
> > > > point.
> > >
> > >
> > > > This sort of thing is supposed to be done at the point of
> installation,
> >
> > > but
> > > > I don't have any idea of how to do this yet.
> > > >
> > > >
> > >
> > > > Does anyone know?  Can someone please explain how the XWord installer
> > > > works?  The "Setup XWord" project appears to be completely empty to
> my
> > > > untrained eye!
> > > >
> > > Setup XWord was used on an outdated build of XOffice. The advantage of
> > > using
> > > it was that it allowed custom setup actions(extra screens, custom code
> > like
> > > registering log groups, etc). The issue is that is not well integrated
> > with
> > > VSTO and even with proper code/assembly signing the add-in will fail to
> > > start on some custom Windows and Office distributions.
> > >
> > > The current installer is ClickOnce based and is bundled in the "XWord"
> > > project, unfortunately it's harder to customize it.
> > >
> > > I guess the only quick & healthy solution to this issue is to remove
> the
> > > system logging.
> > >
> > > Florin Ciubotaru
> > >
> > >
> > I have patched a few things, including system logging - it now correctly
> > falls back to writing a file in a spot that it will be allowed to write
> to,
> >
> > and if that is still not possible then it'll show a warning to the user
> > once.
> >
> > What I'd like to know now is: where does the ClickOnce installer get
> built?
> >
> > Where is the configuration for it?  And, were could i put some code to
> > create a system log?
> >
> > I'm not familiar with C# etc so if you could just point me in the
> > potentially correct direction or tell me where the related projects/files
> > are, that would be appreciated.
> >
> > thanks
> > Paul
> > _______________________________________________
> > users mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5824995&i=2>
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
> > ------------------------------
> >  View message @
> >
> http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5824995.html
> >
> > To unsubscribe from [XWord] Can't create System log file, click here<
> >.
> >
> >
>
> --
> View this message in context:
>
http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5850729.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Florin Ciubotaru

On Mon, Dec 20, 2010 at 8:49 PM, Paul Harris [via XWiki] <[hidden email]> wrote:
There you go :)  3 new shiny patches
Thanks. Patches have been applied.
XOffice 1.1.2 will be released next week.

Florin Ciubotaru

On 20 December 2010 19:49, Florin Ciubotaru <[hidden email]>wrote:

>
> Hi Paul,
>
> Can you contribute your patches to jira.xwiki.org?
> I'd like to make a release that supports newer XWiki versions.
>
> Thanks,
> Florin Ciubotaru
>
>
> On Sat, Dec 11, 2010 at 1:40 AM, Paul Harris [via XWiki] <
> [hidden email]<[hidden email]>
> <[hidden email]<[hidden email]>
> >
> > wrote:
>
> > On 10 December 2010 20:30, Florin Ciubotaru <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5824995&i=0>>wrote:
> >
> >
> > > On Fri, Dec 10, 2010 at 10:44 AM, Paul Harris <[hidden email]<
> > wrote:

> > >
> > > > Hi again,
> > > >
> > > > I've been investigating problems with XWord.
> > > >
> > > > One of the big problems on Vista and Windows7 is this line in Log.cs
> > > >
> > > >      EventLog.CreateEventSource(eventSource, logName);
> > > >
> > > This is a know issue. IIRC I didn't have an optimal solution for it,
> but
> > > the
> > > logger should fall back to writing to a file is it doesn't have the
> > rights
> > > to create a Windows log.
> > >
> > > >
> > > > It can't create a system log at this point as that must be done as
> > > > Administrator... and normally its the User running XWord/Word at this
> > > > point.
> > >
> > >
> > > > This sort of thing is supposed to be done at the point of
> installation,
> >
> > > but
> > > > I don't have any idea of how to do this yet.
> > > >
> > > >
> > >
> > > > Does anyone know?  Can someone please explain how the XWord installer
> > > > works?  The "Setup XWord" project appears to be completely empty to
> my
> > > > untrained eye!
> > > >
> > > Setup XWord was used on an outdated build of XOffice. The advantage of
> > > using
> > > it was that it allowed custom setup actions(extra screens, custom code
> > like
> > > registering log groups, etc). The issue is that is not well integrated
> > with
> > > VSTO and even with proper code/assembly signing the add-in will fail to
> > > start on some custom Windows and Office distributions.
> > >
> > > The current installer is ClickOnce based and is bundled in the "XWord"
> > > project, unfortunately it's harder to customize it.
> > >
> > > I guess the only quick & healthy solution to this issue is to remove
> the
> > > system logging.
> > >
> > > Florin Ciubotaru
> > >
> > >
> > I have patched a few things, including system logging - it now correctly
> > falls back to writing a file in a spot that it will be allowed to write
> to,
> >
> > and if that is still not possible then it'll show a warning to the user
> > once.
> >
> > What I'd like to know now is: where does the ClickOnce installer get
> built?
> >
> > Where is the configuration for it?  And, were could i put some code to
> > create a system log?
> >
> > I'm not familiar with C# etc so if you could just point me in the
> > potentially correct direction or tell me where the related projects/files
> > are, that would be appreciated.
> >
> > thanks
> > Paul
> > _______________________________________________
> > users mailing list
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
> > ------------------------------
> >  View message @
> >
> http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5824995.html
> >
> > To unsubscribe from [XWord] Can't create System log file, click here<
> > >.
> >
> >
>
> --
> View this message in context:
>
http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5850729.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users



View message @ http://xwiki.475771.n2.nabble.com/XWord-Can-t-create-System-log-file-tp5822372p5852556.html

To unsubscribe from [XWord] Can't create System log file, click here.

Reply | Threaded
Open this post in threaded view
|

Re: [XWord] Can't create System log file

Paul Harris
On 24 December 2010 05:38, Florin Ciubotaru <[hidden email]>wrote:

>
> On Mon, Dec 20, 2010 at 8:49 PM, Paul Harris [via XWiki] <
> [hidden email]<ml-node%[hidden email]>
> <ml-node%[hidden email]<ml-node%[hidden email]>
> >
> > wrote:
>
> > There you go :)  3 new shiny patches
> >
> Thanks. Patches have been applied.
> XOffice 1.1.2 will be released next week.
>
> Florin Ciubotaru
>
>
Great, thanks Florin
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users