I have one software which consists of several applications which need to be installed on Windows. Its installation is within the C:/Program Files/ApplicationName/…
Some of those applications are run as service - some are not, for some of them exist configuration within the Registry but for some of them not. Is there maybe some native function, operation, method in PowerShell that can check somehow if specific application is installed on Windows or not? Or how to achieve this? What will be the best way?
The main purpose is that because I run 2 scripts using the PowerShell for those applications: installation and upgrade occasionally. If application does not exist then run installation script with all required parameters, if it exists then run Upgrade script with different arguments.
Thanks in advance!!!