Page 1 of 1

[SOLVED] Force an error

Published: August 26, 2021 - 10:31
by seb b
Hello

a WAPT 2.0 Enterprise
SRV Debian
development machine running Windows 10.

I have an old program that uses the Access 2007 framework that needs to be installed on machines where Office 2016 (which is part of a larger software suite) also needs to be installed.
Therefore, it's essential that this program be installed last, otherwise the Office installation will fail.
How can I force the package to throw an error if Office isn't installed (so I can try again later)?
I know it's possible, but I can't find the information...
I should mention that the dependencies are, in my opinion, unusable because the software suite is deployed across a wider area than the program in question.

Thank you and have a good day.

Re: Forcing an error

Published: August 26, 2021 - 12:26
by dcardon
Hello Sébastien,
if possible, add the Office 2016 package as a dependency of this package to ensure it's installed first.
Otherwise, you can run the command `error('MS Office 2016 must be installed first')`.
Regards,
Denis

[SOLVED] Force an error

Published: August 26, 2021 - 1:32 PM
by seb b
Good morning,

Unfortunately, I cannot use dependencies (several versions of Office are deployed, some belonging to a group and others not, in short, it makes too many different cases to manage).

But great for the function

Code: Select all

error
That's exactly what I was looking for.

THANKS.