In my app B, I need to check if app A ever installed. If A has been installed, B will invoke A
If app A and app B are not from the same publisher there is no direct way to get this. However, if you were able to work with the developer of app B to register a custom URI association, app A could interact with the app by launching the custom URI.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx