They are both. You can also call each of them an application or a package. The one thing you may not do is call either of them "a software."
(They do not have to be installed on a computer to be called by these names. They are programs, applications, etc., even if they are on a CD-ROM and have not yet been installed. Installing them does not change what they are.)