Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4fc19 commit 25c7d3fCopy full SHA for 25c7d3f
1 file changed
PC/bdist_wininst/install.c
@@ -1774,6 +1774,16 @@ static BOOL OpenLogfile(char *dir)
1774
1775
sprintf(buffer, "%s\\%s-wininst.log", dir, meta_name);
1776
logfile = fopen(buffer, "a");
1777
+ if (!logfile) {
1778
+ char error[1024];
1779
+
1780
+ sprintf(error, "Can't create \"%s\" (%s).\n\n"
1781
+ "Try to execute the installer as administrator.",
1782
+ buffer, strerror(errno));
1783
+ MessageBox(GetFocus(), error, NULL, MB_OK | MB_ICONSTOP);
1784
+ return FALSE;
1785
+ }
1786
1787
time(<ime);
1788
now = localtime(<ime);
1789
strftime(buffer, sizeof(buffer),
0 commit comments