Launch app at end of install with arguments - Advanced Installer Community
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Launch app at end of install with arguments

Hi there,

Sometimes we have arguments that we need to be appended at install time when first launching the installed app.

We have a custom action that takes the installer name, pulls some characters from it, and adds those characters to a property.

So, in the ExitDialog Launch Application fields we have the following:

Application: [APPDIR][MYEXEPATH]
Arguments: [LAUNCHARGS]

We can successfully set the LAUNCHARGS property with the string that we need. As an example, it would be /StartSession 1234.

However, it seems that either the installer doesn't see the updated property, or I'm doing something wrong.

In the msi log, we see evidence that things are working:

Code: Select all

MSI (s) (F0!94) [20:12:09:796]: PROPERTY CHANGE: Modifying LAUNCHARGS property. Its current value is ' '. Its new value: '/StartSession 7309'.
Property(S): LAUNCHARGS = /StartSession 7309
Whats worrisome, is that in that same msi log file, we see LAUNCHARGS get reset at the end:

Code: Select all

Property(C): LAUNCHARGS =  
Any advice as to what we can do?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Launch app at end of install with arguments

Hello,

I'm not sure why you encountered the this behavior.
In order to have a better view about this, can you please send us the .AIP (project file) and the full verbose log of the installation process to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Launch app at end of install with arguments

We moved the custom action into the Wizard Dialogs Stage and it's now working. It does not work in Install Execution stage in any position.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Launch app at end of install with arguments

Hello,

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

Return to “Common Problems”