Esempio n. 1
0
 def fn_install(self):
     checked = [a.text() if a.isChecked() else "" for a in self.apps]
     checked = " ".join(checked)
     command = "choco install " + checked + " -y"
     print(command)
     fn.sudo(command)
     self.close()
Esempio n. 2
0
 def fn_apps(self):
     #win = appsForm(self)
     #win.exec()
     fn.sudo("choco install x2go winscp -y")
     msgBox = QMessageBox()
     msgBox.setText("Application will be closed, please Re-Oopen")
     msgBox.exec_()
     exit()
Esempio n. 3
0
 def fn_choco(self):
     fn.sudo(
         "\"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command \"iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))\" && SET \"PATH=%PATH%;%ALLUSERSPROFILE%\\chocolatey\\bin\""
     )
     msgBox = QMessageBox()
     msgBox.setText("Application will be closed, please Re-Oopen")
     msgBox.exec_()
     exit()
Esempio n. 4
0
 def fn_basic(self):
     fn.sudo(
         'choco install git azure-cli azcopy10 winscp openssh notepadplusplus x2go -y'
     )
     msgBox = QMessageBox()
     msgBox.setText(
         "In order to SFTP to work you need to re open this application")
     msgBox.exec_()
     exit()
Esempio n. 5
0
 def fn_install(self):
     checked = [a.text() if a.isChecked() else "" for a in self.apps]
     checked = " ".join(checked)
     command = "choco install " + checked + " -y"
     print(command)
     fn.sudo(command)
     if "winscp" in checked:
         msgBox = QMessageBox()
         msgBox.setText(
             "In order to SFTP to work you need to re open this application"
         )
         msgBox.exec_()