Hi!
5000 millisecond timeout could be be too short - after application is registered it may take longer time to come online. WaitForAppToStart() method pings the application periodically (you could see it in
Fiddler) and does not let up while it's getting one of the 5xx return codes. If you set delay parameter to -1, then WaitForAppToStart() will keep trying indefinitely. In reality, to build an installer that will not block installation forever in case of failure, please consider setting timeout to about 60000, to give it a minute before it gives up. If you see in Fiddler that WaitForAppToStart() does not return true even after application starts returning non-5xx responses, please let us know, we'll investigate further.
After you make this work, if you are trying to launch the application the a browser, please consider using
LaunchTheAppInTheBrowser() method instead of WaitForAppToStart().
Also, just FYI, API's application registration methods now facilitate creation of application desktop shortcuts.
Please let us know if this information was helpful.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.