Skip to content

Commit 1e20f86

Browse files
committed
Fix broken exe launcher calls
1 parent c2b69a3 commit 1e20f86

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Files UWP/Interacts/Interaction.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ public static async void List_ItemClick(object sender, DoubleTappedRoutedEventAr
167167
App.ViewModel.AddItemsToCollectionAsync(App.ViewModel.Universal.path, GenericFileBrowser.GFBPageName);
168168
}
169169
}
170-
else if (clickedOnItem.FileType == "Executable")
170+
else if (clickedOnItem.FileType == "Application")
171171
{
172-
//message = new MessageDialog("We noticed you’re trying to run an executable file. This type of file may be a security risk to your device, and is not supported by the Universal Windows Platform. If you're not sure what this means, check out the Microsoft Store for a large selection of secure apps, games, and more.");
172+
//message = new MessageDialog("We noticed you’re trying to run an Application file. This type of file may be a security risk to your device, and is not supported by the Universal Windows Platform. If you're not sure what this means, check out the Microsoft Store for a large selection of secure apps, games, and more.");
173173
//message.Title = "Unsupported Functionality";
174174
//message.Commands.Add(new UICommand("Continue...", new UICommandInvokedHandler(Interaction.CommandInvokedHandler)));
175175
//message.Commands.Add(new UICommand("Cancel"));
@@ -316,9 +316,9 @@ public static async void List_ItemClick(object sender, DoubleTappedRoutedEventAr
316316
App.ViewModel.AddItemsToCollectionAsync(clickedOnItem.FilePath, PhotoAlbum.PAPageName);
317317
}
318318
}
319-
else if (clickedOnItem.FileType == "Executable")
319+
else if (clickedOnItem.FileType == "Application")
320320
{
321-
//Interaction.message = new MessageDialog("We noticed you’re trying to run an executable file. This type of file may be a security risk to your device, and is not supported by the Universal Windows Platform. If you're not sure what this means, check out the Microsoft Store for a large selection of secure apps, games, and more.");
321+
//Interaction.message = new MessageDialog("We noticed you’re trying to run an Application file. This type of file may be a security risk to your device, and is not supported by the Universal Windows Platform. If you're not sure what this means, check out the Microsoft Store for a large selection of secure apps, games, and more.");
322322
//Interaction.message.Title = "Unsupported Functionality";
323323
//Interaction.message.Commands.Add(new UICommand("Continue...", new UICommandInvokedHandler(Interaction.CommandInvokedHandler)));
324324
//Interaction.message.Commands.Add(new UICommand("Cancel"));
@@ -343,9 +343,10 @@ public static async void List_ItemClick(object sender, DoubleTappedRoutedEventAr
343343
}
344344

345345

346-
public static async Task LaunchExe(string executablePath)
346+
public static async Task LaunchExe(string ApplicationPath)
347347
{
348-
ApplicationData.Current.LocalSettings.Values["executable"] = executablePath;
348+
Debug.WriteLine("Launching EXE in FullTrustProcess");
349+
ApplicationData.Current.LocalSettings.Values["Application"] = ApplicationPath;
349350
await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
350351
}
351352

0 commit comments

Comments
 (0)