问题
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.
- first problem is the windows smart screen - the MSI is not signed
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