HighTechTalks DotNet Forums  

link in registry

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss link in registry in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Alessandro Sbenaglia
 
Posts: n/a

Default link in registry - 12-15-2007 , 04:48 AM






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\DefaultIco n]
@="<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/...er.application ), windows returns me an error.
What I have to do? what's the correct way to link my application in the
registry protocol?


Reply With Quote
  #2  
Old   
Mohamad Elarabi
 
Posts: n/a

Default RE: link in registry - 12-18-2007 , 10:01 PM






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:

Quote:
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\DefaultIco n]
@="<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/...er.application ), windows returns me an error.
What I have to do? what's the correct way to link my application in the
registry protocol?


Reply With Quote
  #3  
Old   
Mohamad Elarabi
 
Posts: n/a

Default RE: link in registry - 12-18-2007 , 10:14 PM



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:

Quote:
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\DefaultIco n]
@="<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/...er.application ), windows returns me an error.
What I have to do? what's the correct way to link my application in the
registry protocol?


Reply With Quote
  #4  
Old   
Alessandro Sbenaglia
 
Posts: n/a

Default RE: link in registry - 12-19-2007 , 03:09 AM



yes my protocol is already in the registry. everything works well with
iexplorer. thanks!

"Mohamad Elarabi" wrote:

Quote:
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\DefaultIco n]
@="<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/...er.application ), windows returns me an error.
What I have to do? what's the correct way to link my application in the
registry protocol?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.