We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Failing installation after the system was deferred

Hi,

During my installation, after the system is deferred I install a service.
Due to a bug, the service installation not always fail, so I must check if the service is exist at the end of my installation.
If the service is "Not Found" I want to fail the installation.
The problem is that I need failing installation is being done by "Display error message" custom action. (see http://www.advancedinstaller.com/forums ... =2&t=28888), but that custom action can be executed only immediately.

What do you suggest?
How can I fail my installation at the end, if the service was not installed after the system was deferred?

Thanks.
Nir
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Failing installation after the system was deferred

Hi Nir,

In order to achieve this you can use a VBS custom action, for example, as the one attached to the how to Abort the Install on message box response thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Re: Failing installation after the system was deferred

Thanks.

Is there a way to display error message when exit?

Right now when the installation fail it is pop-upping that there is a problem.
Can I edit that text?
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Re: Failing installation after the system was deferred

In addition, that exit always cause the installation to 'rollback' while the property DISABLEROLLBACK is set to 1

Return to “Common Problems”