Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2004
    Posts
    26

    How do I register an out of process exe?

    Hi,

    I'm looking for the recommended way of registering an out-of-process exe when using an msi. In SetupFactory 7.0 I used to call the file with the /regserver switch which I can still do but I don't know if this is the correct way.

    Do I have to still do this or is there something different, like how in-process components are registered using the registry stuff instead of calling regwvr32?


    Regards,

    Keith

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Keiths123 View Post
    Hi,

    I'm looking for the recommended way of registering an out-of-process exe when using an msi. In SetupFactory 7.0 I used to call the file with the /regserver switch which I can still do but I don't know if this is the correct way.

    Do I have to still do this or is there something different, like how in-process components are registered using the registry stuff instead of calling regwvr32?


    Regards,

    Keith
    Outof process servers require you to run them with the /regserver command line. The reason "in proc" works with "auto registration" is that they are have an exported function that is predefined and can be called to "self register"


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Mar 2004
    Posts
    26
    Thanks for the feedback, it was kind of what I was expecting.

    Out of interest, do you know how to unregister the exe on uninstallation? I know that I need to run the exe with the /unregserver switch but I don't know which event I have to run it under. I only want to do this when removing the component so I put it before the "RemoveFiles" action but that causes an error during the installation. I'm looking for an event that only runs during the removal process.

    Regards,

    Keith

  4. #4
    Join Date
    Aug 2008
    Posts
    30
    Run that with condition "Installed" (without quotes). That will prevent it from running during installation and force it to run only during uninstallation.

    venky.

  5. #5
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Keiths123 View Post
    Thanks for the feedback, it was kind of what I was expecting.

    Out of interest, do you know how to unregister the exe on uninstallation? I know that I need to run the exe with the /unregserver switch but I don't know which event I have to run it under. I only want to do this when removing the component so I put it before the "RemoveFiles" action but that causes an error during the installation. I'm looking for an event that only runs during the removal process.

    Regards,

    Keith

    on pre uninstall you run the exe with /unregserver if you run it post uninstlal; the file won't be there...


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  6. #6
    Join Date
    Aug 2008
    Posts
    30
    That is true. You need the file to unregister it.


    Venky.

  7. #7
    Join Date
    Mar 2004
    Posts
    26
    Thanks for the information, and just to let you know (and anyone reading this) that I put an "Installed" condition on the /unregserver action and a "Not Installed" condotion on the /regserver action.

    Regards,

    Keith

Similar Threads

  1. Replies: 1
    Last Post: 12-14-2005, 01:06 AM
  2. Function: Terminate Process
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 10:53 AM
  3. Search for running process ?
    By cyberwebwerks in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 09-08-2003, 01:15 PM
  4. HOWTO: Register an ActiveX Control
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-27-2002, 02:13 PM
  5. When to register fonts
    By alanK in forum Setup Factory 6.0
    Replies: 2
    Last Post: 07-30-2002, 04:34 PM

Posting Permissions

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