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!

EllosGroup
Posts: 8
Joined: Thu Jul 24, 2014 4:19 pm

Run a specific command first time an application launches

Hello,

We need to re-package an application that must be installed under Program Files (so administrator privileges is needed), however, first time the application launches its license must be registered in the user context. It's a simple string to add to the application executable the first time so my question is what the best solution would be here? My first thought was a separate script that only runs once but there might be a better way.

Thanks.

Regards,
Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Run a specific command first time an application launches

Hello Carl,

First of all I apologize for my delayed answer. We had a release yesterday and we were quite busy lately.

As a workaround, to achieve what you want you can configure the setup package to launch your application at the end of the installation (with the desired command line).

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
EllosGroup
Posts: 8
Joined: Thu Jul 24, 2014 4:19 pm

Re: Run a specific command first time an application launches

As I understood from the guide it's displayed in the dialogue during installation. We are distributing the installation silently so I guess this solution is not viable?

//Carl
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Run a specific command first time an application launches

Hello Carl,

In this case, to make sure the application is always launched (even during a silent install), then you can simply add a "Launch file" custom action with sequence, which can be scheduled after "Install Execution Stage -> Finish Execution" action group, that will launch your application.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”