Subversion Repositories Kolibri OS

Rev

Rev 7219 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #define MEMSIZE 0x9000
  2. #include "..\lib\strings.h"
  3. #include "..\lib\mem.h"
  4. #include "..\lib\fs.h"
  5.  
  6.  
  7. void main()
  8. {  
  9.         dword dirbuf, fcount, filename, i;
  10.         dword dirbuf2, fcount2, filename2, j;
  11.         char drive_name[4096];
  12.         char install_path[4096];
  13.  
  14.         pause(200);
  15.         GetDir(#dirbuf, #fcount, "/", DIRS_ONLYREAL);
  16.  
  17.         for (i=0; i<fcount; i++)
  18.         {
  19.                 strcpy(#drive_name, "/");
  20.                 strcat(#drive_name, i*304+dirbuf+72);
  21.                 if (!strcmp(#drive_name, "/fd")) continue;
  22.                 free(dirbuf2);
  23.                 GetDir(#dirbuf2, #fcount2, #drive_name, DIRS_ONLYREAL);
  24.  
  25.                 for (j=0; j<fcount2; j++)
  26.                 {
  27.                         sprintf(#install_path, "%s/%s/installer.kex", #drive_name, j*304+dirbuf2+72);
  28.                         if (RunProgram(#install_path, NULL) > 0) ExitProcess();
  29.                 }
  30.         }
  31.         notify("'KolibriN\n¥ ¬®£ã ­ ©â¨ installer.kex ­¨ ¢ ®¤­®¬ ª®à­¥ ¤¨áª !\n®¯à®¡ã©â¥ ­ ©â¨ ¨ § ¯ãáâ¨âì ¥£® ¢àãç­ãî.' -dtE");
  32.         ExitProcess();
  33. }
  34.  
  35.  
  36. stop:
  37.