summaryrefslogtreecommitdiffabout
path: root/install/install.cpp
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) (side-by-side diff)
treeebfb9cab87dbc464122e177aa116eb0fc7dc9088 /install/install.cpp
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/install.cpp') (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,14 +1,14 @@
#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)
@@ -56,13 +56,19 @@ FILE* inf=CREATE_INF_FILE(path,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;
}