| View previous topic :: View next topic |
| Author |
Message |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed May 18, 2011 12:00 am Post subject: Create File association [SOLVED] |
|
|
Hi,
It's possible (and how) create file association?
Thank you for any info
Last edited by Tdk161 on Wed May 18, 2011 6:32 pm; edited 1 time in total |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 766 Location: Eastman, GA
|
Posted: Wed May 18, 2011 1:17 am Post subject: |
|
|
Must be ran elevated.
I actually suggest writing these entries with your installer instead.
| Code: |
registry write,root,.owx,,"Office.WebSpreadsheet"
registry write,root,Office.WebSpreadsheet\shell\Open\command,,@chr(34)%0@chr(34) @chr(34)@chr(37)1@chr(34) |
|
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed May 18, 2011 6:32 pm Post subject: |
|
|
Thank you a lot, Chris
only one thing ........ your code work fine but for relative icon?
With double click file is open but the file not have the right icon showed |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed May 18, 2011 7:23 pm Post subject: |
|
|
Well, I don't think he is Chris. I'm sure that I am though.
You need to add the key DefaultIcon
| Code: |
registry write,root,Office.WebSpreadsheet\DefaultIcon,,"%1"
|
_________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Tdk161 Valued Contributor


Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Wed May 18, 2011 7:27 pm Post subject: |
|
|
| Quote: | _________________
Chris Gingerich
CJ Portable - a portable application manager/launcher.
Self Note - self contained encrypted note program. |
ops sorry LiquidCode, I have wronged,
thank you for new code  |
|
| Back to top |
|
 |
|