home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2002 September / APC0902D1.ISO / ntload / windows / files / cs.exe / FILES / DATA-S~1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  2002-07-04  |  2.9 KB  |  92 lines

  1. #include "stdafx.h"
  2. #include "data.h"
  3. #include "utils.h"
  4.  
  5. BOOL isDemo=TRUE;
  6. BOOL isPK=FALSE; // TRUE;
  7. char* ProductName="CHAOS Shredder";
  8. char* AdditionalProdName="\n";
  9. char InstallFile[LENGTH_PATH_NAME]="install.exe";
  10. char MenuFolder[LENGTH_PATH_NAME]="CHAOS Shredder";
  11. char InstallDir[LENGTH_PATH_NAME]="?ProgramFilesDir?\\Chaos Shredder";
  12. char DefaultDirName[LENGTH_PATH_NAME]="Chaos Shredder";
  13. char WindowsDir[LENGTH_PATH_NAME];
  14. char SystemDir[LENGTH_PATH_NAME];
  15. char ProgramFilesDir[LENGTH_PATH_NAME];
  16. char SourceDir[LENGTH_PATH_NAME];
  17. CString SerialNumber;
  18.  
  19. CopyFiles copyFiles[] = {
  20.     { "CD.EXE",            "?InstallDir?\\CD.exe"            },
  21. //    { "compress.dll",    "?InstallDir?\\compress.dll"    },
  22.     { "control.dll",    "?InstallDir?\\control.dll"        },
  23. //    { "code.dll",        "?InstallDir?\\code.dll"        },
  24. //    { "cryptes.dll",    "?InstallDir?\\cryptes.dll"        },
  25. //    { "cryptdb.dll",    "?InstallDir?\\cryptdb.dll"        },
  26. //    { "entrance.dll",    "?InstallDir?\\entrance.dll"    },
  27. //    { "email.dll",        "?InstallDir?\\email.dll"        },
  28. //    { "image.dll",        "?InstallDir?\\image.dll"        },
  29.     { "language.dll",    "?InstallDir?\\language.dll"    },
  30. //    { "pcfg.dll",        "?InstallDir?\\pcfg.dll"        },
  31. //    { "pub.dll",        "?InstallDir?\\pub.dll"            },
  32.     { "uff.dll",        "?InstallDir?\\uff.dll"            },
  33.     { "utilit.dll",        "?InstallDir?\\utilit.dll"        },
  34. //    { "keys.ico",        "?InstallDir?\\keys.ico"        },
  35. //    { "ABOUTDET.TXT",    "?InstallDir?\\aboutdet.txt"    },
  36.     { "HELP.TXT",        "?InstallDir?\\help.txt"        },
  37.     { "MKF.DAT",        "?InstallDir?\\mkf.dat"            },
  38. /*    { "%",                "?InstallDir?\\user.dbe"        },
  39.     { "%",                "?InstallDir?\\user.dbs"        },
  40.     { "%",                "?InstallDir?\\user.dbt"        },
  41.     { "%",                "?InstallDir?\\user.dii"        },
  42.     { "%",                "?InstallDir?\\user.din"        },
  43.     { "%",                "?InstallDir?\\user.psw"        },
  44.     { "%",                "?InstallDir?\\cd.cst"            },
  45. */    { "%",                "?InstallDir?\\cd.cfg"            },
  46. /*    { "%",                "?InstallDir?\\Home\\%"            },
  47.     { "%",                "?InstallDir?\\Keys\\%"            },
  48. */    { "UNINST.EXE",        "?InstallDir?\\uninst.exe"        },
  49.     { "","" } };
  50.  
  51. MakeIcons makeIcons[] =    {
  52.     {    "Programs",
  53.         "?MenuFolder?\\CHAOS.lnk",
  54.         "?InstallDir?\\CD.exe", "",
  55.         "?InstallDir?"    },
  56.     {    "Programs",
  57.         "?MenuFolder?\\Uninstall CHAOS.lnk",
  58.         "?InstallDir?\\uninst.exe", "",
  59.         "?InstallDir?"    },
  60.     { "","","","","" } };
  61.  
  62. RunPrg runPrg[] = {
  63. /*    {    "?InstallDir?\\mkf.exe",
  64.         "?InstallDir?|?WindowsDir?",
  65.         "?InstallDir?",FALSE },*/
  66.     { "","","",FALSE } };
  67.  
  68. DWORD UIWindows=W_WELCOME |
  69. //                W_LICENSE |
  70. //                W_README |
  71. //                W_USERINF |
  72.                 W_DESTINATION |
  73. //                W_MENUFOLDER |
  74.                 W_STARTCOPYING |
  75.                 W_COMPLETE |
  76.                 W_UNINSTALL;
  77. //                W_AUTODELETE;
  78.  
  79. void Initialization()
  80. {
  81. //AfxMessageBox("aaa");
  82.     strcpy(SourceDir,GetCurDir());
  83.     strcpy(InstallFile,AfxGetApp()->m_pszExeName);
  84.     if (InstallFile[strlen(InstallFile)-4]!='.')
  85.         strcat(InstallFile,".EXE");
  86. //AfxMessageBox("bbb");
  87.  
  88.     GetWindowsDirectory(WindowsDir,LENGTH_PATH_NAME);
  89.     GetSystemDirectory(SystemDir,LENGTH_PATH_NAME);
  90.     strcpy(ProgramFilesDir,GetProgramFilesDirectory());
  91. //AfxMessageBox("ccc");
  92. }