• 大小: 11.71MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-05
  • 语言: 其他
  • 标签: 开源  

资源简介

AppxInstaller, 在 Windows 存储外安装Uwp应用程序的工具 这种repostitory在respose中是以一些关于通用 Windows 平台( UWP ) 应用的错误和错误信息( 特别是关于它们对 Windows 存储和suppsed无法在它的外部发布)的信息而创建的。这里repostitor

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Security.Principal;
using System.Threading.Tasks;
using System.Windows;

namespace AppxInstaller
{
    /// 
    /// Interaction logic for App.xaml
    /// 

    public partial class App : Application
    {
        public static string Target;

        protected override void onstartup(StartupEventArgs e)
        {
            if (!new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator))
            {
                ProcessStartInfo startInfo;

                startInfo = new ProcessStartInfo();
                startInfo.FileName = this.GetType().Assembly.Location;
                startInfo.Arguments = e.Args.ElementAtOrDefault(0); // if you need to pass any command line arguments to your stub enter them here
                startInfo.UseShellExecute = true;
                startInfo.Verb = “runas“;
                Process.Start(startInfo);
                Process.GetCurrentProcess().Kill();
            }
            Target = e.Args.ElementAtOrDefault(0);
            base.onstartup(e);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-14 13:03  AppxInstaller-master\
     文件          56  2018-08-14 13:03  AppxInstaller-master\.gitignore
     文件        5217  2018-08-14 13:03  AppxInstaller-master\AppxInstaller.sln
     目录           0  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\
     文件         186  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\App.config
     文件         380  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\App.xaml
     文件        1270  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\App.xaml.cs
     文件        5235  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\AppxInstaller.csproj
     文件         452  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\AppxInstaller.csproj.user
     文件        7872  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\AuthenticodeTools.cs
     文件        1348  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\MainWindow.xaml
     文件        3733  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\MainWindow.xaml.cs
     目录           0  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\Properties\
     文件        2440  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\Properties\AssemblyInfo.cs
     文件        2855  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\Properties\Resources.Designer.cs
     文件        5612  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\Properties\Resources.resx
     文件        1096  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\Properties\Settings.Designer.cs
     文件         201  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\Properties\Settings.settings
     文件         627  2018-08-14 13:03  AppxInstaller-master\AppxInstaller\README.md
     文件        1103  2018-08-14 13:03  AppxInstaller-master\LICENSE
     文件        3908  2018-08-14 13:03  AppxInstaller-master\README.md
     目录           0  2018-08-14 13:03  AppxInstaller-master\SampleApp\
     文件         259  2018-08-14 13:03  AppxInstaller-master\SampleApp\App.xaml
     文件        3870  2018-08-14 13:03  AppxInstaller-master\SampleApp\App.xaml.cs
     文件         160  2018-08-14 13:03  AppxInstaller-master\SampleApp\ApplicationInsights.config
     目录           0  2018-08-14 13:03  AppxInstaller-master\SampleApp\Assets\
     文件        1430  2018-08-14 13:03  AppxInstaller-master\SampleApp\Assets\LockScreenLogo.scale-200.png
     文件        7700  2018-08-14 13:03  AppxInstaller-master\SampleApp\Assets\SplashScreen.scale-200.png
     文件        2937  2018-08-14 13:03  AppxInstaller-master\SampleApp\Assets\Square150x150Logo.scale-200.png
     文件        1647  2018-08-14 13:03  AppxInstaller-master\SampleApp\Assets\Square44x44Logo.scale-200.png
     文件        1255  2018-08-14 13:03  AppxInstaller-master\SampleApp\Assets\Square44x44Logo.targetsize-24_altform-unplated.png
............此处省略30个文件信息

评论

共有 条评论