SOLVED

MSIX Set Installation Path

%3CLINGO-SUB%20id%3D%22lingo-sub-3043210%22%20slang%3D%22en-US%22%3EMSIX%20Set%20Installation%20Path%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3043210%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20to%20change%20the%20MSIX%20installation%20path%3F%3F%3C%2FP%3E%3CP%3EReferred%20this%20url%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-behind-the-scenes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-behind-the-scenes%3C%2FA%3E%3C%2FP%3E%3CP%3EAlways%20installer%20package%20is%20created%20in%20default%20location%20C%3A%5CProgram%20Files%5CWindowsApps.%3C%2FP%3E%3CP%3ENeed%20to%20set%20the%20installer%20location%20to%20different%20location.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

How to change the MSIX installation path??

Referred this url - https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes

Always installer package is created in default location C:\Program Files\WindowsApps.

Need to set the installer location to different location.

2 Replies

@Archana2240 thank you for your question. Someone will respond to your question as soon as possible. Our response times are a bit delayed with the holidays.

best response confirmed by Aditi_Narvekar (Microsoft)
Solution

Hi @Archana2240 

 

The installation path of an MSIX package cannot be changed. All the files you have included in your package are installed inside an app-specific folder under "C:\Program Files\WindowsApps<your app>\".

This is a design decision from Microsoft. Only for MSI/EXE installers you can change the install path.

 

If you want to add files in other folders too, you need to copy them the first time your application is launched. For that, you have multiple options. You can write your own code inside your application to copy the files in other folders or you can use third-party MSIX packaging tools to help you do it.

To understand more about MSIX and how files outside of the installation path can be managed I recommend this article/presenta... I wrote last month.