[英]Windows Store App running .msi installer
I am developing a windows store app which downloads a MSI file from a URL. 我正在开发Windows商店应用程序,该应用程序从URL下载MSI文件。 I want to automatically run the MSI installer from C# code.
我想从C#代码自动运行MSI安装程序。
event when smart screen is disabled 禁用智能屏幕时发生的事件
var success = await Windows.System.Launcher.LaunchFileAsync(file); returns false;
file = downloaded .msi installer 文件=下载的.msi安装程序
Any ideas? 有任何想法吗?
Thanks for any advice. 感谢您的任何建议。
It is not possible to launch an MSI (or other executable formats) directly from a Windows Store app. 无法直接从Windows应用商店应用启动MSI(或其他可执行格式)。 This is specifically called out in the remarks in the LaunchFileAsync documentation.
在LaunchFileAsync文档中的备注中专门指出了这一点 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.