Justin
Posts: 50
Joined: Sun Oct 18, 2020 5:53 pm

How to install msix in powershell that as a Custom Action

Hi,
Is it possible to package an MSIX and some APPX dependencies into an MSI and install each package individually during installation using PowerShell in a custom action?
If possible, how should the custom action be configured, and what commands should be used in PowerShell?

Thanks in advanced.
Best Regards,
Justin
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: How to install msix in powershell that as a Custom Action

Hey Justin,

It is possible to do what you want.

However, please note that for this we have a predefined "Install MSIX" custom action.
Screenshot_41.png
Screenshot_41.png (11.12 KiB) Viewed 702 times

However, if you still want to do it with PowerShell, you can use the predefined cmdlets, such as Add-AppxPackage

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Justin
Posts: 50
Joined: Sun Oct 18, 2020 5:53 pm

Re: How to install msix in powershell that as a Custom Action

Hi Catalin,

Thanks for your prompt reply. It works!!

Best Regards,
Justin
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: How to install msix in powershell that as a Custom Action

You are always welcome, Justin! :D

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”