I have just tried to create a Service with the "Services" and encountered THREE problems (bugs):
1. When creating a Service that the executable has spaces inside: then the Service would NOT start. Creating with no spaces worked!
So I first had an executable: "Observer Streamer.exe". The Service itself was created in the Services.msc, but although selected by AdvancedInstaller to start ("Event On Install": "Start"): it did NOT. Changing the file name to "ObserverStreamer.exe" fixed the problem. The Service was installed and started as expected. So this clearly looks like a bug, because I can create a Service name with a space when using the command prompt "sc.exe" command.
2. When I add "Failure Operations" for a Service, you have the "Failure Actions". There you can choose to restart the service or restart the computer and so on. These options should later be seen when you open Services.msc, choose your Service, and choose the "Recovery" tab. So I added three actions: all to restart the Service after 60000 (60 seconds - which was the default). After installing the MSI which created the Service successfully, I go to the "recovery" tab for this new Service I created with AdvancedInstaller, but I do NOT see anything in the recovery. Meaning: it still says:
First failure: Take no action
Second failure: Take no action
Subsequent failure: Take no action
Then since my Service was set to run, I use TaskManager to kill it. After 60 seconds it should restart the Service - as I selected in AdvancedInstaller (in "Failure Actions"). But this doesn't work.
I then manually added:
First failure: "restart the service" in the "recovery" tab of the Service in Service.msc, and tested again by killing the Service: and the Service is restarted after 60 seconds -> as expected.
So this means that AdvancedInstaller options for "Failure Actions" do not work, and do not appear in the Services.msc "Recovery" tab either.
3. I tried in the same area: "Failure Operatoins Parameters" to "Run Program". So I added in "Program:" I added: "Notepad.exe". I built the MSI, but when killing my Service: notepad.exe did NOT appear. Moreover, when I reopened AdvancedInstaller: "Notepad.exe" changed places!!!! from "Program:" to "Arguments:" !!!!!!
I consider these serious bugs, since we have purchased AdvancedInstaller for creating EASY installations, and NOT playing with Custom Actions to create Services and other things found not working.
Waiting for your reply on this.
Thanks, Dashut.
FOLLOW US
Get the latest news in Application Packaging