Page 1 of 3 123 LastLast
Results 1 to 5 of 11

Thread: Calling CA from SetupCompleteSuccess

Hybrid View

  1. #1
    walidsi Guest

    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.
    Thanks,
    Walid Ismail
    Last edited by walidsi; 07-13-2003 at 09:50 AM.

  2. #2
    Join Date
    Feb 2002
    Posts
    94
    Hi Walid,

    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.

    alex

  3. #3
    walidsi Guest
    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?

    Walid

  4. #4
    Join Date
    Feb 2002
    Posts
    94
    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.

    alex

  5. #5
    Join Date
    Jan 2002
    Location
    Melbourne, Australia
    Posts
    668
    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.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •