[ python-Feature Requests-1635335 ] Add registry functions to windows postinstall

SourceForge.net noreply at sourceforge.net
Sat Jan 20 19:07:43 CET 2007


Feature Requests item #1635335, was opened at 2007-01-14 21:00
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1635335&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: anatoly techtonik (techtonik)
>Assigned to: Thomas Heller (theller)
Summary: Add registry functions to windows postinstall

Initial Comment:
It would be useful to add regkey_created() or regkey_modified() to windows postinstall scripts along with directory_created() and file_created(). Useful for adding installed package to App Paths.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2007-01-20 19:07

Message:
Logged In: YES 
user_id=21627
Originator: NO

Thomas, what do you think?



----------------------------------------------------------------------

Comment By: anatoly techtonik (techtonik)
Date: 2007-01-20 15:26

Message:
Logged In: YES 
user_id=669020
Originator: YES

Windows postinstall script is bundled with installation, launched after
installation and just before uninstall. It is described here.
http://docs.python.org/dist/postinstallation-script.html#SECTION005310000000000000000

Where these should be defined? I do not know - there are already some
functions that are said to be "available as additional built-in functions
in the installation script." on the page above. 

The purpose is to be able to create/delete registry keys during
installation. This should also be reflected in installation log file with
appropriate status code so that users could be aware of what's going on.

I think the functions needed are already defined in
http://docs.python.org/lib/module--winreg.html but the module is very
low-level. I'd rather use Autoit like API - 
http://www.autoitscript.com/autoit3/docs/functions/RegRead.htm
http://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm
http://www.autoitscript.com/autoit3/docs/functions/RegDelete.htm


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2007-01-20 11:55

Message:
Logged In: YES 
user_id=21627
Originator: NO

Can you please elaborate? Where should these functions be defined, what
should they do, and when should they be invoked (by what code)? Also, what
is a "windows postinstall script"?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1635335&group_id=5470


More information about the Python-bugs-list mailing list