Exemplo n.º 1
0
 public void Install(string dow)
 {
     Corelib.Write("Install Starting: " + JName);
     ZipFile.ExtractToDirectory(dow, Corelib.AppsFolder + JName + "/");
     Corelib.Write("Extract Complete\n " + Name + "\nLocation:  " + Corelib.MstorePath + JName);
     IsInstalled = true;
     File.Delete(Corelib.MstorePath + JName + ".zip");
 }
Exemplo n.º 2
0
 public void Run()
 {
     if (IsInstalled)
     {
         var currentdir = Directory.GetCurrentDirectory();
         try
         {
             Directory.SetCurrentDirectory(new FileInfo(Corelib.AppsFolder + JName + "/" + exe).Directory.FullName);
             Process Launcher = new Process();
             Launcher.StartInfo.FileName  = Corelib.AppsFolder + JName + "/" + exe;
             Launcher.StartInfo.Arguments = args;
             Launcher.Start();
             Directory.SetCurrentDirectory(currentdir);
         }
         catch (Exception ex)
         {
             Corelib.Write(Name + " can not start" + ex);
         }
     }
 }