OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Can python code install a software in windows? [closed]

  • Thread starter Thread starter Narsingh Maurya
  • Start date Start date
N

Narsingh Maurya

Guest
Is there any ways to download a software and install using python code. means I just wanted to write a piece of code in python that takes software installer file link, and it download the file and install in my windows without intervention.

Code:
import somthing

# for example I am taking link for notepad++
url = "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.2/npp.8.2.Installer.x64.exe" 
def downloadFile(url):
  .
  .
  .
  return softwarefile

def installingSoftware(softwarefile):
   .
   .
   return "software installed successfully"


software = downloadFile(url)
installingSoftware(software)

is it possible ?
<p>Is there any ways to download a software and install using python code. means I just wanted to write a piece of code in python that takes software installer file link, and it download the file and install in my windows without intervention.</p>
<pre><code>import somthing

# for example I am taking link for notepad++
url = "https://github.com/notepad-plus-plu...eases/download/v8.2/npp.8.2.Installer.x64.exe"
def downloadFile(url):
.
.
.
return softwarefile

def installingSoftware(softwarefile):
.
.
return "software installed successfully"


software = downloadFile(url)
installingSoftware(software)

</code></pre>
<p>is it possible ?</p>
 

Latest posts

Top