Awesome thanks Blair, I'm going to try as suggested and output some log from 
the script itself to a separate log file.

-----Original Message-----
From: Blair Murri [mailto:os...@live.com]
Sent: 03 July 2013 01:22 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] CAQuietExec64 log output to log file

Determining success or failure is usually done from the exit code. Any code 
other than 0 is considered by Windows Installer to be a failure.

Normally we do want to see output from our scripts, preferably in the same log. 
I haven't used powershell in custom actions so I haven't looked to see how to 
set the codepage of the "console", that may be what is needed. If you can't get 
the console spew right, you could try writing your own log file from your 
script. If you use environment variables from within your script to place the 
location of the log, know that variables such as TEMP may or may not differ 
from the invoking user for actions set to not impersonate (it may vary by 
platform or some other setting) so you may or may not have to search for the 
system temp for your log.

> From: christoffe...@flowcentric.com
> To: wix-users@lists.sourceforge.net
> CC: os...@live.com
> Subject: RE: [WiX-users] CAQuietExec64 log output to log file
> Date: Wed, 3 Jul 2013 10:43:13 +0000
>
> Ahh thanks a bunch Blair, my script indeed output some text while executing 
> for logging purposes, so then I assume that no output should be returned from 
> the script except for the exit code? How do you know when something goes 
> wrong from reading the log file? Is it possible to achieve?
>
> -----Original Message-----
> From: Blair Murri [mailto:os...@live.com]
> Sent: 03 July 2013 11:23 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] CAQuietExec64 log output to log file
>
> Your string starting with 8? is the output from the script (with '?' used for 
> all unmapped chars). My guess is that your script is returning wide chars 
> while CAQuietExec is expecting whatever your system's default codepage is.
>
> > From: christoffe...@flowcentric.com
> > To: wix-users@lists.sourceforge.net
> > Date: Wed, 3 Jul 2013 08:25:34 +0000
> > Subject: [WiX-users] CAQuietExec64 log output to log file
> >
> > Hi, I'm trying to execute a PowerShell V3 script on installation
> > using the following action
> >
> > <SetProperty Id="InstallSetupSPConfigCustomAction"
> > Before="InstallSetupSPConfigCustomAction" Sequence="execute" Value
> > ="&quot;[POWERSHELLEXE]&quot; -ExecutionPolicy ByPass -InputFormat
> > None -Command &quot;&amp; '[#SetupSPConfig.ps1]' -i -v
> > [ProductVersion] -fcUrl '[ACTIVITYSERVERURL]' ; exit
> > $$($Error.Count)&quot;" />
> >
> > Is there any way I can get the output from the script to be logged
> > to the log file if the script fails, I'm having a hard time to
> > figure out why the script is failing, all I get in the log file is
> >
> > CAQuietExec64:  8??????????????!??????????????????????????????4?? 
> > ???????????????????9??++++??7?????????4????"??++++?????????????????~?++???????+++++>????????>?????????4?????
> >  ?+???????????????++????????????>?????????????!? 
> > ???????????????????????.?????????5?????????????????????????
> > CAQuietExec64:  
> > ?????????????????????????????4????????????????????????++??????????????++??????????????+????????++++????????????????????????+???????????????????????????>?
> > CAQuietExec64:  Error 0x80070002: Command line returned an error.
> > CAQuietExec64:  Error 0x80070002: CAQuietExec64 Failed
> >
> > I cannot read that :(
> >
> > Although when running the commands generated by WIX from the command line 
> > on the target machine it works like a charm, just not during installation.
> >
> > Please can someone advice.
> > Thank in advance
> > Christoff le Roux
> >
> > This information is intended only for the person or entity to which it is 
> > addressed and may contain private, confidential, proprietary and/or 
> > privileged material and may be subject to confidentiality agreements. Any 
> > review, retransmission, dissemination, or any other use of or taking of any 
> > action in reliance upon this information, by persons or entities other than 
> > the intended recipient, is prohibited. If you received this in error, 
> > please contact the sender and delete the material from all storage media. 
> > FlowCentric is neither liable for proper, complete transmission of the 
> > information contained in this communication, any delay in its receipt or 
> > that the mail is virus-free.
> > --------------------------------------------------------------------
> > --
> > -------- This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> This information is intended only for the person or entity to which it is 
> addressed and may contain private, confidential, proprietary and/or 
> privileged material and may be subject to confidentiality agreements. Any 
> review, retransmission, dissemination, or any other use of or taking of any 
> action in reliance upon this information, by persons or entities other than 
> the intended recipient, is prohibited. If you received this in error, please 
> contact the sender and delete the material from all storage media. 
> FlowCentric is neither liable for proper, complete transmission of the 
> information contained in this communication, any delay in its receipt or that 
> the mail is virus-free.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
This information is intended only for the person or entity to which it is 
addressed and may contain private, confidential, proprietary and/or privileged 
material and may be subject to confidentiality agreements. Any review, 
retransmission, dissemination, or any other use of or taking of any action in 
reliance upon this information, by persons or entities other than the intended 
recipient, is prohibited. If you received this in error, please contact the 
sender and delete the material from all storage media. FlowCentric is neither 
liable for proper, complete transmission of the information contained in this 
communication, any delay in its receipt or that the mail is virus-free.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to