karlf
Posts: 30
Joined: Tue Nov 01, 2016 7:30 pm

Custom action without sequence not running

Hello,

I am trying to configure AI to detect if a particular driver is installed, and if it isn't run a custom action to install it. I am doing the detection with a powershell script, and that works fine. However, I followed the instructions here: http://www.advancedinstaller.com/user-g ... te-ca.html

for how to run a custom action on a button press. However, when I click the button, nothing happens. It should be running a .vbs script that I have in my project, but nothing is executed.

Under the published events of the button, I have the argument set to "ExecuteScriptCode", which is the name of my custom action. The condition is set to "AI_INSTALL", but I have also tested it with a condition of just "1". Neither works.

Before, I had this custom action set as an action with a sequence to run at the end of the installation, and the custom action would work just fine. However, it doesn't seem to want to work when launched from a button.

Are there any ideas on what could be causing this issue?

As always,
Thanks for the help
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom action without sequence not running

Hello,

In order to have a better view about this, can you please send us the .AIP file of your project and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”