ciulany
ciulany

Reputation: 23

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.

Upvotes: 1

Views: 1150

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

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

Related Questions