Ive not used AutoIt but a quick look suggests it's using createprocess. To get output redirection on a command line you need to be in a DOS box.
Try ('cmd \c ' & $WIX_FOLDER & '\candle.exe...... You might have to fiddle with quote marks if there are spaces in your path. Better yet, replace cmd \c with %COMSPEC% \c if the function will expand environment variables. -----Original Message----- From: David Amey [mailto:da...@creative-engine.co.uk] Sent: 20 June 2011 14:06 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] logging Hello Martin, Thank you for your assistance, unfortunately this is still not working. If anyone has any solution to this problem, then I would love to hear it!! Thanks again, Dave David Amey The Creative Engine Ltd Almac House, Church Lane, Bisley, Surrey, GU24 9DR T: +44 (0)1483 799200 F: +44 (0)1483 799111 -----Original Message----- From: Martin Kulov [mailto:mar...@kulov.net] Sent: 15 June 2011 15:54 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] logging Hi David, I am not expert in candle and light but I believe that redirection in DOS should happen at the end of the line: RunWait($WIX_FOLDER & '\candle.exe -dmanufacturer="'&$MANUFACTURER_NAME&'" -dproductName="'&$productName&'" -dcabName="'&$CABINET_NAME&'.cab" -dcodepage='&$wixInitLcidCode&' -dproductGUID='&$productCode&' -out "'&$BUILD_FOLDER&'\" "'&$BUILD_FOLDER&'\*.wxs" > myfile.txt ',$BUILD_FOLDER,@SW_MAXIMIZE) Martin Kulov -----Original Message----- From: David Amey [mailto:da...@creative-engine.co.uk] Sent: Wednesday, June 15, 2011 12:17 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] logging Hi Dave, Thank you for this link. I have been trying to implement it into my calls, but sadly it does not seem to work. I have tried the redirecting with a simple cmd call and it works fine. However I am creating an automation process using autoit, and im not sure if I would be using the redirection correctly. Autoit script: RunWait($WIX_FOLDER & '\candle.exe> myfile.txt -dmanufacturer="'&$MANUFACTURER_NAME&'" -dproductName="'&$productName&'" -dcabName="'&$CABINET_NAME&'.cab" -dcodepage='&$wixInitLcidCode&' -dproductGUID='&$productCode&' -out "'&$BUILD_FOLDER&'\" "'&$BUILD_FOLDER&'\*.wxs"',$BUILD_FOLDER,@SW_MAXIMIZE) If anyone could point me in the right direction I would be incredibly grateful. Thanks! David Amey The Creative Engine Ltd Almac House, Church Lane, Bisley, Surrey, GU24 9DR T: +44 (0)1483 799200 F: +44 (0)1483 799111 -----Original Message----- From: Dave Andersen [mailto:d.ander...@gmail.com] Sent: 14 June 2011 19:28 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] logging Something like this may help: http://blog.crankybit.com/redirecting-output-to-a-file-in-windows-batch-scri pts/ David Amey wrote: > > Hello All > > Can someone please explain how I can turn logging on during the candle > and light calls, as I have errors that I need to correct. > I am automating the calls, which causes the command prompt to close > very quickly after the code has been run. > > Thanks in advance. > > PS thank you Tonny Erjomin for the help on language support David Amey > The Creative Engine Ltd Almac House, Church Lane, Bisley, Surrey, GU24 > 9DR > T: +44 (0)1483 799200 F: +44 (0)1483 799111 > > ---------------------------------------------------------------------- > -------- EditLive Enterprise is the world's most technically advanced > content authoring tool. Experience the power of Track Changes, Inline > Image Editing and ensure content is compliant with Accessibility > Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/logging-tp6474 846p6475377.html Sent from the wix-users mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ----------------------------------------------------------------------------- - EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ----------------------------------------------------------------------------- - EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users