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!

prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

"Launch application at the end of installation" option error

Hi,

I have created an installer by checking the option "Launch application at the end of installation" in the ExitDialog. Now, even if I close the Exit Dialog after installation completes, its launching the application. This should happen only if clicks "Finish" with "Launch Application" checked. But this is happening even if user simply closes the exit dialog. May anyone please suggest where I am going wrong? Or if I missed something?

Thanks in advance.
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

Hi Prasad,

This is happening because the X button is placed on the Finish control. You can fix this in the Control Tab Order Dialog where you can set the X button on the Cancel Control ID.

A fix will be available in the next version of Advanced Installer, thank you for bringing it to our attention.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: "Launch application at the end of installation" option e

Hi Dan,

Many thanks for your reply.

Is that option "Control Tab Order" is only available in Enterprise type project? I have a Professional License.

Is there an alternate way?

Thanks in advance.

Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

Hi Prasad,

In this case, you can edit the UI.aip resource file from the installation folder of Advanced Installer. E.g. the default installation path is:

Code: Select all

C:\Program Files (x86)\Caphyon\Advanced Installer 11.8\themes\classic\fragments
Please locate the following row in the UI.aip resource:

Code: Select all

<ROW Dialog="ExitDialog" HCentering="50" VCentering="50" Width="370" Height="270" Attributes="3" Control_Default="Finish" Control_Cancel="Finish" TitleLocId="Dialog.ExitDialog"/>
replace it with the following one:

Code: Select all

<ROW Dialog="ExitDialog" HCentering="50" VCentering="50" Width="370" Height="270" Attributes="3" Control_Default="Finish" Control_Cancel="Cancel" TitleLocId="Dialog.ExitDialog"/>
If there is anything else I can help you with, please let me know.

Best regards.
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: "Launch application at the end of installation" option e

Hi Dan,

Thank you for your support.

I changed UI.aip as you suggested, but after that when I tried the new build, close (X) button not working. Even though I click, nothing happens. Close event doesn't get fired.

May I know if I missed something?

Thanks
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

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
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: "Launch application at the end of installation" option e

Thanks for your help Dan. This worked for me.

Thanks again,
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

You're welcome Prasad,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: "Launch application at the end of installation" option e

Hi Dan,

May I know whether this will be fixed in the next version of Advanced Installer (>11.8)?

Thanks
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

Hi Prasad,

Yes, this fix will be available in the next version of Advanced Installer which will be released soon, couples of days.
If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: "Launch application at the end of installation" option e

Hi Dan,

Thank you for your reply.

Thanks
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

You're welcome Prasad,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

Hello,

This was fixed in version 11.9 of Advanced Installer released on March 17th, 2015.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: "Launch application at the end of installation" option e

Hi Dan,

Many thanks for the info.

Thanks
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: "Launch application at the end of installation" option e

You're welcome Prasad,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”