DEV Community

aminebelmili2020
aminebelmili2020

Posted on

make a program to install a software package

Hi, I want to make a program to install a software package designed in Python, such as "Silent Install Builder", can you help me in the way it works, thank you

Top comments (4)

Collapse
 
phlash profile image
Phil Ashby

Without knowing why you are asking this, advice might be misplaced however:

  • Don't write an installer program - use the tools that already exist (such as PIP) and write an installable package.
  • If your installation needs special actions that aren't already supported by the tooling, use the extension mechanisms available (eg: setup.py) to add the actions you need.
  • Choose installation tools that are appropriate for the target platform(s), eg: PIP (and PyPy repository) for portable pure Python packages, MSI for Windows installer, DEB or RPM or AppImage for Linux installations...

Hope this helps..

Collapse
 
aminebelmili2020 profile image
aminebelmili2020

I work in computer maintenance and I need a script that installs the basic programs in Windows in order to speed up my work and not repeat the process every time

Collapse
 
phlash profile image
Phil Ashby

Ah right - context! thanks 😁

I assume you're familiar with tools like Winget and Nanite (makeuseof.com/windows-10-11-batch-...), and that newer Windows platforms support provisioning packages (learn.microsoft.com/en-us/windows/...) where you can add additional software, however you wish to write your own solution...

I would only suggest looking at the source for something like Chocolatey (github.com/chocolatey/choco) to see just how ugly this problem is, before you try to re-invent the wheel! That said, a script that simply runs a collection of package installers (MSI files) with the silent mode switches can be a trivial as a few lines of .cmd file instructions.

Good luck!

Collapse
 
aminebelmili2020 profile image
aminebelmili2020

Since I am learning programming, I do not want to use the programs available in the market and try to make my own, Thanks ☺