author | Michael Krelin <hacker@klever.net> | 2005-07-06 21:49:03 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-07-06 21:49:03 (UTC) |
commit | bdbe0e4fff764357d0bb6236f22d6f1dcc0548ba (patch) (unidiff) | |
tree | 346c632a5308885dc657de9b724256c62c80f3b8 /install/install.cpp | |
parent | c8fe0207895827e5533f4100d203a187f021ebe8 (diff) | |
download | klog-bdbe0e4fff764357d0bb6236f22d6f1dcc0548ba.zip klog-bdbe0e4fff764357d0bb6236f22d6f1dcc0548ba.tar.gz klog-bdbe0e4fff764357d0bb6236f22d6f1dcc0548ba.tar.bz2 |
added vertical resizability and changed version to trunk
git-svn-id: http://svn.klever.net/kin/klog/trunk@115 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | install/install.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/install.cpp b/install/install.cpp index c0e0bb8..81d5a7e 100644 --- a/install/install.cpp +++ b/install/install.cpp | |||
@@ -1,36 +1,36 @@ | |||
1 | #include "resource.h" | 1 | #include "resource.h" |
2 | #include "../shared-code/install.h" | 2 | #include "../shared-code/install.h" |
3 | 3 | ||
4 | #define KINAME"KLog 1.1" | 4 | #define KINAME"KLog 1.1.1-trunk" |
5 | #define SKINAME"KLog" | 5 | #define SKINAME"KLog" |
6 | 6 | ||
7 | BOOL Install(void) | 7 | BOOL Install(void) |
8 | { | 8 | { |
9 | STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group", SKINAME "Path"); | 9 | STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group", SKINAME "Path"); |
10 | STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath"); | 10 | STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath"); |
11 | LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings"); | 11 | LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings"); |
12 | STRING path = REQUESTPATH(" " KINAME,"\nEnter destination path:",qPath); | 12 | STRING path = REQUESTPATH(" " KINAME,"\nEnter destination path:",qPath); |
13 | if(!path) | 13 | if(!path) |
14 | return NULL; | 14 | return NULL; |
15 | #ifdefK_ANNED | 15 | #ifdefK_ANNED |
16 | STRING sysDir(_MAX_PATH); | 16 | STRING sysDir(_MAX_PATH); |
17 | GetSystemDirectory(sysDir,_MAX_PATH); | 17 | GetSystemDirectory(sysDir,_MAX_PATH); |
18 | INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll"); | 18 | INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll"); |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | MAKE_PATH(path); | 21 | MAKE_PATH(path); |
22 | STRING shortPath = GET_SHORT_PATH(path); | 22 | STRING shortPath = GET_SHORT_PATH(path); |
23 | if(!shortPath){ | 23 | if(!shortPath){ |
24 | MessageBox(NULL,"Failed to install " KINAME " in specified directory",NULL,MB_ICONERROR|MB_OK); | 24 | MessageBox(NULL,"Failed to install " KINAME " in specified directory",NULL,MB_ICONERROR|MB_OK); |
25 | return FALSE; | 25 | return FALSE; |
26 | } | 26 | } |
27 | 27 | ||
28 | if(!( | 28 | if(!( |
29 | INSTALLFILE(SKINAME ".ex_",path, SKINAME ".exe") && | 29 | INSTALLFILE(SKINAME ".ex_",path, SKINAME ".exe") && |
30 | INSTALLFILE(SKINAME ".hl_",path, SKINAME ".hlp") && | 30 | INSTALLFILE(SKINAME ".hl_",path, SKINAME ".hlp") && |
31 | INSTALLFILE(SKINAME ".cn_",path, SKINAME ".cnt") | 31 | INSTALLFILE(SKINAME ".cn_",path, SKINAME ".cnt") |
32 | )){ | 32 | )){ |
33 | MessageBox(NULL,"Failed to install " KINAME "in specified directory",NULL,MB_ICONERROR|MB_OK); | 33 | MessageBox(NULL,"Failed to install " KINAME "in specified directory",NULL,MB_ICONERROR|MB_OK); |
34 | return FALSE; | 34 | return FALSE; |
35 | } | 35 | } |
36 | 36 | ||