Launch Application finishing action: no working directory? - 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!

KoenT
Posts: 13
Joined: Mon May 18, 2009 8:30 pm

Launch Application finishing action: no working directory?

Hi,
the application I am installing requires arguments and a working directory to be set for the shortcuts (on the desktop and in the start menu) that will launch the application, and this works fine.
However, I would also like to do the same for the final action when the user presses Finish in the ExitDialog: there you can only specify the path to the .exe and arguments, but no working directory... Is there still a way to do this somehow?
I first thought, maybe I can specify one of the installed application launching shortcuts instead of an .exe (since both these do have a working directory set), but that's not possible either.
Any hint on how to solve this?
Thanks.
Koen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch Application finishing action: no working directory?

Hi,

Unfortunately the finish actions on "ExitDialog" do not support working directories. However, you can try using the approach in the Launch file after installation how-to. Instead of using a "Launch file or open URL" custom action you can use an EXE with Working Dir custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
KoenT
Posts: 13
Joined: Mon May 18, 2009 8:30 pm

Re: Launch Application finishing action: no working directory?

OK, that seems like a possible solution, yes.
But what about the already existing ExitDialog with its Launch application checkbox (RUNAPPLICATION) and Finish event? I can't seem to edit these ones to change the action into my custom action.
Do I need to build a complete new dialog for this and delete the existing ExitDialog?
And if I delete the ExitDialog, will I need to make sure all actions in other dialogs that pointed to this ExitDialog will need to be updated?
K
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch Application finishing action: no working directory?

Hi,
But what about the already existing ExitDialog with its Launch application checkbox (RUNAPPLICATION) and Finish event? I can't seem to edit these ones to change the action into my custom action.
Unfortunately the finish actions on "ExitDialog" do not support working directories. Also, it's custom action cannot be edited.
Do I need to build a complete new dialog for this and delete the existing ExitDialog?
No, this dialog cannot be deleted because it is mandatory. Instead of using the launch application finish action you can create a custom checkbox and use a custom action like explained in the how-to (the "let the user choose if the custom action runs" section). This requires the dialog editor, so it can be done only in an Enterprise project.
And if I delete the ExitDialog, will I need to make sure all actions in other dialogs that pointed to this ExitDialog will need to be updated?
"ExitDialog" is mandatory and it cannot be removed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
KoenT
Posts: 13
Joined: Mon May 18, 2009 8:30 pm

Re: Launch Application finishing action: no working directory?

I couldn't delete the already existing checkbox for launching an application either, so I put it to invisible and disabled it.
It now works fine with that custom action.
Thanks!
Koen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Launch Application finishing action: no working directory?

Hi,

Indeed, the checkbox cannot be deleted. However, if the launch application finish action is not used, the checkbox will not be shown during install.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”