Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Launch language-based file when installation finish

After the user clicked "Finish" on the Exit dialog, we need to launch a file based on user's language selection. I tried Finished Actions in ExitDialog (file is launched but unable to use different file based on language). Tried Launch a File in Custom Action - file is launched too early. Can this be done in Advanced Installer or need to use a .net custom function?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Launch language-based file when installation finish

Hello Jon,

In order to achieve that you can add the predefined Launch file custom action without sequence from the Custom Actions page. Also, you should add a custom action for each language defined in your installation package.

Then, in the Dialogs page, you can add these custom action to be executed as a published events on the Finish button from the ExitDialog dialog. Here's an article with related information for hints and guidance: How do I execute a custom action when a button is pushed?.
You should condition the execution of these custom action depending the ProductLanguage property.

Also, I've attached a .zip file that contains a sample which implements a similar scenario. Depending the installation language, at the end of the installation process the corresponding file will be launched(in English or in French).

Please let us know if that helped otherwise give us more details about your specific scenario.

Best regards,
Dan
Attachments
Sample.zip
(3.17 KiB) Downloaded 441 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Re: Launch language-based file when installation finish

Thank you for your prompt response and the clear instruction! I got it working now.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Launch language-based file when installation finish

You're welcome Jon,

I'm glad you got this working. If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

Re: Launch language-based file when installation finish

I have another question related to this topic of launching a language-based file when installation finish. Is it possible to disable launching of the file when the installer is executed using command line?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Launch language-based file when installation finish

Hi Jon,

I assume that your installation package will be installed through the command line using Msiexec.exe statementes in order to launch it without User Interface. Since there will be no User Interface, there will be no published events execution, so your file will not be launched.

Please let us know if this is your case, otherwise give us more details about your specific scenario.

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

Return to “Building Installers”