What you actually want is a Type 2 Custom Action as there's no other type which can target an executable in a Binary Stream such as <CustomAction Id="Foo_CA" BinaryKey="Foo.bin" ExeCommand="" Return="asyncNoWait" /> This is covered in the tutorial at http://www.tramontana.co.hu/wix/lesson3.php#3.2
[#Foo.bin] refers to a File Id. If you're not installing Foo.bin you can't use it. Also you may want to fix the spelling of 'Action' in <Custom Aciton="Foo_CA" Before="InstallFinalize">NOT REMOVE="ALL"</Custom> </InstallExecuteSequence> 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: Jacques Eloff [mailto:repst...@gmail.com] Sent: 23 September 2010 19:18 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] How to author a type 50 custom action that targets abinary stream Hi I'm trying to author a custom action that executes a command and uses a file that's carried as a binary stream as input to the command. Basically, I want my MSI to just execute a custom action on this file. It won't install anything physically to disk. I keep running into ICE03 - "Not a valid foreign key" when trying to author the custom action Basically what I would like to do is the following: <Binary Id="Foo.bin" SourceFile="SomeFile" /> <CustomAction Id="Foo_CA" Property="EXE_TO_RUN" ExeCommand="[#Foo.bin]" Return="asyncNoWait"/> <InstallExecuteSequence> <Custom Aciton="Foo_CA" Before="InstallFinalize">NOT REMOVE="ALL"</Custom> </InstallExecuteSequence> My understanding is that Binary can only be used as the source, not the target of a custom action. Is this assumuption correct? Thanks, Jacques ------------------------------------------------------------------------ ------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users