Talk:File Association: Difference between revisions
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
-decimad | -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. |
Revision as of 13:28, 9 August 2006
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.