Forum Discussion
MSIX Set Installation Path
- Dec 23, 2021
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/presentation I wrote last month.
Hi Archana2240
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/presentation I wrote last month.
Hi !
I launched my installed app and I have the exception :
Could not load file or assembly 'C:\Program Files\WindowsApps\c91007aa-dd1e-4ca9-8f0f-ed9f6baa689f_0.0.23.0_x64__m3e5crmsxbema\vcinet\x64\vcinet.x64.dll'. The specified module could not be found.
I think it's because of the C:\Program Files\WindowsApps\ rights. It works in local environement with VS2022 with the dll in AppX folder.
Note : the file is in the specified folder. If not I have "Did not find platform specific assembly (vcinet\x64\vcinet.x64.dll) in..."