Page 1 of 1

Custom installation trend

Published: September 25, 2017 - 12:37 PM
by Daniel Traversa
Hello,

is it possible to condition the installation of a package based on the presence of a program in the machine's software inventory?

I have a Trend Micro antivirus to install with two possible scenarios:
1. Previous installation (v.11.0.4778
) -> run a migration utility ->
run the installation MSI file;

2. No installation
-> run the installation MSI file.

I would like to do something like this:
if v.11.0.4778 is installed
, then run the migration utility
and run the installation utility;
otherwise, run the installation utility.



Thank you.

Re: Trendy custom installation

Published: September 25, 2017 - 6:35 PM
by agauvrit
Hello,

it's possible. Look into the `installed_software`

Here's an example in the documentation: https://www.wapt.fr/fr/doc/CreationPaqu ... nstall-cmd

You can then test the installed version using the `version` returned by this function and proceed with your version upgrade.

Alexandre

Re: Trendy custom installation

Published: September 28, 2017 - 09:00
by Daniel Traversa
Perfect, thank you.
I missed it in the documentation.