r/AskComputerScience • • Apr 04 '21

What is actually going on when you"install" software on a computer?

Pretty much the title. When you download a piece of software (or bought the cd if you're old enough to remember doing that) and it has to be installed, what is the computer actually doing? I know the files have to be copied over into the drive, but what else is being set up/done by the computer to install the software?

31 Upvotes

10 comments sorted by

2

u/AnOnlineHandle Apr 04 '21

Files get put in the install location (usually uncompressed from a package file).

It might tell Windows/whatever that it's installed and what file to open (with what extra commands) to initiate uninstall, so that it can be managed through Windows Add/Remove.

It might add a shortcut on the menu or desktop.

It might create a saving location as a folder in My Documents or something, and a temporary working folder in the strange temp working space of Windows etc, but it probably doesn't do those until it runs and sees that it needs them.

More modern programs might download more files, with only a very small installer.

It might create a service or something which runs in the background all the time on Windows/etc.

It might add itself to the list of things at startup.

6

u/[deleted] Apr 04 '21

depends on the operating system

8

u/callum_n66 Apr 04 '21

It also depends on the installer/the software you are installing, if they don’t come included in the download/cd, it may be downloading any 3rd party dependencies/libraries which the software needs to run

The first 2 paragraphs on the Wikipedia page for installation give a good summary of this and other processes that may happen

1

u/armorealm Apr 04 '21

Yea a lot of modern programs do seem to download a lot of their files nowadays.

1

u/armorealm Apr 04 '21

Yea I figured the details would depend on the OS. But there must be general principals that apply across the board.

6

u/PoneiGoesVroom Apr 04 '21

By installing Software on a computer, you're actually copying files and setting up code that will initialize the program. A good example for this would be the linux terminal. Every time you install something using sudo apt-get, you copy the packages and get scripts that initialize the command you asked for. The same goes for most software, just on a larger scale.

5

u/anamorphism Apr 04 '21

think about the only general thing that /u/baddspellar didn't mention was that the files are almost always compressed to save space and the installation process will involve decompressing them as well.

39

u/[deleted] Apr 04 '21

[removed] β€” view removed comment

3

u/armorealm Apr 04 '21

Cool thanks! That's a pretty good overview. It's just such a mystery to me πŸ˜‚