thkr
Posts: 13
Joined: Tue Aug 25, 2015 9:55 am

Installing one service with one instance

Hello,

my Setup installs a Windows Service and the Setup has the ability to "Generate instances at installation time".
Everything works fine, except that the existing Windows Service from another instance is overwritten if i install a new instance.

How can i force the installer to create a new service? The name of the service is generated through user input.

Thanks.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installing one service with one instance

Hello,
How can i force the installer to create a new service? The name of the service is generated through user input.
I'm afraid that this is not possible because it is not supported by Windows Installer. For details, please take a look on the Same package supports multiple instances? forum thread which debates a similar subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thkr
Posts: 13
Joined: Tue Aug 25, 2015 9:55 am

Re: Installing one service with one instance

Hello Dan,

thanks for your reply.
Is it possible to achieve one service with one instance solution with the predefined ".NET Installer Class Action"?

In this case i doesn't use the "services" page and hopefully come out of the windows installer restriction?

Thank you in advance.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installing one service with one instance

Hello,

I'm not sure if this is possible, but you can try.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thkr
Posts: 13
Joined: Tue Aug 25, 2015 9:55 am

Re: Installing one service with one instance

It is possible. I could successfull install a instance with one service.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installing one service with one instance

Hi,

I'm glad you got this working. Also, thank you for your feedback. I'm sure this will help someone in the future.

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”