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.
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.