Subj : How to pass boolean value from C++ back to script? (jsapi) To : netscape.public.mozilla.jseng From : jens.b Date : Sun Jan 02 2005 09:52 am I'm working on bug 216399 to bring the confirmEx function to XPInstall scripts (mainly to get rid of OK/Cancel buttons for the "Install into profile or global?" question). confirmEx allows to pass in a boolean variable that represents the state of a checkbox in the dialog (see [1]). However, I have not yet managed to pass the changed boolean variable back to the install script. Note that instead of XPConnect, js/src/jsapi.c is used within XPInstall. Storing the converted PRBool back into the argv array does not change the original object. I noticed that when calling confirmEx via XPConnect, a JS Object {value:true} is used for that parameter. Does anybody know how I would access and modify such a parameter? There is a function named ConvertJSValToObj, but I don't understand how I should use it here... Best regards, Jens [1] http://lxr.mozilla.org/mozilla/source/embedding/components/windowwatcher/public/nsIPromptService.idl#226 .