home *** CD-ROM | disk | FTP | other *** search
- #include "stdafx.h"
- #include "data.h"
- #include "utils.h"
-
- BOOL isDemo=TRUE;
- BOOL isPK=FALSE; // TRUE;
- char* ProductName="CHAOS Shredder";
- char* AdditionalProdName="\n";
- char InstallFile[LENGTH_PATH_NAME]="install.exe";
- char MenuFolder[LENGTH_PATH_NAME]="CHAOS Shredder";
- char InstallDir[LENGTH_PATH_NAME]="?ProgramFilesDir?\\Chaos Shredder";
- char DefaultDirName[LENGTH_PATH_NAME]="Chaos Shredder";
- char WindowsDir[LENGTH_PATH_NAME];
- char SystemDir[LENGTH_PATH_NAME];
- char ProgramFilesDir[LENGTH_PATH_NAME];
- char SourceDir[LENGTH_PATH_NAME];
- CString SerialNumber;
-
- CopyFiles copyFiles[] = {
- { "CD.EXE", "?InstallDir?\\CD.exe" },
- // { "compress.dll", "?InstallDir?\\compress.dll" },
- { "control.dll", "?InstallDir?\\control.dll" },
- // { "code.dll", "?InstallDir?\\code.dll" },
- // { "cryptes.dll", "?InstallDir?\\cryptes.dll" },
- // { "cryptdb.dll", "?InstallDir?\\cryptdb.dll" },
- // { "entrance.dll", "?InstallDir?\\entrance.dll" },
- // { "email.dll", "?InstallDir?\\email.dll" },
- // { "image.dll", "?InstallDir?\\image.dll" },
- { "language.dll", "?InstallDir?\\language.dll" },
- // { "pcfg.dll", "?InstallDir?\\pcfg.dll" },
- // { "pub.dll", "?InstallDir?\\pub.dll" },
- { "uff.dll", "?InstallDir?\\uff.dll" },
- { "utilit.dll", "?InstallDir?\\utilit.dll" },
- // { "keys.ico", "?InstallDir?\\keys.ico" },
- // { "ABOUTDET.TXT", "?InstallDir?\\aboutdet.txt" },
- { "HELP.TXT", "?InstallDir?\\help.txt" },
- { "MKF.DAT", "?InstallDir?\\mkf.dat" },
- /* { "%", "?InstallDir?\\user.dbe" },
- { "%", "?InstallDir?\\user.dbs" },
- { "%", "?InstallDir?\\user.dbt" },
- { "%", "?InstallDir?\\user.dii" },
- { "%", "?InstallDir?\\user.din" },
- { "%", "?InstallDir?\\user.psw" },
- { "%", "?InstallDir?\\cd.cst" },
- */ { "%", "?InstallDir?\\cd.cfg" },
- /* { "%", "?InstallDir?\\Home\\%" },
- { "%", "?InstallDir?\\Keys\\%" },
- */ { "UNINST.EXE", "?InstallDir?\\uninst.exe" },
- { "","" } };
-
- MakeIcons makeIcons[] = {
- { "Programs",
- "?MenuFolder?\\CHAOS.lnk",
- "?InstallDir?\\CD.exe", "",
- "?InstallDir?" },
- { "Programs",
- "?MenuFolder?\\Uninstall CHAOS.lnk",
- "?InstallDir?\\uninst.exe", "",
- "?InstallDir?" },
- { "","","","","" } };
-
- RunPrg runPrg[] = {
- /* { "?InstallDir?\\mkf.exe",
- "?InstallDir?|?WindowsDir?",
- "?InstallDir?",FALSE },*/
- { "","","",FALSE } };
-
- DWORD UIWindows=W_WELCOME |
- // W_LICENSE |
- // W_README |
- // W_USERINF |
- W_DESTINATION |
- // W_MENUFOLDER |
- W_STARTCOPYING |
- W_COMPLETE |
- W_UNINSTALL;
- // W_AUTODELETE;
-
- void Initialization()
- {
- //AfxMessageBox("aaa");
- strcpy(SourceDir,GetCurDir());
- strcpy(InstallFile,AfxGetApp()->m_pszExeName);
- if (InstallFile[strlen(InstallFile)-4]!='.')
- strcat(InstallFile,".EXE");
- //AfxMessageBox("bbb");
-
- GetWindowsDirectory(WindowsDir,LENGTH_PATH_NAME);
- GetSystemDirectory(SystemDir,LENGTH_PATH_NAME);
- strcpy(ProgramFilesDir,GetProgramFilesDirectory());
- //AfxMessageBox("ccc");
- }