markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Launch custom URL on setup exit

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?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Launch custom URL on setup exit

Hi,

I'm not sure what is the problem. Can you please send us the project file generated with Advanced Installer and a verbose log created during the install at support at advancedinstaller dot com so we can further investigate on this?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”