-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,22 +1,22 @@ #include "resource.h"
#include "../shared-code/install.h"
#define KINNAME "Dipstick"
#define KINSHORT KINNAME
-#define VERSION "3.1-trunk"
+#define VERSION "3.1"
BOOL Install(void)
{
STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",KINSHORT "Path");
STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath");
LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings");
STRING path = REQUESTPATH(" " KINNAME " " VERSION,"\nEnter destination path:",qPath);
if(!path)
return NULL;
#ifdef K_ANNED
STRING sysDir(_MAX_PATH);
GetSystemDirectory(sysDir,_MAX_PATH);
INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll");
#endif
@@ -48,21 +48,27 @@ FILE* inf=CREATE_INF_FILE(path,KINSHORT ".INF"); INF_FILE_HEADER(inf);
INF_FILE_SECTION(inf,"Uninstall");
fprintf(inf,"AddReg=kFiles\nDelReg=kReg\nUpdateInis=kMenu\n");
INF_FILE_SECTION(inf,"kFiles");
INF_REMOVE_ROOT(inf,KINSHORT "Files",path);
INF_REMOVE_FILE(inf,KINSHORT "Files","dipstick.exe");
INF_REMOVE_HELP_FILE(inf,KINSHORT "Files","dipstick");
INF_REMOVE_FILE(inf,KINSHORT "Files",KINSHORT ".INF");
INF_FILE_SECTION(inf,"kReg");
INF_UNINSTALL_REG(inf,KINSHORT);
INF_FILE_SECTION(inf,"kMenu");
INF_MENU_GROUP(inf,1,"Klever Group");
INF_MENU_ITEM(inf,1,KINNAME);
fclose(inf);
REG_UNINSTALL_COMMAND(KINSHORT,"Klever " KINNAME " " VERSION,shortPath,KINSHORT ".INF","Uninstall");
+ REG_UNINSTALL_ICON(KINSHORT,path,"dipstick.exe",0);
+ REG_UNINSTALL_COMMENT(KINSHORT,"Klever Dipstick");
+ REG_UNINSTALL_VERSION(KINSHORT,VERSION);
+ REG_UNINSTALL_LOCATION(KINSHORT,path);
+ REG_UNINSTALL_PUBLISHER(KINSHORT,"Klever Group");
+ REG_UNINSTALL_URLS(KINSHORT,"http://www.klever.net/","http://kin.klever.net/dipstick/");
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);
return TRUE;
}
|