Forum Discussion
Single MSIX package containing two parts: requiring/not requiring administrator privileges to run
My software consists of two parts: A and NA.
Part A requires administrative rights to run.
Part NA does not require administrative rights to run.
I need to have a single MSIX installation for both parts.
I have following questions:
1. Can such an installation be built?
2. Can the A part be installed (not run after installation, but installed) without administrative privileges?
3. Is there a sample/tutorial/documentation where this situation is covered?
a-okrasinski Hi! Let me answer your questions one by one:
-No, it’s not possible. MSIX packages are designed to be installed per user and don’t support components that require administrative privileges (requireAdministrator). You can’t combine an application that needs elevated rights with one that doesn’t in a single package.
-No, not if it truly requires elevated rights. Although an MSIX package can be installed without admin permissions, any component that needs elevation won’t be able to run properly. MSIX enforces a user-level context and won’t allow running anything with higher privileges than the user who installed it.
-No, because this scenario isn’t supported by the MSIX model. Official documentation focuses on applications that work with standard user permissions. If part A must have elevated privileges, the only solution is to separate it from the rest, for example, with a dedicated installer for that specific part.
2 Replies
a-okrasinski Hi! Let me answer your questions one by one:
-No, it’s not possible. MSIX packages are designed to be installed per user and don’t support components that require administrative privileges (requireAdministrator). You can’t combine an application that needs elevated rights with one that doesn’t in a single package.
-No, not if it truly requires elevated rights. Although an MSIX package can be installed without admin permissions, any component that needs elevation won’t be able to run properly. MSIX enforces a user-level context and won’t allow running anything with higher privileges than the user who installed it.
-No, because this scenario isn’t supported by the MSIX model. Official documentation focuses on applications that work with standard user permissions. If part A must have elevated privileges, the only solution is to separate it from the rest, for example, with a dedicated installer for that specific part.
- a-okrasinskiCopper Contributor
Many thanks for such a complete and fast answer !