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 8489841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:56:23+00:00 2026-06-10T21:56:23+00:00

When I use WiX 3.x with Visual Studio 2010 to create a Windows Installer

  • 0

When I use WiX 3.x with Visual Studio 2010 to create a Windows Installer XML “C# Custom Action Project” called “MyCustomActions”, it generates the following files:

“CustomAction.config”, “CustomAction.cs” and the project file “MyCustomActions.csproj”.

We use an assembly naming scheme that includes our company name, so we change the assembly name to something like: CompanyName.ProductName.MyCustomActions

At the same time, we change the default namespace and actual namespace for the CustomActions class to CompanyName.ProductName.MyCustomActions, to match the assemblyname .

Is it OK to do this without changing any other file or class names?

The thing I’m wondering about is the use of the “CustomAction.config” file – does the name of that have to be related to the output assembly name in some way? I’m not sure how “CustomAction.config” will get used.

Also: The “CustomAction.cs” file contains a class called “CustomActions” (note the plural), and our naming convention says that the code file for a class should have the same name as the class itself, so we would like to rename the code file to “CustomActions.cs”. I’m pretty sure that’s OK… Is it?

Finally, if we did rename the CustomAction class to something else, would that be OK? Again, I’m just concerned with its relationship to “CustomAction.config”.

I guess all these questions can be rolled into one: What is the relationship between the name of the “CustomAction.config” file with the rest of the namespace, assembly and class names?

If I have the answer to that, it would answer all my previous questions.

  • 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-10T21:56:25+00:00Added an answer on June 10, 2026 at 9:56 pm

    For a WIX Custom Action project, no matter what you name your classes or assembly or namespace or anything else, the config file must always be named ‘CustomAction.config’ (consider it hard-coded in WIX) and its build action in the file property in VS should be set to ‘Content’. There is no such requirement for anything else in the project.

    This config file can specify the supported CLR version (in fact it is recommended) and can contain any additional configuration that your custom action dll might require.

    Your dll will be able to read these additional configuration settings using standard .Net app config API.

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

Sidebar

Related Questions

I'm currently using the Visual Studio Installer (Setup Project) in Visual Studio 2010 as
I am creating WiX installer to drop my custom VS 2010 extension inside Visual
I have a WiX (Windows installer XML) v3, project which contains references to other
I am new to wix (Windows Installer XML) so I folloed some tutorials like
I am trying to create a custom installer technology for some fun and generic
We use Wix to build an installer for our .NET application and are just
I tried to use the code below in Wix. But when installing, the installer
I'm attempting to use Wix to create a database during install. I have my
I'm using MSBuild to customize the build process of Visual Studio, WiX, SandCastle, ...
How do you use WiX to create a second service pack for your app?

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.