Subversion Repositories SvarDOS

Rev

Rev 1805 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1805 Rev 1828
Line 916... Line 916...
916
  }
916
  }
917
  /* set up locales so the "installation over" message is nicely displayed */
917
  /* set up locales so the "installation over" message is nicely displayed */
918
  genlocalesconf(fd, locales);
918
  genlocalesconf(fd, locales);
919
  /* replace autoexec.bat and config.sys now and write some nice message on screen */
919
  /* replace autoexec.bat and config.sys now and write some nice message on screen */
920
  fprintf(fd, "DEL pkg.exe\r\n"
920
  fprintf(fd, "DEL pkg.exe\r\n"
-
 
921
              "DEL C:\\CONFIG.SYS\r\n"
921
              "COPY CONFIG.SYS C:\\\r\n"
922
              "COPY CONFIG.SYS C:\\\r\n"
922
              "DEL CONFIG.SYS\r\n"
923
              "DEL CONFIG.SYS\r\n"
923
              "DEL C:\\AUTOEXEC.BAT\r\n"
924
              "DEL C:\\AUTOEXEC.BAT\r\n"
924
              "COPY AUTOEXEC.BAT C:\\\r\n"
925
              "COPY AUTOEXEC.BAT C:\\\r\n"
925
              "DEL AUTOEXEC.BAT\r\n"
926
              "DEL AUTOEXEC.BAT\r\n"
Line 931... Line 932...
931
  fprintf(fd, svarlang_strid(0x0502), BUILDSTRING); /* "SvarDOS installation is over. Please restart your computer now" */
932
  fprintf(fd, svarlang_strid(0x0502), BUILDSTRING); /* "SvarDOS installation is over. Please restart your computer now" */
932
  fprintf(fd, "\r\n"
933
  fprintf(fd, "\r\n"
933
              "ECHO.\r\n");
934
              "ECHO.\r\n");
934
  fclose(fd);
935
  fclose(fd);
935
 
936
 
-
 
937
  /* dummy config.sys with a SHELL directive, EDR does not call command.com
-
 
938
   * with /P otherwise, see https://github.com/SvarDOS/edrdos/issues/74 */
-
 
939
  snprintf(buff, sizeof(buff), "%c:\\config.sys", targetdrv);
-
 
940
  fd = fopen(buff, "wb");
-
 
941
  if (fd == NULL) return(-1);
-
 
942
  fprintf(fd, "SHELL=C:\\COMMAND.COM /P\r\n");
-
 
943
  fclose(fd);
-
 
944
 
936
  /* prepare a dummy autoexec.bat that will call temp\postinst.bat */
945
  /* prepare a dummy autoexec.bat that will call temp\postinst.bat */
937
  snprintf(buff, sizeof(buff), "%c:\\autoexec.bat", targetdrv);
946
  snprintf(buff, sizeof(buff), "%c:\\autoexec.bat", targetdrv);
938
  fd = fopen(buff, "wb");
947
  fd = fopen(buff, "wb");
939
  if (fd == NULL) return(-1);
948
  if (fd == NULL) return(-1);
940
  fprintf(fd, "@ECHO OFF\r\n"
949
  fprintf(fd, "@ECHO OFF\r\n"