0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1399

Problem:    The MS-DOS code does not build.
Solution:   Remove the old MS-DOS code.
This commit is contained in:
Bram Moolenaar
2016-02-23 14:53:34 +01:00
parent 4e221c99e8
commit 48e330aff9
45 changed files with 163 additions and 4308 deletions

View File

@@ -289,41 +289,7 @@ remove_start_menu(void)
static void
delete_uninstall_key(void)
{
#ifdef WIN3264
reg_delete_key(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Vim " VIM_VERSION_SHORT);
#else
FILE *fd;
char buf[BUFSIZE];
/*
* On DJGPP we delete registry entries by creating a .inf file and
* installing it.
*/
fd = fopen("vim.inf", "w");
if (fd != NULL)
{
fprintf(fd, "[version]\n");
fprintf(fd, "signature=\"$CHICAGO$\"\n\n");
fprintf(fd, "[DefaultInstall]\n");
fprintf(fd, "DelReg=DeleteMe\n\n");
fprintf(fd, "[DeleteMe]\n");
fprintf(fd, "HKLM,\"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Vim " VIM_VERSION_SHORT "\"\n");
fclose(fd);
/* Don't know how to detect Win NT with DJGPP. Hack: Just try the Win
* 95/98/ME method, since the DJGPP version can't use long filenames
* on Win NT anyway. */
sprintf(buf, "rundll setupx.dll,InstallHinfSection DefaultInstall 132 %s\\vim.inf", installdir);
run_command(buf);
#if 0
/* Windows NT method (untested). */
sprintf(buf, "rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 %s\\vim.inf", installdir);
run_command(buf);
#endif
remove("vim.inf");
}
#endif
}
int