Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9253097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:07:45+00:00 2026-06-18T11:07:45+00:00

I need to install my windows service, and have at least one instance of

  • 0

I need to install my windows service, and have at least one instance of it. The user decides how many services they will have. But which approach will I take?

  • Try to make my ServiceInstall foreach the number of windows services or install them with an customization via installutil?

and then I have to solve so it does not install duplicates. But I can make an xml file that contains the service names to be installed, and read from there.

But I have read that people don’t like using foreach in wix because it complicates stuff much more, and some people say installutil isn’t good either. But since I don’t know how many services it will be I have to solve it something like this.

And with installutil i won’t get rollback either?

Does anyone know another approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:07:46+00:00Added an answer on June 18, 2026 at 11:07 am

    You can run custom action which patches your MSI including service elements to install. This approach allows you to read service names from wherever you want and install as many services as you need.

    Though it would be quite non-trivial for those who read your installer source code later. And to be honest I’ve never used this approach. But it should work…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to install on one of my Windows PC's some software that will
I have a custom windows service written in c# that I need to install
I am using Wix to install a windows service. The service will need to
We have an MSI to install windows service on client machine. Windows service calls
I have say 3 projects: one the MVC2 app, the second is Windows Service
I have a Visual Studio Setup Project used to install a Windows service. The
In my application I have one windows form application and two windows services. Currently
We have built a .NET Windows Service that we install on client PCs to
I have written a windows service and have created a setup project to install
Well, I have created a new windows service and the install from Visual Studio.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.