Files specified in Binary elements are embedded within the MSI. You'd need to extract it from your MSI first to a known location which is neither easy nor quick to write. The usual widely used solution is to install the file & refer to it using it's File Id (use [#FileId] for the full path) in your VBScript. Both of these have been discussed many times on the list (search nabble.com or mail-archive.com).
FYI VBScript custom actions also have their issues. See http://wix.sourceforge.net/manual-wix2/robmen_20040520.htm Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: vunder [mailto:vun...@bk.ru] Sent: 17 January 2011 09:29 To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to execute <binary> in VBScript-custom action I hahe an executable file stored in <Binary> element: <Binary Id="DetectBoard.exe" Source="Components\dfPost4Files\BoardDrivers\DetectBoard.exe"/> I need to execute it in my vbscript custom action and then depends on return code set some value to variable. To run files I am using: Set wshshell = WScript.CreateObject ("WScript.shell") wshshell.Run ("%comspec% C:\CheckIDE\CheckIDE.exe") But how can I execute my file stored in <Binary>? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-exe cute-binary-in-VBScript-custom-action-tp5931213p5931213.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users