pre-pre PEP: wininst improvements
![](https://secure.gravatar.com/avatar/e3a4852940b55f9ec9ef48d9a4b65b4e.jpg?s=120&d=mm&r=g)
It seems there are a lot of wishes for wininst, maybe it is time to write a bdist_wininst PEP? What I have collected in my mind: - The default installation directory should be \Python\Lib\site-packages instead of \Python. - The installer should be able to install in a directory supplied by the user, comparable to what 'python setup.py --root <whatever>' does. - bdist_wininst should have more options to change the appearane of the installer: Background bitmap instead of simply displaying the installation title, possibility to change the 'python powered' bitmap into one supplied by the packager. - bdist_wininst should collect uninstall information and register an uninstaller in the windows registry. - bdist_wininst could create shortcuts in the start menu and on the desktop for scripts ('applications') installed. (I've left out problems which should be more or less solved by distutils: Installation of documentation,...) Are there more? Thomas
![](https://secure.gravatar.com/avatar/12362ecee4672f1dd2d641ce5b4eca14.jpg?s=120&d=mm&r=g)
Thomas Heller wrote:
It seems there are a lot of wishes for wininst, maybe it is time to write a bdist_wininst PEP?
What I have collected in my mind:
- The default installation directory should be \Python\Lib\site-packages instead of \Python.
- The installer should be able to install in a directory supplied by the user, comparable to what 'python setup.py --root <whatever>' does.
- bdist_wininst should have more options to change the appearane of the installer: Background bitmap instead of simply displaying the installation title, possibility to change the 'python powered' bitmap into one supplied by the packager.
Some more wishes: * there should be a way to add a license agreement page (which is then shown in case a license is passed to the installer via a new option --license-agreement) * the strings shown by the dialogs should come from some .ini file which the maintainer can then change; this would also allow limited i18n
- bdist_wininst should collect uninstall information and register an uninstaller in the windows registry.
- bdist_wininst could create shortcuts in the start menu and on the desktop for scripts ('applications') installed.
Would these be the ones you put into scripts or do we need a new option for application entry points ?
(I've left out problems which should be more or less solved by distutils: Installation of documentation,...)
+1 on all of these. -- Marc-Andre Lemburg ______________________________________________________________________ Company: http://www.egenix.com/ Consulting: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
![](https://secure.gravatar.com/avatar/e3a4852940b55f9ec9ef48d9a4b65b4e.jpg?s=120&d=mm&r=g)
From: "M.-A. Lemburg" <mal@lemburg.com>
Thomas Heller wrote:
It seems there are a lot of wishes for wininst, maybe it is time to write a bdist_wininst PEP?
What I have collected in my mind:
- The default installation directory should be \Python\Lib\site-packages instead of \Python.
- The installer should be able to install in a directory supplied by the user, comparable to what 'python setup.py --root <whatever>' does.
- bdist_wininst should have more options to change the appearane of the installer: Background bitmap instead of simply displaying the installation title, possibility to change the 'python powered' bitmap into one supplied by the packager.
Some more wishes:
* there should be a way to add a license agreement page (which is then shown in case a license is passed to the installer via a new option --license-agreement)
OK.
* the strings shown by the dialogs should come from some .ini file which the maintainer can then change; this would also allow limited i18n
I understand it this way: The packager supplies this ini-file with german or spanish strings for example, to build a german resp. a spanish localized installer?
- bdist_wininst should collect uninstall information and register an uninstaller in the windows registry.
- bdist_wininst could create shortcuts in the start menu and on the desktop for scripts ('applications') installed.
Would these be the ones you put into scripts or do we need a new option for application entry points ?
Currently I think the 'scripts' arguments to the setup function would be the entry points. The question is: Does distutils metainfo provide all the information we need or not? Sooner or later someone would want the 'installer' to run a supplied python script which would then create shortcuts and so on. The installer (which embeds python) could export some API do do this and run the installation script after installing the files.
(I've left out problems which should be more or less solved by distutils: Installation of documentation,...)
+1 on all of these.
-- Marc-Andre Lemburg
Thomas
participants (2)
-
M.-A. Lemburg
-
Thomas Heller