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

Reply via email to