pawan47
Posts: 1
Joined: Tue Feb 02, 2021 8:54 pm

Post Install Check

I have some of the requirements, which I can verify only after the install services step. Now I have a PowerShell script that runs those checks. I am using AI_SetMsiProperty to mark that this validation has failed.

Now What I want is that after running this script. If any of the checks fails or MY_PROPERTY = "value" then I want to pop a custom warning window and rollback the installation

Flow I am searching for:
Click on the Install button --> After Starting service ---> run a custom action ---> If MY_PROPERTY = "VALUE" --> show a warning message and fail the installation

Thanks
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Post Install Check

Hello and welcome to our forums,

In order to achieve what you want, you can use the "Error Message" predefined custom action.
Display error message
This custom action enables the stopping of the installation process if some condition is satisfied or not. An error message will be displayed to let the user know what happened.

The condition for stopping the install process must be entered in the "Execution Condition" field.
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”