Disable RUNAPPLICATION checkbox - Advanced Installer Community

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!

sbrill
Posts: 5
Joined: Mon Jul 16, 2007 6:38 pm

Disable RUNAPPLICATION checkbox

Hello,

I've been trying to figure out a way to disable the checkbox that controls the launch application action. I noticed that the control condition is greyed out for it. Is there a way to disable it in a vb script? If so, how? Thank you in advance for you time.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Why do you want to disable that checkbox? Note that the checkbox is not shown if "Launch application at the end of installation" is not checked in "Finish Actions" page.

However, you can disable it like this: in the "Properties" list of the "Launch your application" checkbox, under "Attributes" section, you set "Enabled" to FALSE.

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbrill
Posts: 5
Joined: Mon Jul 16, 2007 6:38 pm

Well the reason I want to disable it is because if one feature does not get installed the application that would be launched would not have the files to work correctly. So I need to disable it depending on if a feature is installed or not. If this is not possible, then can I set up my own checkbox to launch the application? If I do that, how do I launch the application in a vb script?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Here is how you can do this:
- create a checkbox on the "ExitDialog" dialog
- set the property name CHECK (for example) and the value 1
- on "Control conditions" create a new condition
- push the "..." button and on the "Predefined Conditions", double-click Test if the feature will be installed local. The feature is not reinstalled and select the feature required for launching the application
- under "UI Custom Actions" create a "New Installed Custom Action" and select the application you want to launch
- on the "ExitDialog" dialog select the "Finish" button and under "Published Events" create the following event:

Code: Select all

DoAction       name_of_lauch_app      AI_INSTALL AND CHECK=1
Where name_of_launch_app is the name of the custom action you created.

Make sure this event is before the "EndDialog" event!

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbrill
Posts: 5
Joined: Mon Jul 16, 2007 6:38 pm

Thank you that was exactly what I needed.

Return to “Common Problems”