Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 15 Dec 2007 01:48:00 -0800,    group: microsoft.public.dotnet.distributed_apps        back       


link in registry   
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?
date: Sat, 15 Dec 2007 01:48:00 -0800   author:   Alessandro Sbenaglia

RE: link in registry   
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?
>
date: Tue, 18 Dec 2007 19:01:00 -0800   author:   Mohamad Elarabi

RE: link in registry   
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?
>
date: Tue, 18 Dec 2007 19:14:00 -0800   author:   Mohamad Elarabi

RE: link in registry   
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?
> >
date: Wed, 19 Dec 2007 00:09:00 -0800   author:   Alessandro Sbenaglia

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us