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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:32:41+00:00 2026-06-18T12:32:41+00:00

I added a project reference to my WiX project and everything seemed to be

  • 0

I added a project reference to my WiX project and everything seemed to be working, until I went to check on the installed files.

They no longer have their extension! And therefore cannot be opened automatically opened with whatever application is registered for that extension.

Here’s the relevant code:

<Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLDIR" Name="My WiX Test">
            <Component Id="ExeCom" Guid="PUT-GUID-HERE" Directory="INSTALLDIR">
                <File Id="ExeFile" Name="ExeFile" Source="$(var.MyForm.TargetPath)" KeyPath="yes"/>
            </Component>
            <Component Id="TxtCom" Guid="PUT-GUID-HERE" Directory="INSTALLDIR">
                <File Id="TxtFile" Name="TxtFile" Source="sometextfile.txt" KeyPath="yes"/>
            </Component>
        </Directory>
    </Directory>
</Directory>

<Feature Id="Complete" Title="Complete" Level="1">
    <ComponentRef Id="ExeCom"/>
    <ComponentRef Id="TxtCom"/>
</Feature>

Once it’s installed, I go into the installation folder (Program Files\My WiX Test) and expect to click on the exe file to start up the app. But none of the files in the folder have an extension. I have to manually rename the file to add the .exe or .txt, or go through the open with dialog.

Is there a way to force WiX to add the extension, or am I doing something wrong?

  • 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-18T12:32:42+00:00Added an answer on June 18, 2026 at 12:32 pm

    As already stated in the comments, the easyest ( to much .wxs files in our project to find the tiny places we used auto-detection ) is to specify the extension within the name= property.

    After some struggle we went to the style that we even name the id the way the extension is to not have to lookup what ID belongs to what name and what file from the build.

    Example:

    <Component Id="ImplantCopyRight">
    <File Id="Copyright.txt" Name="Copyright.txt" 
    Source="$(var.SourceRoot)/08-Impl/img/license/Implants/Copyright.txt" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have added wcf service reference in project and i have installed certificate also
I have added Telerik dlls in the project reference..also included telerik namespace in View's
I've added the reference to System.Runtime.Serialization dll to my project but still can't find
I've added a Service Reference for a third-party web service to my project. When
I've got a project which as a reference added to System.Web. However, it can't
I've created a project, added a reference to System.Drawing, and added a bmp file
Suppose I have three projects in my sln. (1) xyz.a{Class Lib}{no reference added} (2)
I have been made a windows service.in which i have been added project installer.in
I have a static Web project added to an Apache server. Whenever I make
I have an ASP.NET MVC application with a separate project added for tests. I

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.