Alec,

As far as I know, you can't set the log file location inside WIX because
you need to tell msiexec where to write the log file to before actually
starting the MSI.  You need some sort of bootstrapper that calls msiexec
with the logging options. I've used IExpress in the past, but I think I'll
be switching to dotNetInstaller soon.

-Adam

On Thu, Mar 15, 2012 at 11:43 AM, John Cooper <jocoo...@jackhenry.com>wrote:

> I've seen the same bugs CP has seen.  I've got it set in my installers,
> but only because CD demands it.  Setting it causes a fair number of install
> failures, particular in install/repair/uninstall cycles.
>
> --
> John Merryweather Cooper
> Build & Install Engineer - ESA
> Jack Henry & Associates, Inc.®
> Shawnee Mission, KS  66227
> Office:  913-341-3434 x791011
> jocoo...@jackhenry.com
> www.jackhenry.com
>
>
>
>
> -----Original Message-----
> From: Alec Swan [mailto:alecs...@gmail.com]
> Sent: Thursday, March 15, 2012 11:30 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Setting MsiLogFileLocation property
>
> The following thread implied that the file log location can be set through
> MsiLogFileLocation property in WIX:
>
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Msi-Logging-td707004.html#a707011
>
> But it sounds like Rob is saying this is not possible.
>
> So, how can I reliably enable MSI logging programmatically in WIX code and
> ideally set the location of the log file? We need to support Windows XP SP2
> and higher.
>
> Thanks,
>
> Alec
>
> On Thu, Mar 15, 2012 at 10:05 AM, Christopher Painter <chr...@iswix.com>
> wrote:
> > I don't know if this is common knowledge but I don't set the
> > MsiLogging property anymore.  There' s a known bug in Windows 7 where
> > Explorer / Shell can lose reference to the installer log file location
> > and it causes the installer to crash out.    It can manifest itself on
> > uninstall  which means you are stuck unless you run the uninstall from
> > the command line passing in an explicit path.
> >
> > ----------------------------------------
> >
> > From: "Rob Mensching" <r...@robmensching.com>
> >
> > Sent: Thursday, March 15, 2012 11:02 AM
> >
> > To: "General discussion for Windows Installer XML toolset."
> > <wix-users@lists.sourceforge.net>
> >
> > Subject: Re: [WiX-users] Setting MsiLogFileLocation property
> >
> >
> > I don't think you can set the log file using MsiLogFileLocation. I
> > think it
> >
> > *gets* set to the log file location. You can force your package to
> > require
> >
> > MSI 4.0 by setting the Package/InstallerVersion attribute.
> >
> >
> > On Wed, Mar 14, 2012 at 9:10 PM, Alec Swan <alecs...@gmail.com> wrote:
> >
> >
> >> Hello,
> >
> >>
> >
> >> I need to enable verbose logging and configure MSI log file location.
> >
> >> I am currently doing this by adding the following properties inside
> >> of
> >
> >> my .wxs file:
> >
> >> <Wix>
> >
> >> <Product>
> >
> >> <Property Id="LOGVERBOSE">1</Property>
> >
> >> <Property Id="MsiLogFileLocation">x:/WIX/wix-msi.log</Property>
> >
> >> ...
> >
> >>
> >
> >> Is this the right place for these properties?
> >
> >>
> >
> >> If so, then I am assuming that the reason why they are not taking
> >
> >> effect is that the MSI version our Wix project is using is lower than
> >
> >> 4.0 and does not support MsiLogFileLocation property. Where do I
> >
> >> update the MSI version in my WIX project?
> >
> >>
> >
> >> Thanks,
> >
> >>
> >
> >> Alec
> >
> >>
> >
> >>
> >
> >>
> > ----------------------------------------------------------------------
> > ------
> > --
> >
> >> This SF email is sponsosred by:
> >
> >> Try Windows Azure free for 90 days Click Here
> >
> >> http://p.sf.net/sfu/sfd2d-msazure
> >
> >> _______________________________________________
> >
> >> WiX-users mailing list
> >
> >> WiX-users@lists.sourceforge.net
> >
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >>
> >
> >
> > --
> >
> > virtually, Rob Mensching - http://RobMensching.com LLC
> >
> > ----------------------------------------------------------------------
> > ------
> > --
> >
> > This SF email is sponsosred by:
> >
> > Try Windows Azure free for 90 days Click Here
> >
> > http://p.sf.net/sfu/sfd2d-msazure
> >
> > _______________________________________________
> >
> > WiX-users mailing list
> >
> > WiX-users@lists.sourceforge.net
> >
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > ----------------------------------------------------------------------
> > --------
> > This SF email is sponsosred by:
> > Try Windows Azure free for 90 days Click Here
> > http://p.sf.net/sfu/sfd2d-msazure
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure_______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> NOTICE: This electronic mail message and any files transmitted with it are
> intended
> exclusively for the individual or entity to which it is addressed. The
> message,
> together with any attachment, may contain confidential and/or privileged
> information.
> Any unauthorized review, use, printing, saving, copying, disclosure or
> distribution
> is strictly prohibited. If you have received this message in error, please
> immediately advise the sender by reply email and delete all copies.
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to