none
WPF程序怎么获取metro程序AppUserModelId呢? RRS feed

  • 问题

  •   private void Button_Click_2(object sender, RoutedEventArgs e)
            {
             
               // string PackageFullName = @"WindowsApps\Microsoft.BingNews_3.0.1.174_x86__8wekyb3d8bbwe";
               // var appUserModelId = Helpers.GetAppUserModelId(PackageFullName);
                var appUserModelId = @"Microsoft.BingNews_8wekyb3d8bbwe!AppexNews";         
                var exec = @"C:\Program Files\Windows Kits\8.0\App Certification Kit\microsoft.windows.softwarelogo.appxlauncher.exe";
                if (!File.Exists(exec))
                {
                    System.Windows.MessageBox.Show("Please install Windows App Certification Kit for Windows RT");
                }
                var processInfo = new ProcessStartInfo()
                {
                    Arguments = appUserModelId,
                    UseShellExecute = false,
                    CreateNoWindow = true,
                    FileName = exec
                };
    
                Process.Start(processInfo);
                
            }
    我现在知道只需要metro程序在注册表的AppUserModelId就可以用桌面WPF程序启动metro程序,我看了一下,有些AppUserModelId不是固定的,怎么获取metro程序AppUserModelId呢?
    • 已移动 Jamles Hez 2014年1月27日 10:03 windows store app forum only accept winrt develop issue
    2014年1月27日 8:00