-rw-r--r-- | install/install.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/install/install.cpp b/install/install.cpp index 995b78f..296f3a3 100644 --- a/install/install.cpp +++ b/install/install.cpp | |||
@@ -3,12 +3,12 @@ | |||
3 | 3 | ||
4 | #define KINNAME "Dipstick" | 4 | #define KINNAME "Dipstick" |
5 | #define KINSHORT KINNAME | 5 | #define KINSHORT KINNAME |
6 | #define VERSION "3.00" | 6 | #define VERSION "3.0" |
7 | 7 | ||
8 | BOOL Install(void) | 8 | BOOL Install(void) |
9 | { | 9 | { |
10 | STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.",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, Inc.","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) |
@@ -35,10 +35,10 @@ STRING shortPath = GET_SHORT_PATH(path); | |||
35 | MessageBox(NULL,"Failed to install " KINNAME " " VERSION " in specified directory",NULL,MB_ICONERROR|MB_OK); | 35 | MessageBox(NULL,"Failed to install " KINNAME " " VERSION " in specified directory",NULL,MB_ICONERROR|MB_OK); |
36 | return FALSE; | 36 | return FALSE; |
37 | } | 37 | } |
38 | ADDMENU("Accessories\\Klever Co.",KINNAME,path,"dipstick.exe"); | 38 | ADDMENU("Klever Group",KINNAME,path,"dipstick.exe"); |
39 | 39 | ||
40 | strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.",KINSHORT "Path",path); | 40 | strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",KINSHORT "Path",path); |
41 | strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.","KINPath",path); | 41 | strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath",path); |
42 | 42 | ||
43 | FILE* inf=CREATE_INF_FILE(path,KINSHORT ".INF"); | 43 | FILE* inf=CREATE_INF_FILE(path,KINSHORT ".INF"); |
44 | if(!inf){ | 44 | if(!inf){ |
@@ -56,13 +56,13 @@ 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,"Accessories\\Klever Co."); | 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 | 64 | ||
65 | MessageBox(NULL,KINNAME " " VERSION " installed successfully, you may now run it from Programs/Accessories/Klever Co. menu or remove it using Control Panel Add/Remove Programs applet."," Rejoice!",MB_ICONINFORMATION|MB_OK); | 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); |
66 | 66 | ||
67 | return TRUE; | 67 | return TRUE; |
68 | } | 68 | } |