Advanced Installer Custom Action - 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!

michaelhsilva
Posts: 4
Joined: Wed Sep 14, 2011 2:38 pm

Advanced Installer Custom Action

Hello,

I need to set a folder path in a config file during the installation of a windows service. To do this I used a custom action calling an exe. But the exe isn´t fiding a dll that is located in the installer folder. Can you help me?

Michael
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Advanced Installer Custom Action

Hi Michael,

This is probably happening because the custom action is scheduled before the Install standard action. The files become available on the hard drive during this standard action.
The custom action must also be set with "Deferred" execution option.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
michaelhsilva
Posts: 4
Joined: Wed Sep 14, 2011 2:38 pm

Re: Advanced Installer Custom Action

Hello,

I´ve moved a bit. There was a code mistake with the folders. Now the exe is executed from the Appdir, but when it is really executed it says it is running from C:\Windows\system32, where is the installation folder?

thanks in advance,
Michael
michaelhsilva
Posts: 4
Joined: Wed Sep 14, 2011 2:38 pm

Re: Advanced Installer Custom Action

Hello, thanks mihai

anybody knows why the current directory of the exe used in a custom action is C:\Windows\system32?

Michael
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Advanced Installer Custom Action

Hi Michael,

This is the normal behavior, to launch the EXE with a certain working directory you can use the custom action "Exe with working Dir".
http://www.advancedinstaller.com/user-g ... #section25

However, usually config files are standard XML or INI files. If so, you can use our built-in support to update the file, therefore nod needing your custom action. Here is an example:
http://www.advancedinstaller.com/user-g ... -file.html

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”