Windows Store App运行.msi安装程序 [英] Windows Store App running .msi installer

查看:99
本文介绍了Windows Store App运行.msi安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Windows商店应用程序,该应用程序可从URL下载MSI文件. 我想从C#代码自动运行MSI安装程序.

I am developing a windows store app which downloads a MSI file from a URL. I want to automatically run the MSI installer from C# code.

  1. 第一个问题是Windows智能屏幕-未签名MSI
  2. 禁用智能屏幕时的事件

  1. first problem is the windows smart screen - the MSI is not signed
  2. event when smart screen is disabled

var success = await Windows.System.Launcher.LaunchFileAsync(file);
returns false;

file =下载的.msi安装程序

file = downloaded .msi installer

有什么想法吗?

谢谢您的建议.

推荐答案

无法直接从Windows应用商店应用启动MSI(或其他可执行格式).在 LaunchFileAsync 文档.

It is not possible to launch an MSI (or other executable formats) directly from a Windows Store app. This is specifically called out in the remarks in the LaunchFileAsync documentation.

这篇关于Windows Store App运行.msi安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆