Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-15 Thread Alexander Jewell
Thanks for the help Mark. I further stripped down my example script, removing logging and anything unnecessary. Updated the setup.py to generate the DLL and ran py2exe (with elevated perms, not sure that was necessary though). Took the dist directory generated by py2exe to another machine with no

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-12 Thread Mark Hammond
On 13/01/2016 6:09 AM, Alexander Jewell wrote: I should have checked the setup file before attaching, that's actually from a third test I ran that tried running an EXE. In my earlier test I had create_dll = True. During that test I ran "regsvr32 overlays.dll" (with terminal running as Administrat

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-12 Thread Alexander Jewell
I should have checked the setup file before attaching, that's actually from a third test I ran that tried running an EXE. In my earlier test I had create_dll = True. During that test I ran "regsvr32 overlays.dll" (with terminal running as Administrator) and got a success message, but no registry en

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-11 Thread Mark Hammond
setup_2.py has: > setup(console=['overlays.py']) So that's going to create a console program with no COM support. setup.py has: ># specify which type of com server you want (exe and/or dll) >create_exe=True, >create_dll=False So you are only going to get a COM object

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-11 Thread Alexander Jewell
Hi Mark, I followed your suggestion and the SO threads touching on this area. ( http://stackoverflow.com/questions/4619701/python-64-bit-dll-com-server-registration-problem-on-64-bit-windows-7 ) Using py2exe I generated a dist folder with an exe of my overlay script. Running this on a machine with

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-08 Thread Alexander Jewell
I created a fresh Python 2.7 environment with pywin and py2exe and stripped down my overlay handler to the basics to better troubleshoot. Running my script (command line or in PyCharm) registers everything correctly, just like before, but running the py2exe generated EXE seems to be registering bu

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-06 Thread Alexander Jewell
Thanks for the reply Mark. That makes sense, I hadn't thought about the environment. During development I'm testing in a virtual environment which contains Python 3.4 and all the required libraries. The explorer.exe process is killed and started by the same process (within the same script) that re

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-06 Thread Mark Hammond
On 7/01/2016 6:21 AM, Alexander Jewell wrote: Unfortunately my end goal was to bundle the entire application as an exe with PyInstaller so that the end user does not actually have Python installed. Do you think it would be possible to package the overlay handler in such a way that explorer would

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-06 Thread Mark Hammond
My guess is that the environment (eg, PATH, PYTHONPATH etc) for the new explorer instance isn't setup correctly - how is the explorer.exe process started when it *does* work? It's hard to answer without more info, but Python ends up inside explorer.exe, so the environment that explorer.exe star

[python-win32] Have icon overlays persist after machine restart in Python

2016-01-05 Thread Alexander Jewell
So, thanks to the Tim Golden guide (http://timgolden.me.uk/python/win32_how_do_i/add-my-own-icon-overlays.html) and other questions on Stack Ove