Hello,
Unfortunately, I am afraid we do not have predefined support for such a task. The installation process is made up of standard and custom actions that are run in sequence. Once an action has finished executing, the next one enters in execution.
However, what you want to achieve is possible through the help of a custom action. I have created a PowerShell script for your reference which spawns a message box and based on the results, either continues by closing the message box (if the user presses "Yes") or loops through (when the user presses "No") until the user presses "Yes":
Code: Select all
Add-Type -AssemblyName PresentationFramework
$msgBoxInput = [System.Windows.MessageBox]::Show('The setup requires you to close the X application in order to continue. Do you want to automatically close the X application?', 'Title', 'YesNo')
if ($msgBoxInput -eq 'Yes'){[System.Windows.MessageBox]::Show('The application was closed')}
elseif($msgBoxInput -eq 'No'){
do{
$msgBoxInput = [System.Windows.MessageBox]::Show('The setup requires you to close the X application in order to continue. Do you want to automatically close the X application?', 'Title', 'YesNo')
if ($msgBoxInput -eq 'Yes'){[System.Windows.MessageBox]::Show('The application was closed')}
}
until ($msgBoxInput -eq 'Yes')
}
The above script can be further configured to match your needs.
Hope this helps.
All the best,
Catalin