Hi,
I have modified the Exit dialog of my AI v8.7 project to include a checkbox, which in turn needs to launch a custom URL that is defined by a property named "OS_URL".
As per the AI help file, I've created a UI Custom Action that triggers "viewer.exe" with a command line of "[OS_URL]". I then tied the UI Custom Action to the finish button of the exit dialog (with the appropriate conditions, etc.).
The problem is that the "OS_URL" property doesn't seem to be resolving properly when the UI Custom Action is triggered. If I use a static URL such as "http://www.example.com", it works fine. But when I use my property, the entire setup fails due to an invalid return code from viewer.exe.
I also tried setting the UI Custom Action execution property to "Synchronous execution, ignore return code". This allows setup to succeed, of course, but the URL is still not launched. In such cases, the log file indicates:
--------------------------
Action 12:25:05: viewer.exe_launchWebInterface.
Action start 12:25:05: viewer.exe_launchWebInterface.
CustomAction viewer.exe_launchWebInterface returned actual error code -1 but will be translated to success due to continue marking
Action ended 12:25:05: viewer.exe_launchWebInterface. Return value 1.
--------------------------
I know that the "OS_URL" property is indeed being set correctly, because its value is also used during shortcut creation (which is working perfectly).
What am I missing?
FOLLOW US
Get the latest news in Application Packaging