[python-win32] Problem reading a shortcut (.lnk) with cPython 3.7 (32 bit)
David Hughes
dfh at forestfield.co.uk
Tue Jun 18 07:22:59 EDT 2019
I'm in the process of upgrading my software from Python 2.7 to 3.7 now
that wxPython has been migrated to 3. As part of a procedure for
upgrading an end user's own installation I check for it's location via
the desktop shortcut that Innosetup created during the original
installation.
I have a procedure for doing this that worked/works fine with Python 2.7
that is very similar to the one published in
/http://timgolden.me.uk/python/win32_how_do_i/read-a-shortcut.html/.
Neither mine nor Tim's works under Python 3.7 (I haven't checked any
other version of 3). With Tim's version, when the line
name, _ = link.GetPath (shell.SLGP_UNCPRIORITY)
is executed, after a delay it responds with /aborted (disconnected)/ and
the program terminates, as does mine.
My knowledge of Python - Win32 interaction is extremely limited so
anything anyone can tell me about this would be valuable.
--
Regards
David Hughes
Forestfield Software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190618/ee61ac81/attachment.html>
More information about the python-win32
mailing list