Exemplo n.º 1
0
 protected override void Uninstall()
 {
     Context.ComponentId = GetComponentID(Context);
     AppConfig.LoadComponentSettings(Context);
     SetupScript Script = null;
     switch (ModeExtension)
     {
         case ModeExtension.Normal:
             {
                 Script = new UninstallScript(Context);
                 var Act = new InstallAction(ActionTypes.DeleteShortcuts);
                 Act.Description = "Deleting shortcuts...";
                 Act.Log = "- Delete shortcuts";
                 Act.Name = "Login to WebsitePanel.url";
                 Script.Actions.Add(Act);
             }
             break;
         case ModeExtension.Backup:
             Script = new BackupScript(Context);
             break;
         default:
             throw new NotImplementedException("Uninstall " + ModeExtension.ToString());
     }
     Script.Run();
 }
Exemplo n.º 2
0
 protected override void Uninstall()
 {
     Context.ComponentId = GetComponentID(Context);
     AppConfig.LoadComponentSettings(Context);
     SetupScript Script = null;
     switch (ModeExtension)
     {
         case ModeExtension.Normal:
             Script = new UninstallScript(Context);
             break;
         case ModeExtension.Backup:
             Script = new BackupScript(Context);
             Script.Actions.Add(new InstallAction(ActionTypes.StopWindowsService));
             break;
         default:
             throw new NotImplementedException("Uninstall " + ModeExtension.ToString());
     }
     Script.Run();
 }