如何在没有证书的情况下安装 UWP 包?
How to install UWP package without certificate?
通常当我们下载并安装一个应用程序时,我们只需点击安装、同意许可、设置位置就可以了。应用已安装。
今天我导出了一个 UWP 应用程序,release 文件夹也包含安装程序,但我无法以相同的方式安装它,我不得不 运行 一个 PowerShell 脚本来安装应用程序或者我必须手动安装 'certificate',然后我才能安装程序。为什么?
这有点麻烦。我怎样才能避免这种情况?如果证书安装是强制性的,那么为什么其他程序不需要这个?他们使用任何内置证书吗?如果是这样,我该如何制作这样的东西?如何将自己(/我的应用程序)标记为可信任的 publisher/trusted 来源?
简而言之,我的问题是,我怎样才能制作一个简单的安装程序?
我对此很陌生,请帮助我。我已经添加了我的发布文件夹的屏幕截图。这可能会帮助您理解我在说什么。
基于重要部分document,它提到
If you're publishing your app in Microsoft Store, your app will be
signed with a trusted certificate for you. This allows the user to
install and run your app without installing the associated app signing
certificate.
所以当您从商店下载并安装应用程序时,您只需要安装应用程序而无需安装证书。
If you are installing the app package on your device, you first need
to trust the package. To trust the package, the certificate must be
installed on the user's device.
因此如果您和其他用户想要安装该包,需要先使用PowerShell或手动在设备上安装证书,然后您才能安装该包。
通常当我们下载并安装一个应用程序时,我们只需点击安装、同意许可、设置位置就可以了。应用已安装。
今天我导出了一个 UWP 应用程序,release 文件夹也包含安装程序,但我无法以相同的方式安装它,我不得不 运行 一个 PowerShell 脚本来安装应用程序或者我必须手动安装 'certificate',然后我才能安装程序。为什么?
这有点麻烦。我怎样才能避免这种情况?如果证书安装是强制性的,那么为什么其他程序不需要这个?他们使用任何内置证书吗?如果是这样,我该如何制作这样的东西?如何将自己(/我的应用程序)标记为可信任的 publisher/trusted 来源?
简而言之,我的问题是,我怎样才能制作一个简单的安装程序?
我对此很陌生,请帮助我。我已经添加了我的发布文件夹的屏幕截图。这可能会帮助您理解我在说什么。
基于重要部分document,它提到
If you're publishing your app in Microsoft Store, your app will be signed with a trusted certificate for you. This allows the user to install and run your app without installing the associated app signing certificate.
所以当您从商店下载并安装应用程序时,您只需要安装应用程序而无需安装证书。
If you are installing the app package on your device, you first need to trust the package. To trust the package, the certificate must be installed on the user's device.
因此如果您和其他用户想要安装该包,需要先使用PowerShell或手动在设备上安装证书,然后您才能安装该包。