djolivet Posted December 2, 2005 Report Share Posted December 2, 2005 Hi All, This project consists of two applications. Application A monitors some equipment and needs to be run as a service. Application B is a UI and is started at miscellaneous times by the operator. Application B communicates to Application A via TCP. I build A and B into executable and built an installer that installs Application B and copies Application A Quote Link to comment
klessm1 Posted December 4, 2005 Report Share Posted December 4, 2005 So my question is:When the software is uninstalled, is there a way to remove the service? Can an executable be set to run at un-installation time? Is there some other method? Thanks I have never tried to remove a service, but you can set an executable to be ran at un-installation time of an application. That is if you mean un-installing it using add remove programs. The application needs a couple of entries in the registry in the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrenVersion\Uninstall" key. You need a key under this directory with the DisplayName and UninstallString Values like in the attached pic. The DisplayName is what is displayed in add remove programs, and the UninstallString is what is executed when you choose Remove. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.