author | Michael Krelin <hacker@klever.net> | 2005-08-05 23:42:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-08-05 23:42:33 (UTC) |
commit | f2018d0e4377e7cdff17471b473c45daf5c2ddd7 (patch) (unidiff) | |
tree | ebfb9cab87dbc464122e177aa116eb0fc7dc9088 /install | |
parent | d2f4327f3752ff30c3b0ec7fdd2e63bc1a1db5ee (diff) | |
download | dipstick-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
-rw-r--r-- | install/install.cpp | 8 |
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,14 +1,14 @@ | |||
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 | ||
8 | BOOL Install(void) | 8 | BOOL Install(void) |
9 | { | 9 | { |
10 | STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",KINSHORT "Path"); | 10 | STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",KINSHORT "Path"); |
11 | STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath"); | 11 | STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath"); |
12 | LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings"); | 12 | LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings"); |
13 | STRING path = REQUESTPATH(" " KINNAME " " VERSION,"\nEnter destination path:",qPath); | 13 | STRING path = REQUESTPATH(" " KINNAME " " VERSION,"\nEnter destination path:",qPath); |
14 | if(!path) | 14 | if(!path) |
@@ -56,13 +56,19 @@ FILE* inf=CREATE_INF_FILE(path,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 | } |