Custom Action: Exe + Arguments Fails - 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!

cogowo
Posts: 6
Joined: Sun Sep 20, 2009 4:56 am

Custom Action: Exe + Arguments Fails

My previous service installations/updates have successfully run a VBS script.
custom_success_vbs.PNG
custom_success_vbs.PNG (27.33 KiB) Viewed 2714 times
However, my attempts to run an executable + arguments after files have been successfully installed - and, before my service is restarted - all fail.
custom_failure_exe_1.PNG
custom_failure_exe_1.PNG (35.36 KiB) Viewed 2714 times
custom_failure_exe_2.PNG
custom_failure_exe_2.PNG (32.72 KiB) Viewed 2714 times
(I have more attachments, but, the limit is three).

How do I do this? What am I doing wrong?
cogowo
Posts: 6
Joined: Sun Sep 20, 2009 4:56 am

Re: Custom Action: Exe + Arguments Fails

Additional Info:
1. Using AI v6.1
2. Executable written in C

Two more examples of failure:
custom_failure_exe_3.PNG
custom_failure_exe_3.PNG (28.17 KiB) Viewed 2711 times
custom_failure_exe_4.PNG
custom_failure_exe_4.PNG (39.56 KiB) Viewed 2711 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action: Exe + Arguments Fails

Hello,
However, my attempts to run an executable + arguments after files have been successfully installed - and, before my service is restarted - all fail.
You can try to use an "Attached Custom Action":
http://www.advancedinstaller.com/user-g ... #section20
or a "Launch File or Open URL" predefined custom action:
http://www.advancedinstaller.com/user-g ... aunch-file
The custom action should be scheduled after "InstallExecuteSequence" -> "Before Finalization" -> "InstallFiles" standard action. It should also be set with "Deferred, with no impersonation" execution option.

You may also find this article helpful.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”