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!

wclavering
Posts: 3
Joined: Tue May 29, 2012 8:22 pm

.NET Windows Service

Do you have any examples of how to install windows services built with .NET?

The installer installs, uninstalls, service looks like it's all installed - it just doesn't call the applications main() procedure. Is there a different entry point?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: .NET Windows Service

Hello and welcome to Advanced Installer forums,

You can use our ".NET Installer Class Action" predefined custom action in order to install a .NET service. Also, you should take a look on "Creating installer with basic .net windows service" thread.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wclavering
Posts: 3
Joined: Tue May 29, 2012 8:22 pm

Re: .NET Windows Service

Not very elegant but Ok. Now it installs, but uninstall crashes when it tries to unregister the service because it removed the files first. What am I missing here? Is there no way to use .NET services and install them with the install service section?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: .NET Windows Service

Hello,
Now it installs, but uninstall crashes when it tries to unregister the service because it removed the files first. What am I missing here?

You should schedule your ".NET Installer Class Action" custom action, on uninstall, before "Remove Resources" action in the "Install Execution Stage" tree in order to avoid this.
Is there no way to use .NET services and install them with the install service section?

Unfortunately, this is not possible.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wclavering
Posts: 3
Joined: Tue May 29, 2012 8:22 pm

Re: .NET Windows Service

Your application only permits me to add a single .NET installer class action (without crashing anyway). It seems I have to have 2 custom actions, one for install to appear after the "Add Resources" section, and one for uninstall before the "Remove Resources" - how can I do that?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: .NET Windows Service

Hello,

This seems to be an Advanced Installer issue. Thank you for bringing it to our attention. A fix will be available in the next version of Advanced Installer. As a workaround, to add another ".NET Installer Class Action" custom action, in "Custom Actions" page you can try to copy your custom action and, then paste it in the sequence list.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
evaluating
Posts: 1
Joined: Mon Dec 09, 2013 12:24 am

Re: .NET Windows Service

I'm evaluating this product and I'm looking for a sample step by step for instructions on
Install a window service using this product. do we have any available?

I can follow MSDN to create a service
then open Advanced Install,
choose Generic>>Enterprise
Click "Create Project".

Where to from here????



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

Re: .NET Windows Service

Hello and welcome to Advanced Installler forums,

Thank you for your interest in Advanced Installer.

You can follow the steps exposed in our "How to Create an Installation Package for a Windows Service" thread.

If you have any questions just let us know.

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

Return to “Building Installers”