View Full Version : How do I register an out of process exe?
Keiths123
11-07-2008, 09:35 AM
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
jassing
11-13-2008, 04:59 PM
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"
Keiths123
11-24-2008, 06:08 AM
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
venky
11-24-2008, 09:17 AM
Run that with condition "Installed" (without quotes). That will prevent it from running during installation and force it to run only during uninstallation.
venky.
jassing
11-24-2008, 09:34 AM
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...
venky
11-24-2008, 03:33 PM
That is true. You need the file to unregister it.
Venky.
Keiths123
11-26-2008, 10:33 AM
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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.