Hello, I've this problem: My application is distributed by clickonce on my http site. During pubblication I set "application available in start-menu". Infact I can see it but it is only an application reference. In my registry I would like to add a reference like "emule" does. I added a key like that Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc] @="URL: Toxic Protocol" "URL Protocol"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\DefaultIcon] @="<WHAT I HAVE TO PUT HERE?>" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open\command] @="\"<WHAT I HAVE TO PUT HERE????>\" \"%1\"" My problem is that if in place of <WHAT I HAVE TO PUT HERE> I put in example "c:\windows\system32\calc.exe" and in explorer bar I write txc://test the calculator starts succesfully. but if I in place of <WHAT I HAVE TO PUT HERE> I put the path of my reference ( in example http://www.mysito.net/toxic-project/Toxic-Peer.application#Toxic-Peer.application ), windows returns me an error. What I have to do? what's the correct way to link my application in the registry protocol?
Try putting iexplore.exe "http://www.mysito.net/toxic-project/Toxic-Peer.application#Toxic-Peer.application" The reasoning behind this is the following: I'm not very familiar with this but I can see that placing an .exe in there gets to run. A URL on its own is not natively runnable on Windows, you must have a client to browse the URL. So my guess is if you pass the URL to iexplore.exe (Internet Explorer) it should launch the URL. You may not need to preface the entry with C:\progra~...etc. since iexplore.exe is usually in the path. This way it can be transparent to where IE is installed on the caller's machine. Let me know if that works for you. Good luck. -- Mohamad Elarabi Lead Developer. MCTS, MCPD. "Alessandro Sbenaglia" wrote: > Hello, > I've this problem: My application is distributed by clickonce on my http > site. During pubblication I set "application available in start-menu". Infact > I can see it but it is only an application reference. > In my registry I would like to add a reference like "emule" does. > I added a key like that > > Windows Registry Editor Version 5.00 > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc] > @="URL: Toxic Protocol" > "URL Protocol"="" > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\DefaultIcon] > @="<WHAT I HAVE TO PUT HERE?>" > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell] > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open] > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open\command] > @="\"<WHAT I HAVE TO PUT HERE????>\" \"%1\"" > > My problem is that if in place of <WHAT I HAVE TO PUT HERE> I put in example > "c:\windows\system32\calc.exe" and in explorer bar I write txc://test the > calculator starts succesfully. but if I in place of <WHAT I HAVE TO PUT HERE> > I put the path of my reference ( in example > http://www.mysito.net/toxic-project/Toxic-Peer.application#Toxic-Peer.application ), windows returns me an error. > What I have to do? what's the correct way to link my application in the > registry protocol? >
Another thing to consider is to copy the values under one of the following registry nodes: [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https] All three classes are handled by url.dll and iexplore.exe this might be a cleaner solution. -- Mohamad Elarabi Lead Developer. MCTS, MCPD. "Alessandro Sbenaglia" wrote: > Hello, > I've this problem: My application is distributed by clickonce on my http > site. During pubblication I set "application available in start-menu". Infact > I can see it but it is only an application reference. > In my registry I would like to add a reference like "emule" does. > I added a key like that > > Windows Registry Editor Version 5.00 > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc] > @="URL: Toxic Protocol" > "URL Protocol"="" > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\DefaultIcon] > @="<WHAT I HAVE TO PUT HERE?>" > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell] > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open] > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open\command] > @="\"<WHAT I HAVE TO PUT HERE????>\" \"%1\"" > > My problem is that if in place of <WHAT I HAVE TO PUT HERE> I put in example > "c:\windows\system32\calc.exe" and in explorer bar I write txc://test the > calculator starts succesfully. but if I in place of <WHAT I HAVE TO PUT HERE> > I put the path of my reference ( in example > http://www.mysito.net/toxic-project/Toxic-Peer.application#Toxic-Peer.application ), windows returns me an error. > What I have to do? what's the correct way to link my application in the > registry protocol? >
yes my protocol is already in the registry. everything works well with iexplorer. thanks! "Mohamad Elarabi" wrote: > Another thing to consider is to copy the values under one of the following > registry nodes: > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp] > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http] > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https] > > All three classes are handled by url.dll and iexplore.exe this might be a > cleaner solution. > > -- > Mohamad Elarabi > Lead Developer. MCTS, MCPD. > > > "Alessandro Sbenaglia" wrote: > > > Hello, > > I've this problem: My application is distributed by clickonce on my http > > site. During pubblication I set "application available in start-menu". Infact > > I can see it but it is only an application reference. > > In my registry I would like to add a reference like "emule" does. > > I added a key like that > > > > Windows Registry Editor Version 5.00 > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc] > > @="URL: Toxic Protocol" > > "URL Protocol"="" > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\DefaultIcon] > > @="<WHAT I HAVE TO PUT HERE?>" > > > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell] > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open] > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txc\shell\open\command] > > @="\"<WHAT I HAVE TO PUT HERE????>\" \"%1\"" > > > > My problem is that if in place of <WHAT I HAVE TO PUT HERE> I put in example > > "c:\windows\system32\calc.exe" and in explorer bar I write txc://test the > > calculator starts succesfully. but if I in place of <WHAT I HAVE TO PUT HERE> > > I put the path of my reference ( in example > > http://www.mysito.net/toxic-project/Toxic-Peer.application#Toxic-Peer.application ), windows returns me an error. > > What I have to do? what's the correct way to link my application in the > > registry protocol? > >