Hello,

I use the functions

def DllRegisterServer():
def DllUnregisterServer():

for code  to run while --register and --unregister
This works for me in py2exe-0.5.

Dirk