Talk:File Association: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
Otherwise when opening a file its path got truncated something like: c:\Prog~1\blabla~1\. | Otherwise when opening a file its path got truncated something like: c:\Prog~1\blabla~1\. | ||
My system is Windows XP, haven't tested it with other versions. | My system is Windows XP, haven't tested it with other versions. | ||
----- | |||
One other thing; you may also have to update the user's explorer fileexts list before a file association change actually takes (the items in this list override those in HKCR). | |||
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts | |||
[[User:ZeBoxx|ZeBoxx]] 20:21, 25 February 2009 (UTC) |
Revision as of 20:21, 25 February 2009
I have a problem, while trying to associate a file, under Windows XP, everything works fine, but on Windows 2000, when I try to open a file, it looks like the path is not managed in the correct way, this is the way the file path is being sent on my application c:\prog~1\archi~1 so, i don´t know what´s going on, i´d really apreciate your help.
I think the problem is in this line
WriteRegStr HKCR "ReportUncompressor.Script\shell\open\command" "" '"ReportUncompressor.exe" "%1"'
oscargl2017@hotmail.com
The 'OptionsFile' correspondant Registry key is only deleted when the association was in possession of another application before.
-decimad
I had to change the line
WriteRegStr HKCR "OptionsFile\shell\edit\command" "" \ '$INSTDIR\execute.exe "%1"'
to:
WriteRegStr HKCR "OptionsFile\shell\edit\command" "" \ '"$INSTDIR\execute.exe" "%1"'
(Put quotation marks around the path to my execute.exe).
Otherwise when opening a file its path got truncated something like: c:\Prog~1\blabla~1\. My system is Windows XP, haven't tested it with other versions.
One other thing; you may also have to update the user's explorer fileexts list before a file association change actually takes (the items in this list override those in HKCR).
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
ZeBoxx 20:21, 25 February 2009 (UTC)