winapi - Windows 8 protocol activation of Desktop app from a Modern App -
i have 2 versions of custom software. modern/metro app (appm) , legacy desktop application (appd). have created custom protocol appm using manifest understood. i've edited registry make custom protocol handler appd , have tested can indeed launch appd using protocol activation run dialog (win+r) supplying protocol , hitting enter, "appd://" in case. i'd able launch appm appd , appd appm. i've added handlers each. in appd i'm using process.start(uri) , in appm i'm using launcher.launchuriasync(uri). can appm launch appd never appd launch appm. i've googled , can't find references this. i'm assuming it's not possible , might have permissions. assignment has fallen me on project, need either prove it's not possible or find solution.
i've tested out using c#/xaml html/js , it's interesting find launcher.launchuriasync(uri).when() success function called, success flag false. there no error (or @ least err function never hit). i'd better error message , i'm trying dig down way.
so actual issue, or how debug both appreciated.
update: eliminate own code, downloaded , installed launch association example , changed var uritolaunch= "http://bing.com" var uritolaunch= "appd:" , fails every time. protocol associated in registry , method i'm using verify running using win+r desktop , app launches fine.
batrt application allows run batch file metro app, utilizing uri calls. should solve problem. create batch file within metro app, utilize batrt execute batch file. code snippets available @ link above.
Comments
Post a Comment