summaryrefslogtreecommitdiffabout
path: root/install
authorMichael Krelin <hacker@klever.net>2005-08-05 23:42:33 (UTC)
committer Michael Krelin <hacker@klever.net>2005-08-05 23:42:33 (UTC)
commitf2018d0e4377e7cdff17471b473c45daf5c2ddd7 (patch) (unidiff)
treeebfb9cab87dbc464122e177aa116eb0fc7dc9088 /install
parentd2f4327f3752ff30c3b0ec7fdd2e63bc1a1db5ee (diff)
downloaddipstick-f2018d0e4377e7cdff17471b473c45daf5c2ddd7.zip
dipstick-f2018d0e4377e7cdff17471b473c45daf5c2ddd7.tar.gz
dipstick-f2018d0e4377e7cdff17471b473c45daf5c2ddd7.tar.bz2
fixed the installer for XP and prepared for 3.1 release3.1
git-svn-id: http://svn.klever.net/kin/dipstick/trunk@127 fe716a7a-6dde-0310-88d9-d003556173a8
Diffstat (limited to 'install') (more/less context) (ignore whitespace changes)
-rw-r--r--install/install.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/install/install.cpp b/install/install.cpp
index 1d91bc2..fcd32d7 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -1,22 +1,22 @@
1#include "resource.h" 1#include "resource.h"
2#include "../shared-code/install.h" 2#include "../shared-code/install.h"
3 3
4#define KINNAME "Dipstick" 4#define KINNAME "Dipstick"
5#define KINSHORT KINNAME 5#define KINSHORT KINNAME
6#define VERSION "3.1-trunk" 6#define VERSION "3.1"
7 7
8BOOL Install(void) 8BOOL Install(void)
9{ 9{
10STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",KINSHORT "Path"); 10STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",KINSHORT "Path");
11STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath"); 11STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath");
12LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings"); 12LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings");
13STRING path = REQUESTPATH(" " KINNAME " " VERSION,"\nEnter destination path:",qPath); 13STRING path = REQUESTPATH(" " KINNAME " " VERSION,"\nEnter destination path:",qPath);
14 if(!path) 14 if(!path)
15 return NULL; 15 return NULL;
16 16
17 #ifdefK_ANNED 17 #ifdefK_ANNED
18STRING sysDir(_MAX_PATH); 18STRING sysDir(_MAX_PATH);
19 GetSystemDirectory(sysDir,_MAX_PATH); 19 GetSystemDirectory(sysDir,_MAX_PATH);
20 INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll"); 20 INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll");
21#endif 21#endif
22 22
@@ -48,21 +48,27 @@ FILE* inf=CREATE_INF_FILE(path,KINSHORT ".INF");
48 INF_FILE_HEADER(inf); 48 INF_FILE_HEADER(inf);
49 INF_FILE_SECTION(inf,"Uninstall"); 49 INF_FILE_SECTION(inf,"Uninstall");
50 fprintf(inf,"AddReg=kFiles\nDelReg=kReg\nUpdateInis=kMenu\n"); 50 fprintf(inf,"AddReg=kFiles\nDelReg=kReg\nUpdateInis=kMenu\n");
51 INF_FILE_SECTION(inf,"kFiles"); 51 INF_FILE_SECTION(inf,"kFiles");
52 INF_REMOVE_ROOT(inf,KINSHORT "Files",path); 52 INF_REMOVE_ROOT(inf,KINSHORT "Files",path);
53 INF_REMOVE_FILE(inf,KINSHORT "Files","dipstick.exe"); 53 INF_REMOVE_FILE(inf,KINSHORT "Files","dipstick.exe");
54 INF_REMOVE_HELP_FILE(inf,KINSHORT "Files","dipstick"); 54 INF_REMOVE_HELP_FILE(inf,KINSHORT "Files","dipstick");
55 INF_REMOVE_FILE(inf,KINSHORT "Files",KINSHORT ".INF"); 55 INF_REMOVE_FILE(inf,KINSHORT "Files",KINSHORT ".INF");
56 INF_FILE_SECTION(inf,"kReg"); 56 INF_FILE_SECTION(inf,"kReg");
57 INF_UNINSTALL_REG(inf,KINSHORT); 57 INF_UNINSTALL_REG(inf,KINSHORT);
58 INF_FILE_SECTION(inf,"kMenu"); 58 INF_FILE_SECTION(inf,"kMenu");
59 INF_MENU_GROUP(inf,1,"Klever Group"); 59 INF_MENU_GROUP(inf,1,"Klever Group");
60 INF_MENU_ITEM(inf,1,KINNAME); 60 INF_MENU_ITEM(inf,1,KINNAME);
61 fclose(inf); 61 fclose(inf);
62 62
63 REG_UNINSTALL_COMMAND(KINSHORT,"Klever " KINNAME " " VERSION,shortPath,KINSHORT ".INF","Uninstall"); 63 REG_UNINSTALL_COMMAND(KINSHORT,"Klever " KINNAME " " VERSION,shortPath,KINSHORT ".INF","Uninstall");
64 REG_UNINSTALL_ICON(KINSHORT,path,"dipstick.exe",0);
65 REG_UNINSTALL_COMMENT(KINSHORT,"Klever Dipstick");
66 REG_UNINSTALL_VERSION(KINSHORT,VERSION);
67 REG_UNINSTALL_LOCATION(KINSHORT,path);
68 REG_UNINSTALL_PUBLISHER(KINSHORT,"Klever Group");
69 REG_UNINSTALL_URLS(KINSHORT,"http://www.klever.net/","http://kin.klever.net/dipstick/");
64 70
65 MessageBox(NULL,KINNAME " " VERSION " installed successfully, you may now run it from 'Programs/Klever Group' menu or remove it using Control Panel Add/Remove Programs applet."," Rejoice!",MB_ICONINFORMATION|MB_OK); 71 MessageBox(NULL,KINNAME " " VERSION " installed successfully, you may now run it from 'Programs/Klever Group' menu or remove it using Control Panel Add/Remove Programs applet."," Rejoice!",MB_ICONINFORMATION|MB_OK);
66 72
67 return TRUE; 73 return TRUE;
68} 74}