Custom Action after Copying files - Advanced Installer Community
pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Custom Action after Copying files

Hello.
I'm again building an Installer that installs a windows service.
I need to add a custom action (that makes some REST calls to a Server) that should execute just before the window service starts, but after the files are copied in the target directory.

Basically my custom action should write into a text file (copied by the installer to the target directory) some results from my REST-call, and the windows service is going to read that file when it starts.
I know how to do a custom action... the only thing I don't now I where to place the call to it.

Thanks for the help
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom Action after Copying files

Hello,

You need to schedule your custom action between the InstallFiles and StartServices standard actions from the Add Resources stage. Also, set the When the system is being modified (deferred) option for the Execution Time of the Custom Action Properties.

The standard actions used by Advanced Installer can be revealed using the "Show Standard Action" button on the toolbar of the Custom Actions page. Please take a look on the Windows Installer Standard Actions article which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Re: Custom Action after Copying files

Exactly what I needed !
Thanks a lot.
Worked like a charm!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom Action after Copying files

You're always welcome,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”