Auto launch windows app from webpage, giving dialogue

I have developed a windows phone application using phonegap. Also I have implemented auto launch of app from uri.

I am using using location.href = “indiamartapp:///enq/” in a webpage to open app.

It works perfect.

But if app is not installed in device it gives a dialogue box asking to search app on store.

This dialogue is spoiling my user experience.

I want if app is not installed it should not show any dialogue.

Content of dialogue is “Search for app in the store”

Please suggest me some solution.

Please someone suggest me a solution, I am stucked…