Jump to content

Recommended Posts

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

Link to comment
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.

post-2966-1133673191.jpg?width=400

The DisplayName is what is displayed in add remove programs, and the UninstallString is what is executed when you choose Remove.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.