Forum Discussion

stafforda's avatar
stafforda
Copper Contributor
Mar 17, 2025

MSIX appinstaller - how to include additional files

Hi,

I'm new to MSIX.

I'm using Visual Studio to build an app installer for a solution consisting of an .EXE project and some .DLL projects.

There are some other files and dlls used by the project items, which are not directly referenced in any of the projects in the solution.  However, these files are needed for the successful deployment of the application.

My question is, how do I get the app installer to include these additional files?

Thank you.

1 Reply

  • Those files need to be included in the MSIX package reference by the appinstaller, not in the appinstaller itself.

    From what I know, Visual Studio does not have an option to include in the package files that are not referenced in your project.  You have two options:

    1) Use the free makeappx.exe tool and replace the VS logic of building your package with a script you create. This tool is used in the background by VS and MSIX the packaging tool.
    https://learn.microsoft.com/en-us/windows/msix/package/create-app-package-with-makeappx-tool

    2) Use a third-party paid tool like Advanced Installer (the cheapest edition is enough) to configure the contents of the package. Tools like Advanced Installer give you a GUI where you can easily add all the files that need to be included in the package, using an explorer-like experience. After you can configure the project in Advanced Installer you can build the MSIX and the appinstaller. Here is a video showing how to do this, directly from its Visual Studio free extension.
    https://www.youtube.com/watch?v=xmYW-YbEjD4

    More powerful editing options are available in the Advanced Installer GUI, just use the option "Edit in Advanced Installer" available in the VS extension to continue editing the project.

    Disclaimer: I work on the team building Advanced Installer.

Resources