Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
demining authored Aug 8, 2024
1 parent 428adb8 commit de62b33
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tutorials.py
Original file line number Diff line number Diff line change
@@ -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}")

0 comments on commit de62b33

Please sign in to comment.