Bugs item #1340382, was opened at 2005-10-28 00:48 Message generated for change (Comment added) made by derekc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1340382&group_id=105970
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: candle Group: v2.0 >Status: Pending >Resolution: Fixed Priority: 5 Submitted By: Riko Eksteen (rikoe) Assigned to: Derek (derekc) Summary: Unable to generate type 21/22 custom actions Initial Comment: Even though the help says it is possible, one cannot combine the FileKey and JScriptCall/VBScriptCall attributes to generate custom actions of type 21/22 (run script file installed with the product). When trying to compile the following: <CustomAction Id="RunScript" FileKey="myscript.js" JScriptCall="MyFunction" Return="check" Execute="deferred" /> the compiler gives the following error: error CNDL0042 : The CustomAction/@JScriptCall attribute cannot be specified without attribute BinaryKey present. ---------------------------------------------------------------------- >Comment By: Derek (derekc) Date: 2005-11-01 19:30 Message: Logged In: YES user_id=518766 This should be fixed in the next drop. ---------------------------------------------------------------------- Comment By: Derek (derekc) Date: 2005-10-29 16:20 Message: Logged In: YES user_id=518766 Nice find - WiX should support this scenario (although its really fragile). The documentation in WiX.chm also appears to be incorrect. ---------------------------------------------------------------------- Comment By: Russ Sherk (xapp) Date: 2005-10-28 13:33 Message: Logged In: YES user_id=1369166 The documentation states that both vbscript and javascript must be accompanied by a binarykey. VBScriptCall xs:string This attribute specifies the name of the VBScript Subroutine to execute in a script. The script must be provided in a Binary element identified by the BinaryKey attribute described above. In other words, this attribute must be specified in conjunction with the BinaryKey attribute. JScriptCall xs:string This attribute specifies the name of the JScript function to execute in a script. The script must be provided in a Binary element identified by the BinaryKey attribute described above. In other words, this attribute must be specified in conjunction with the BinaryKey attribute. So, you seem to be correct. The BinaryKey help correctly states that it can be used to create a type 5 or 6 custom action though. So, is this just a doc bug? --Russ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1340382&group_id=105970 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ WiX-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-devs
