we have setup a new installer project wich includes a Java Service. The service is installed and started during initial installation. Its process is visible within task manager; in addition, it is visible within task manager's 'Services' tab, too. However, within the Services console (services.msc rsep. compmgmt.msc) this service is missing (even after reboot).
Do You have any ideas what gos wrong here? I can provide our project file on request to your support email.
This seems to be a problem with the machine on which you are testing the package. Have you seen the same behavior on multiple machines? We recommend VMs for testing.
we have observed the same behavior on any machine we and our customer tested the installer on. This includes Windows 7 and 8.1 machines. Any other ideas?
In the project file you sent us over email I noticed you use two methods to control (stop) the service:
1) first you have all options "Start", "Stop" "Delete" selected for the Install stage. This is correct as our docs mention.
2) you are also using a custom action StopWebSIService that stops it on upgrade
The custom action and the settings from point 1) are basically doing the same, so you should not need both. Maybe these causes the installer to behave incorrectly and also delete the service on install (I am not 100% sure).
Can you please try to either remove the custom action from the project (or simply set a condition that will always be false, so it does not execute on upgrade), or uncheck the option "Stop" and "Delete" from the Install phase for your service, from Services page.
If I look carefully, I see you also execute the custom action from the old version, the one being upgraded, so in this case you need to both set the false condition AND also untick the options "Stop" and "Delete" from the Install phase for your service, from Services page.
If the problem still persist, please send us the latest AIP file and a verbose log of the installation.