[issue21506] Windows MSI installer should mklink (symlink) python.exe to python2.7.exe
eryksun
report at bugs.python.org
Wed May 14 18:51:45 CEST 2014
eryksun added the comment:
How about using hard links (mklink /H) instead? It's a minor issue, but there's a bug in Explorer that breaks opening symbolic links to EXE, COM, CMD, and BAT files (exefile, comfile, cmdfile, batfile). Explorer displays the error message "the specified path does not exist". These file types have shell\open\command set to "%1" %*, i.e. the file itself (%1) is used as the command.
C:\>reg query hkcr\exefile\shell\open\command /ve
HKEY_CLASSES_ROOT\exefile\shell\open\command
(Default) REG_EXPAND_SZ "%1" %*
I assume that's because these file types can be passed directly to CreateProcess. However, the Explorer bug isn't a problem with CreateProcess, or even ShellExecuteEx. Maybe it's due to an overly strict security policy. Anyway, my 2 cents is use hard links.
----------
nosy: +eryksun
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21506>
_______________________________________
More information about the Python-bugs-list
mailing list