Using AI 7.7:
I tried to understand how Services work using the following link:
http://www.advancedinstaller.com/user-g ... rties.html
But there's something I can't understand.
What happened is:
To install my Services I use AI (Services to install + Control Operations).
So one Service named: "Observer Encoder" I tried to use your Service Installers, but then I wanted to upgrade I had a new window/dialog open during upgrade (from version 1.0.0 to 1.0.1 for example) that said that "observer encoder" is running and "holding" files that require update.
So what I did is I tried to stop this Service myself before "install" phase. This got me into a lot of problems.
I tried various combinations of start/stop in the "Event On Install" of "Control Operation Parameters for my "Observer Encoder" Service (+ custom actions to start or stop this Service), but couldn't quite make this work without AdvancedInstaller say that I had some error during installation (of course for my custom actions I can ignore the return code and it will work! but I do want to make sure this custom action finished correctly).
I even tried the following:
1. In phase "LaunchConditions" I created a custom action that stops the Encoder: "sc.exe stop "Observer Encoder""
2. for the "Event On Install" of this service nothing is checked, not start, not stop and not delete.
3. For some reason: during the end of the installation, AdvancedInstaller automatically/alone starts "Observer Encoder" Service!!! Although I REMOVED the START in "Event On Install" for this Service!!! (how come? why did it start alone? I checked: no custom action that starts it, and Event On Install is empty! I suspect AdvancedInstaller "remembered" that the Service was started and was not aware of my custom action to stop the Service and that's why is started it alone... yes?)
I guess you understand my frustration: I just can't seem to understand how to work with Services with AdvancedInstaller properly.
I seriously need you help on this one.
Dashut.
P.s: What's the meaning of checking START and also checking STOP in the "Event on Install" for a Service?
FOLLOW US
Get the latest news in Application Packaging