0

I have used Visual Studio to create an MSIX package by right-clicking the project and clicking

Publish>Create App Packages...

I have an Install.ps1 file that I would like to run (This is set in Visual Studio as copy to output Directory).

The Install.ps1 file is there alright and is located in the folder Install of the MSIX file.

How can I find the location of that file in my C# main program to run it?

I have looked at these threads which didn't help as I am packaging to the MSIX file.

Running a Powershell script from c#

Running PowerShell from .NET Core

See screenshot of the MSIX file opened in 7-zip.

enter image description here

Ste
  • 1,253
  • 1
  • 11
  • 21

0 Answers0