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!
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!