Hi Prasad,
Indeed, the encountered behaviour is correct because there is no published event on
Cancel control from the
ExitDialog.
In order to overcome this in a
Professional project type, you can edit the .AIP (project file) in a text editor (e.g. notepad) and add manually a published event.
So, please locate the following line in the AIP:
Code: Select all
<COMPONENT cid="caphyon.advinst.msicomp.MsiControlEventComponent">
Please add the following line:
Code: Select all
<ROW Dialog_="ExitDialog" Control_="Cancel" Event="EndDialog" Argument="Return" Condition="AI_INSTALL" Ordering="0"/>
As a best practice, please add the above line between these lines:
Code: Select all
<ROW Dialog_="ResumeDlg" Control_="Install" Event="EndDialog" Argument="Return" Condition="AI_RESUME" Ordering="299"/>
<ROW Dialog_="VerifyReadyDlg" Control_="Install" Event="EndDialog" Argument="Return" Condition="AI_PATCH" ordering="199"/>
In the end, you should have something like that:
Code: Select all
<ROW Dialog_="ResumeDlg" Control_="Install" Event="EndDialog" Argument="Return" Condition="AI_RESUME" Ordering="299"/>
<ROW Dialog_="ExitDialog" Control_="Cancel" Event="EndDialog" Argument="Return" Condition="AI_INSTALL" Ordering="0"/>
<ROW Dialog_="VerifyReadyDlg" Control_="Install" Event="EndDialog" Argument="Return" Condition="AI_PATCH" Ordering="199"/>
Before making any change, please make sure you have a back-up of the .AIP(project file).
Also, please make sure this is the only diff between your projects, otherwise you might broken other things.
Please let me know if you need any help.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging