10-09-2020 02:22 PM
10-09-2020 02:22 PM
Is there no other way to provision (and uninstall) a package for all users other than to use the PowerShell commands (Add-AppProvisionedPackage, Remove-AppPackage)?
As far as I can tell PowerShell is the only way to accomplish this. Unfortunately that is not acceptable for non-technical end users who are used to simply double-clicking on the setup.exe to install software.
Does this go against MSIX fundamentals, or is this something that might be possibly added in the future?
If there's no other way to do this, could I suggest we introduce an 'AllUsers' restricted capability to the appxmanifest file that flags the package so that when a user double-clicks the package to install it, it gets provisioned for all users (naturally would require prompting for elevated privileges). Similarly, any user who tries to uninstall the package should get prompted for elevated privileges - once elevated, the uninstall should uninstall for all users.
Without this functionality, I think we will be stuck using MSI well into the future for our nice new .NET Core applications.
10-13-2020 12:03 PM
Currently the installation of an MSIX app to all users does require the use of the Add-AppxProvisionedPackage PowerShell cmdlet, or the use of the DISM parameter /add-appxprovisionedpackage.
Have you considered using the following PackageManager API to force the provisioning of your MSIX app package to your devices, making it accessible to all users?
I hope this was helpful.
10-14-2020 11:00 AM
Thanks for the reply. I wasn't aware of the API, but if I understand the documentation correctly the only way to achieve the 'double-click to install' that we get with MSI is to create a bootstrapper application that has the MSIX package embedded in it (like a setup.exe does with MSI package). That would imply needing to build out the UI experience and handling of install progress etc (assuming the API supports that). While it may be technically possible, it's not the type of software we'd want to spend our time building out and maintaining.
This seems like the type of thing a 3rd party vendor like Advanced Installer, or Flexara should be tackling rather than an independent ISV. Even better would be to have built-in support for it as I suggested above.
Is it worth me adding an entry into the ideas area of the MSIX Tech Community for future consideration? Or is there a technical/business reason that it's not made it into the queue? Seems like a fairly common thing for an ISV to install an app for all users - I'm surprised it isn't easily supported.
10-14-2020 11:27 AM
I would always recommend creating a feature improvement idea and putting it out to the MSIX Tech Community for their input. I have created a backlog item to provide the User / IT Pro with the option to selectively install an MSIX app for current / all users when double-clicking on the MSIX app installer.
10-14-2020 02:23 PM
Thanks! I've submitted a suggestion to the community as well. In addition to optionally allowing it for the end user / IT Pro to enable, I think it's also important to allow the vendor to flag the package at development time so that the end user doesn't have to be forced with making the decision, or worse, making it incorrectly and having to remove/re-add the package to get it as they expect it.
Would love to see this move forward. MSIX is a big step forward from MSI, but without this, I just can't see it taking over MSI for independent software vendors who license their software based on machine rather than a Microsoft account.