'Launch application at the end of install', Build depending - 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!

DenNu
Posts: 14
Joined: Mon Aug 29, 2011 7:07 pm

'Launch application at the end of install', Build depending

Hi,

I have two different builds.
one for developers, one for costumers.
the developer can start at the end of the installation a tool.
This tool is not available for end customers. but we also in these the 'Lanch application ...' is displayed. How can this be changed.

Dennis
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: 'Launch application at the end of install', Build depend

Hi Dennis,

You can use a public property set with a per-build value. For example you can have a public property called:

Code: Select all

SHOW_LAUNCH_APPLICATION
set with True for developer build and False for the customer build.

Then, from the Dialog Editor, recreate you own checkbox that implements the launch application functionality. Here is an article to help you with this. The "let the user decide whether or not the custom action should run" section would be relevant in your case.

In the end, simply add two control conditions for your newly created checkbox:
  • Condition: SHOW_LAUNCH_APPLICATION = "True"
    Action: Show
  • Condition: SHOW_LAUNCH_APPLICATION = "False"
    Action: Hide
This way that property will be set differently in each build and dictate whether the checkbox is visible or not.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DenNu
Posts: 14
Joined: Mon Aug 29, 2011 7:07 pm

Re: 'Launch application at the end of install', Build depend

Hi,
the functions are not available in my version (prof).
I think this should be taken into account automatically.
If the feature (application) does not contain such dialog should consider this.

Dennis
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: 'Launch application at the end of install', Build depend

Hi Dennis,

Thank you for your suggestion. Unfortunately, control conditions are intended to be available starting with the Enterprise edition by using the Dialog Editor.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DenNu
Posts: 14
Joined: Mon Aug 29, 2011 7:07 pm

Re: 'Launch application at the end of install', Build depend

OK, I understand.

I think that there is an error, however. If the file in the feature is not included, must be considered.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: 'Launch application at the end of install', Build depend

Hi,
I think that there is an error, however. If the file in the feature is not included, must be considered.
I'm afraid I don't understand what you mean by this. Can you please be more specific and exemplify?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DenNu
Posts: 14
Joined: Mon Aug 29, 2011 7:07 pm

Re: 'Launch application at the end of install', Build depend

Gladly.

One feature, the file contains One.exe.
After the installation is to be started One.exe.

Two feature does not contain the file.
Therefore, at the end of the installation should not referring to the start of the application must contain.

At the end of the installation is displayed that 'Run one' . "Only this file (One.exe) is not available. Are displayed in this case would have 'Exit'.

See Themes Spring/ExitDialog Button Run...
and Launch Application/Application: 'One.exe'

The file to be started is not dependent on a particular feature, but for all.
klatu
Posts: 6
Joined: Wed Jan 11, 2012 11:29 pm

Re: 'Launch application at the end of install', Build depend

I think I have the same issue, with a slightly different use case. I have a 32bit and 64bit versions of my application. The 'LAUNCH APPLICATION AT THE END OF INSTALL' only lets me select one file. I need it to select either the 32bit or 64bit version since only 1 exists after the installation. This is correctly handled when dealing with short cuts, but it appears the logic does not exist for this particular feature.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: 'Launch application at the end of install', Build depend

Hello and welcome to Advanced Installer forums,

As I mentioned above in this thread, the Professional edition's "Launch your application at the end of installation" option is not intended for conditioning.
If you need to condition this UI behavior, you must have an Enterprise project type and implement the appropriate scenario from this user guide article:
http://www.advancedinstaller.com/user-g ... ation.html

If you use an UI custom action, it can be easily conditioned from the Custom Actions page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”