UWP installer without powershell

后端 未结 2 998
情话喂你
情话喂你 2020-12-18 02:43

I am looking for a more userfriendly way to make an installer for my UWP Application. I don\'t want to distribute through the store and I am aware that you need to set the d

2条回答
  •  温柔的废话
    2020-12-18 03:06

    You can install an appx package from code with the Windows.Management.Deployment.PackageManager object's AddPackageAsync method. This is demonstrated for C++ and C# in the Add app package sample on MSDN.

    To update an existing package call PackageManager.UpdatePackageAsync

提交回复
热议问题