We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eca6164 commit 490e3b1Copy full SHA for 490e3b1
1 file changed
PC/bdist_wininst/install.c
@@ -1742,6 +1742,16 @@ static BOOL OpenLogfile(char *dir)
1742
1743
sprintf(buffer, "%s\\%s-wininst.log", dir, meta_name);
1744
logfile = fopen(buffer, "a");
1745
+ if (!logfile) {
1746
+ char error[1024];
1747
+
1748
+ sprintf(error, "Can't create \"%s\" (%s).\n\n"
1749
+ "Try to execute the installer as administrator.",
1750
+ buffer, strerror(errno));
1751
+ MessageBox(GetFocus(), error, NULL, MB_OK | MB_ICONSTOP);
1752
+ return FALSE;
1753
+ }
1754
1755
time(<ime);
1756
now = localtime(<ime);
1757
strftime(buffer, sizeof(buffer),
0 commit comments