Reputation: 23
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.
Upvotes: 1
Views: 1150
Reputation: 21899
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.
Upvotes: 2