RubenG
Posts: 10
Joined: Thu Jun 26, 2014 6:10 pm

installer crash with Service Failure execution

Hi,

I'm working in a installer for a Windows service. This one must restart when it fails, so I added the Failure Operation to the service and configured it. Here is the problem in some machines this works fine and the service is installed and configured, but in some others (almost 50% of the tested machines) this point in the installation process is crashing, windows show me a "This program has stopped working" message, I close the error and the process aparentlly continue, but it not install the service.

I wonder why this is happening. I tested in two machines with the same SO and architecture. the same windows upgrades and in one fail and another not. How can I check what is going wrong with the process?

Thanks a lot,

Edit:

I recreate the project, now the problem is that when it try to install and run the service, it tells that not has the privilegies for do this and then revert all, but I'm running it as Administrator.

I need help with this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: installer crash with Service Failure execution

Hello,
I'm working in a installer for a Windows service. This one must restart when it fails, so I added the Failure Operation to the service and configured it. Here is the problem in some machines this works fine and the service is installed and configured, but in some others (almost 50% of the tested machines) this point in the installation process is crashing, windows show me a "This program has stopped working" message, I close the error and the process aparentlly continue, but it not install the service.

I wonder why this is happening. I tested in two machines with the same SO and architecture. the same windows upgrades and in one fail and another not. How can I check what is going wrong with the process?
In order to have a clear view of your project settings, can you please send us the .AIP (project file) and a verbose log of the failing installation to support at advancedinstaller dot com so we can investigate and test the scenario on our side?
I recreate the project, now the problem is that when it try to install and run the service, it tells that not has the privilegies for do this and then revert all, but I'm running it as Administrator.
Please also send us the recreated .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them too.

Also, please make sure your service can be successfully installed and started outside the installation package. You can try to manually install and start the service and see if you encounter any issue. If so, then you should try to debug your service implementation to check what is causing the failure.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RubenG
Posts: 10
Joined: Thu Jun 26, 2014 6:10 pm

Re: installer crash with Service Failure execution

Hi Daniel,

Thanks for answering, I made some test in another machines and found that the problem was the prerequisites of the installation, I't was already solved and the service is installed and started correctlly.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: installer crash with Service Failure execution

You're welcome. I'm glad you sorted things out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”