Forum Discussion
Custom action with elevated privilege in MSIX
So if I understand correctly I will have to use both of your proposals:
1) the https://www.advancedinstaller.com/user-guide/win-store-app-declarations.html to define an https://docs.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations for firewall settings
2) MSIX Custom Scripts (see latest https://github.com/microsoft/MSIX-PackageSupportFramework) for certificates settings
No other way actually ?
Rgds
JF BAUDE
Hi JF_BAUDE
Theoretically, yes you can use the PS scripts to trigger an MSI and do whatever is not supported by an MSIX package.
But in this case, may I ask: What is the point of building an MSIX if the main functionality is still inside the MSI? Why don't you stick with the MSI delivery for such kind of packages?
You'are just adding one more layer of abstraction (by wrapping the MSI with an MSIX) that increases the complexity of your package, without no major obvious benefits.
Regards,
Bogdan
- JF_BAUDEOct 07, 2020Copper Contributor
About your question related to MSI vs MSIX, we aim to go to MSIX packging because, as claimed by Microsoft, we want to benefit of easier deployment and also faster update(s) at user level.
Rgds
JF BAUDE
- JF_BAUDEOct 06, 2020Copper Contributor
Hi again
Sorry to insist but in the post https://www.advancedinstaller.com/user-guide/tutorial-msix-custom-scripts.html nothing is said about elevated privilege (i.e. Admin right)
Am I missing something ?
Can we launch PS with elevated privilege once at first execution of my App.exe ?
Rgds
JF BAUDE
- Bogdan MitracheOct 07, 2020Iron Contributor
Hi JF_BAUDE,
The PS sample from the Advanced Installer forums runs the MSI as an admin, so it should be able to install your certificates. Have you tried it?
Bogdan
- JF_BAUDEOct 07, 2020Copper Contributor
Yes I tried something similar but focused on certutil command (thru a PS script) in order to add the expected certificates
And it is working correctly !
Rgds
JF BAUDE