mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-04 20:21:18 +08:00
28 lines
688 B
C#
28 lines
688 B
C#
using System;
|
|
using System.Reflection;
|
|
using System.Windows;
|
|
|
|
namespace Wox.UAC
|
|
{
|
|
public partial class MainWindow : Window
|
|
{
|
|
FileTypeAssociateInstaller installer = new FileTypeAssociateInstaller();
|
|
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
string[] param = Environment.GetCommandLineArgs();
|
|
if (param.Length > 1)
|
|
{
|
|
switch (param[1])
|
|
{
|
|
case "AssociatePluginInstaller":
|
|
installer.RegisterInstaller();
|
|
break;
|
|
}
|
|
}
|
|
Application.Current.Shutdown(0);
|
|
}
|
|
}
|
|
}
|