cpython: caee1eabba1e (original) (raw)
Mercurial > cpython
changeset 93638:caee1eabba1e 3.4
give a nice message when installer is launched w/o admin rights (closes #16561) [#16561]
Benjamin Peterson benjamin@python.org | |
---|---|
date | Thu, 27 Nov 2014 20:39:02 -0600 |
parents | 8fa9097eadcb |
children | ef5bbdc81796 8dacb1a21793 |
files | PC/bdist_wininst/install.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-)[+] [-] PC/bdist_wininst/install.c 10 |
line wrap: on
line diff
--- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -1774,6 +1774,16 @@ static BOOL OpenLogfile(char *dir) sprintf(buffer, "%s\%s-wininst.log", dir, meta_name); logfile = fopen(buffer, "a");
sprintf(error, "Can't create \"%s\" (%s).\n\n"[](#l1.10)
"Try to execute the installer as administrator.",[](#l1.11)
buffer, strerror(errno));[](#l1.12)
MessageBox(GetFocus(), error, NULL, MB_OK | MB_ICONSTOP);[](#l1.13)
return FALSE;[](#l1.14)
- }
+ time(<ime); now = localtime(<ime); strftime(buffer, sizeof(buffer),