Fail unattended installation with errortext when install parameter is missing - Advanced Installer Community
philbo
Posts: 11
Joined: Mon May 04, 2015 12:33 pm

Fail unattended installation with errortext when install parameter is missing

Hi,

I have a few Install Parameters (Package Definition -> Install Parameters -> Properties) which I also use for unattended installation.

Is there a possibility to throw an error in case one of these parameters are not set in the unattended installer string? Or maybe even better, create an errortext? I do not want to use the default values of the properties, when they are missing :/.

BR,

Philipp
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Fail unattended installation with errortext when install parameter is missing

Hello Philipp,

Yes, you can do so by using your own custom action which will spawn the desired error message. Also, in the "Condition" field of your custom action you should use a statement like this:

Code: Select all

MY_PROP = <prop default value>
If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
philbo
Posts: 11
Joined: Mon May 04, 2015 12:33 pm

Re: Fail unattended installation with errortext when install parameter is missing

Hi,

it tried a few things but they didn't worked out :). I think I was not clear enough: what I am doing is a quite unattended installation /qn.

I want to abort installation as soon as possible, if a few install parameters are missing. What I have done until now is created a custom action, which checks the install parameters. However no matter which return value I execute in my Powershell Custom Action, the installation is not aborted. That was at least my workaround :).

Do you any other advice for me?

BR,

Philipp
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Fail unattended installation with errortext when install parameter is missing

Hello Philipp,

Can you please send us the .aip (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

It will be very useful if you can isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”