def install(path, remove=False, prefix=sys.prefix, recursing=False):
<EOL>if sys.platform == '<STR_LIT:win32>' and not exists(join(sys.prefix, '<STR_LIT>')):<EOL><INDENT>if isUserAdmin():<EOL><INDENT>_install(path, remove, prefix, mode='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>from pywintypes import error<EOL>try:<EOL><INDENT>if not recursing:<EOL><INDENT>retcode = runAsAdmin([join(sys.prefix, '<STR_LIT>'), '<STR_LIT:-c>',<EOL>"<STR_LIT>" % (<EOL>path, bool(remove), prefix, True)])<EOL><DEDENT>else:<EOL><INDENT>retcode = <NUM_LIT:1><EOL><DEDENT><DEDENT>except error:<EOL><INDENT>retcode = <NUM_LIT:1><EOL><DEDENT>if retcode != <NUM_LIT:0>:<EOL><INDENT>logging.warn("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>_install(path, remove, prefix, mode='<STR_LIT:user>')<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>_install(path, remove, prefix, mode='<STR_LIT:user>')<EOL><DEDENT>
install Menu and shortcuts