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

  • Home
  • SEARCH
  • 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 4079288
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:46:57+00:00 2026-05-20T17:46:57+00:00

I have a windows service exe that is compiled as x86, amd64, and Itanium.

  • 0

I have a windows service exe that is compiled as x86, amd64, and Itanium. I’m trying to build a single x86 WiX/MSI installer that is used to install this service. The installer has three components with architecture specific conditions (e.g. <Condition>NOT VersionNT64</Condition> is used to detect x86), so only one of the components is ever installed on any given architecture. These components install either the x86, x64, or Itanium build of the exe.

This all works fine and the correct binary is installed on each of the three platforms.

The next step is to setup a Windows service for my exe using the ServiceInstall tag, and this is where we run into trouble: apparently the Name attribute of the ServiceInstall tag must be unique within the WiX file. I’d like to call the service e.g. FooBar on all three platforms, but this isn’t allowed – the WiX file fails to compile because of name collisions.

As a workaround I could have architecture dependent service names, e.g. FooBar_ia64, but this seems ugly to me, plus the code base has a number of places that makes assumptions about the service name, so if I change the service name, I will have to find and modify all these places in the code base.

I tried moving the ServiceInstall into its own Component that would be installed on all three architectures, but the ServiceInstall tag apparently implicitly references a File tag defined in the same Component so that didn’t work either.

I’m also aware that I could produce one installer per architecture and thereby avoid any conditionals in the installer and my problem would simply go away. But I really dislike the idea of having three installers when I’m so close to having a single installer for all three architectures 🙂

Any other tricks to get around this issue?

And just in case you didn’t figure this out yet, this is a legacy code base that I’ve inherited and I’m trying to build a new installer for it to replace the existing legacy installer.

  • 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-05-20T17:46:57+00:00Added an answer on May 20, 2026 at 5:46 pm

    This actually seems like a bug in WiX. When you do what you say it generates an error message about duplicate Primary Key but in reality the ServiceInstall table in the MSI SDK doesn’t say anything about the Name column being primary. Throught the user of mutually exclusive components you should be able to author multiple versions of a Service and not run afoul of any component rule violations.

    The WiX team probably figure they’ll just be more conservative and prevent people from shooting themselves. The other thing they would probably say is don’t do hybrid installers in the first place but you already know that.

    The best I can think of as a work around is to use a custom action at install time to author a temporary row into the ServiceInstall table to get around this compile time limitation.

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

Sidebar

Related Questions

I have a windows service that runs various system monitoring operations. However, when running
We have a Windows Service written in C#. The service spawns a thread that
I have a windows service I am trying to debug. Is it a bad
I have a windows service that runs fine, but I have to have it
I have a windows service written in C# that acts as a proxy for
I have a Windows service that runs implementations of a framework across multiple threads.
I have a windows service that has a custom configuration section. In the configSectionHandler
Scenario I have a windows service written in C# that performs some processing based
I have a Windows service that has been scheduled using Quartz.NET . I have
I'm trying to create a client for a WCF service that I have hosted

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.