NanaZip icon indicating copy to clipboard operation
NanaZip copied to clipboard

Installation for All Users?

Open Wolverine1977 opened this issue 1 year ago • 4 comments

If this is documented somewhere -apologies, I searched the website and couldn't see anything. Is there a way NanaZip can be installed for all users on a system? e.g. 7-zip, WinRAR etc. when installed are available for any user that logs on to a system, NanaZip appears to be user or profile specific? Is this possible or is this how all .msixbundle files are designed to work? Thanks for reading.

Wolverine1977 avatar Sep 27 '22 00:09 Wolverine1977

Maybe it will be helpful.

https://learn.microsoft.com/en-us/uwp/api/windows.management.deployment.packagemanager.provisionpackageforallusersasync?view=winrt-22621#windows-management-deployment-packagemanager-provisionpackageforallusersasync(system-string)

Kenji Mouri

MouriNaruto avatar Sep 27 '22 03:09 MouriNaruto

You can execute this command in PowerShell (need run as admin): Add-AppxProvisionedPackage -Online -PackagePath <The path of the MSIX package> -SkipLicense or this command in CMD/PowerShell (need run as admin): DISM.exe /Online /Add-ProvisionedAppxPackage /PackagePath:<The path of the MSIX package> /SkipLicense

More custom options you can find in PWSH Doc and DISM Doc

Tips:

  • Due to the police from Microsoft Store, if you offline install, first running NanaZip must connect to the Internet to get license, otherwise Windows will prevent to open NanaZip.
  • Uninstallation for all users (need run PowerShell as admin): Get-AppxPackage -Name *40174MouriNaruto.NanaZip* -AllUsers | Remove-AppxPackage -AllUsers -Confirm

Thanks for your support, NanaZip 2.x will provide installer for simplify the deployment, which uses the WinRT API mentioned by Kenji Mouri.

AndromedaMelody avatar Sep 27 '22 05:09 AndromedaMelody

Thanks for the responses - Any chance this option could be incorporated into the final Installer or option menu to select - Install for this user only / All users?

Wolverine1977 avatar Oct 03 '22 13:10 Wolverine1977

The Installer is a great work and is still far from us. However, I don't think there is any installer without options to install for all users if it could do so.

RayGicEFL avatar Oct 03 '22 14:10 RayGicEFL