Windows Store App running .msi installer

只谈情不闲聊 提交于 2019-12-24 11:42:04

问题


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. 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 = downloaded .msi installer

Any ideas?

Thanks for any advice.


回答1:


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.



来源:https://stackoverflow.com/questions/32771306/windows-store-app-running-msi-installer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!