Custom Action exe not using 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!

clive_bor
Posts: 48
Joined: Thu Mar 09, 2006 8:32 am

Custom Action exe not using working directory

Hi,

I am using AI to install a java application and have added a custom action to the commit to execute the exe generated by AI to run on install.
So the application can run once the install is complete.

The problem is the working directory for the exe is not the application directory when executed from the custom action; when printing out the working directory in my java app; it is "C:\WINDOWS\system32\". But when double clicking the exe after the install; the working directory is correct (i.e. APP_DIR).

Please advise.

Thanks
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Please note the following:
1. The recommended method to launch an application at the end of the install process is by selecting the checkbox "Launch application at the end of installation" from the Dialogs page (for the "Installation Complete" dialog). A bug related to the DLL Custom Action that performs this task has been fixed in version 3.7 of AI, so make sure you are not using an earlier version.

2. If you do not want to use the above method, then you need to use an "EXE with Working Dir" Custom Action. What type of Custom Action are you using?

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
clive_bor
Posts: 48
Joined: Thu Mar 09, 2006 8:32 am

Hi,

Thank you, both those options work. I did try the EXE with Working Dir before but i obviously had something else wrong since the install did not work.
But now all is fine. Sorry about that.

Kind Regards

Return to “Common Problems”