We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

janisito
Posts: 86
Joined: Thu Apr 09, 2015 6:28 am

OnShutdown not called for C# Windows Service

Hi,

I'm having a Windows Service installed that automatically runs when Windows is started. However, when Windows is rebooted the OnShutdown event is never called on the service. I have set the CanShutdown flag to true. Is there something in the installer that opposes this? Could this be a bug in AI?

Thx,
Regards
Jan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: OnShutdown not called for C# Windows Service

Hello Jan,

I am not aware of anything you can configure in the installation package which can interact with this event. To troubleshot this I suggest you to try debugging your service application code. Also, as a test you can even manually install the service application and see if the behavior still persists. If so, then the cause is outside of the installation setup.

Let us know if this helped.

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

Return to “Common Problems”