.NET MAUI MSIX add files

Ángel Rubén Valdeolmos Carmona 586 Reputation points
2023-07-27T05:03:41.8533333+00:00

My .NET MAUI desktop application for windows needs an .exe file and a dll (in c++) for a particular functionality. This DLL and .exe are required to be in system32. Is it possible to create an installation package (MSIX) so that the .exe and the dll are copied to system32? Or run some powershell or bat script to do the same.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,486 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,913 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,509 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,321 Reputation points
    2023-07-27T14:08:33.9866667+00:00

    Hello

    Thank you for your question and reaching out.

    Windows provides access to the application package's location.Path property for ApplicationModel.Package.Current.InstalledLocation.

    https://techcommunity.microsoft.com/t5/modern-work-app-consult-blog/msix-how-to-copy-data-outside-the-installation-folder-during-the/ba-p/1133602

    --If the reply is helpful, please Upvote and Accept as answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.