Calling CA from SetupCompleteSuccess
I have a CA that calls the ShellExecuteA API to launch the default browser on the user machine to a specific URL. I want to execute this custom action when the user clicks the FINISH button of the SetupCompleteSuccess dialog.
When I do this, I get an error message at runtime with the error "Unknown source:" and some rubbish text following the string. If I execute the CA from the NEXT button of any other dialog in the setup it works fine!!!!
I have found some posts referring to this error, but I did not find any solution to it.
Can anyone help me with this.
Last edited by walidsi; 07-13-2003 at 09:50 AM.
when i was using ISWI i could only launch CAs from the last dialog when they were not written with Installscript. This was a bug back then, the Installscript engine was already shut down at that moment.
I dunno if thats the same bug, I would be surprised if they hadn't fixed it, anyway...
Make a CA 'Launch an executable' and see if you can call it from the SetupCompleteSuccess dialog. If that works, determine the location of the default browser's .exe some time earlier, store it in a property and launch it thru that CA in the end. The URL can be passed as an argument, i think.
The one I wrote is not written using IS script. It is a CA that calls a function (ShellExecuteA) from a standard system library Shell32.dll. I first tried one that was written using IS script and that did not work either.
Is there certain types of customs actions that cannot be executed from the SetupSuccessDialog?
like i said, back in ISWI i couldn't launch Installscript CA from that dialog....I'm only using standard projects now in IS7, so i never encountered that problem.
only advice i have left is: put it at the end of the UI sequence, maybe that'll do the trick.
HAve you made sure that your custom actions are sequenced before the install exits on the finish button?
I have created c/C++ custom action and exeucted them on the finish button of my install.