Forum Discussion
Custom action with elevated privilege in MSIX
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
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
- JF_BAUDEOct 09, 2020Copper Contributor
Hi Bogdan
BTW is it possible to do something similar at UN-installation time for a MSIX ?
Rgds
JF BAUDE