简体   繁体   中英

Windows Store App running .msi installer

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM