|
|
1.1.1.5 root 1: /*
1.1.1.6 root 2: Legal Notice: Some portions of the source code contained in this file were
3: derived from the source code of Encryption for the Masses 2.02a, which is
4: Copyright (c) 1998-2000 Paul Le Roux and which is governed by the 'License
5: Agreement for Encryption for the Masses'. Modifications and additions to
1.1.1.13! root 6: the original source code (contained in this file) and all other portions
! 7: of this file are Copyright (c) 2003-2009 TrueCrypt Developers Association
! 8: and are governed by the TrueCrypt License 2.8 the full text of which is
! 9: contained in the file License.txt included in TrueCrypt binary and source
! 10: code distribution packages. */
1.1.1.5 root 11:
1.1.1.6 root 12: #ifndef SETUP_H
13: #define SETUP_H
14:
15: #ifdef __cplusplus
16: extern "C" {
17: #endif
18:
19: // Specifies what files to install, where (determined by the prefix), and in what order
20: static char *szFiles[]=
21: {
22: "ATrueCrypt User Guide.pdf",
23: "ALicense.txt",
24: "ATrueCrypt.exe",
25: "ATrueCrypt Format.exe",
26: "Atruecrypt.sys",
27: "Atruecrypt-x64.sys",
28: "Dtruecrypt.sys",
29: "ATrueCrypt Setup.exe"
30: };
31:
32: // Specifies what files are included in self-extracting packages (no other files will be packaged or extracted).
33: static char *szCompressedFiles[]=
34: {
35: "TrueCrypt User Guide.pdf",
36: "License.txt",
37: "TrueCrypt.exe",
38: "TrueCrypt Format.exe",
39: "truecrypt.sys",
40: "truecrypt-x64.sys"
41: };
42:
43: #define FILENAME_64BIT_DRIVER "truecrypt-x64.sys"
44: #define NBR_COMPRESSED_FILES (sizeof(szCompressedFiles) / sizeof(szCompressedFiles[0]))
45:
1.1.1.9 root 46: void localcleanup (void);
1.1 root 47: BOOL StatDeleteFile ( char *lpszFile );
48: BOOL StatRemoveDirectory ( char *lpszDir );
49: HRESULT CreateLink ( char *lpszPathObj , char *lpszArguments , char *lpszPathLink );
50: void GetProgramPath ( HWND hwndDlg , char *path );
1.1.1.6 root 51: void StatusMessage (HWND hwndDlg, char *stringId);
52: void StatusMessageParam (HWND hwndDlg, char *stringId, char *param);
53: void ClearLogWindow (HWND hwndDlg);
1.1.1.3 root 54: void StatusMessage ( HWND hwndDlg , char *stringId );
55: void StatusMessageParam ( HWND hwndDlg , char *stringId , char *param );
1.1 root 56: void RegMessage ( HWND hwndDlg , char *txt );
57: void RegRemoveMessage (HWND hwndDlg, char *txt);
58: void CopyMessage ( HWND hwndDlg , char *txt );
59: void RemoveMessage ( HWND hwndDlg , char *txt );
60: void IconMessage ( HWND hwndDlg , char *txt );
1.1.1.12 root 61: static int CALLBACK BrowseCallbackProc ( HWND hwnd , UINT uMsg , LPARAM lp , LPARAM pData );
1.1 root 62: void LoadLicense ( HWND hwndDlg );
1.1.1.12 root 63: void DetermineUpgradeDowngradeStatus (BOOL bCloseDriverHandle, LONG *driverVersionPtr);
1.1.1.4 root 64: BOOL DoFilesInstall ( HWND hwndDlg , char *szDestDir );
65: BOOL DoRegInstall ( HWND hwndDlg , char *szDestDir , BOOL bInstallType );
1.1.1.3 root 66: BOOL DoRegUninstall (HWND hwndDlg, BOOL bRemoveDeprecated);
1.1 root 67: BOOL DoServiceUninstall ( HWND hwndDlg , char *lpszService );
68: BOOL DoDriverUnload ( HWND hwndDlg );
69: BOOL DoShortcutsInstall ( HWND hwndDlg , char *szDestDir , BOOL bProgGroup, BOOL bDesktopIcon );
70: BOOL DoShortcutsUninstall (HWND hwndDlg, char *szDestDir);
1.1.1.4 root 71: void OutcomePrompt ( HWND hwndDlg , BOOL bOK );
1.1 root 72: void DoUninstall ( void *hwndDlg );
73: void DoInstall ( void *hwndDlg );
1.1.1.6 root 74: void SetInstallationPath (HWND hwndDlg);
1.1.1.7 root 75: BOOL UpgradeBootLoader (HWND hwndDlg);
1.1.1.5 root 76: BOOL CALLBACK InstallDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam );
1.1.1.6 root 77:
78: extern BOOL bDevm;
79: extern BOOL Rollback;
1.1.1.12 root 80: extern BOOL bUpgrade;
1.1.1.6 root 81: extern BOOL bRepairMode;
82: extern BOOL bSystemRestore;
1.1.1.9 root 83: extern BOOL bDisableSwapFiles;
1.1.1.6 root 84: extern BOOL bForAllUsers;
85: extern BOOL bRegisterFileExt;
86: extern BOOL bAddToStartMenu;
87: extern BOOL bDesktopIcon;
1.1.1.13! root 88: extern BOOL bDesktopIconStatusDetermined;
1.1.1.8 root 89: extern BOOL SystemEncryptionUpgrade;
1.1.1.9 root 90: extern BOOL bRestartRequired;
1.1.1.6 root 91: extern HMODULE volatile SystemRestoreDll;
92: extern char InstallationPath[TC_MAX_PATH];
93: extern char SetupFilesDir[TC_MAX_PATH];
94:
95: #ifdef __cplusplus
96: }
97: #endif
98:
99: #endif // #ifndef SETUP_H
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.