Python Forum
Install Python Using ShellScript
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install Python Using ShellScript
#1
Question 
Hi,

I have a requirement like to install Python using shellscript...

I'm able to download it, but couldn't silent the steps after downloading


I'm using this code

#!/bin/bash

# Define the URL of the Python installer
url="https://www.python.org/ftp/python/3.9.9/python-3.9.9-amd64.exe"

# Define the destination path
destination="C:\temp\python-3.9.9-amd64.exe"

# Use curl to download the file
curl -o "$destination" "$url"

# Start the installation process silently
cmd.exe /c start /wait "$destination" /quiet InstallAllUsers=1 PrependPath=1

Can anyone help me with this code.

Thanks!

Attached Files

Thumbnail(s)
   
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020