Slim57
Posts: 9
Joined: Fri Sep 12, 2014 10:23 pm

APPDIR shows in red

In attempt to add custom action, I can create a new custom action of type Launch EXE with working directory by clicking the + button (no sequence) in the add custom action window. OK, no problem, I then see a dialog in which to enter File Path, Command Line, and Working Directory.

The executable that I would like to install is an app to allow user to setup up and test configuration settings, and produced a configuration file for the main target of the installer.

The executable configuration app is installed in the application folder as directed for Resources->Files and Folders.

1) When I enter [APPDIR] in file path text box, it show up red. No jagged underline, but definitely red.

The action apparently is named LaunchExeWithDirectory, this name appears in Custom Behavior->Custom Actions->Existing Custom Actions tab.

2) I cannot cut and paste LaunchExeWithDirectory to any installation stages, and it is not attempted during install, and the install fails. There is no reference to the custom action in the verbose installer log.

Sound familiar? Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: APPDIR shows in red

Hi and welcome to Advanced Installer forums.
1) When I enter [APPDIR] in file path text box, it show up red. No jagged underline, but definitely red.
This is the normal behavior, it is displayed in red because it is recognized as a property.
2) I cannot cut and paste LaunchExeWithDirectory to any installation stages, and it is not attempted during install, and the install fails. There is no reference to the custom action in the verbose installer log.
In order to add that custom action on a dialog control, you can go on that dialog, create a new "Execute custom action" published event and choose that custom action from the "Argument" list.

You can take a look on the How do I execute a custom action when a button is pushed article.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”