diff options
author | Internet Software Consortium, Inc <@isc.org> | 2007-09-07 14:14:59 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-09-07 14:14:59 -0600 |
commit | 1b0e269bf7483771169a95a6af5f0bc539de3bda (patch) | |
tree | 7d9913404d07241cf2f294f9acff1afd433eb84f /bin/win32/BINDInstall | |
parent | bfef371771ff5f41ee1898ea9e0bf3731a456665 (diff) | |
download | bind9-1b0e269bf7483771169a95a6af5f0bc539de3bda.tar.gz |
9.2.6b2
Diffstat (limited to 'bin/win32/BINDInstall')
-rw-r--r-- | bin/win32/BINDInstall/BINDInstallDlg.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/win32/BINDInstall/BINDInstallDlg.cpp b/bin/win32/BINDInstall/BINDInstallDlg.cpp index fbc14bd6..637b89fa 100644 --- a/bin/win32/BINDInstall/BINDInstallDlg.cpp +++ b/bin/win32/BINDInstall/BINDInstallDlg.cpp @@ -1,5 +1,5 @@ /* - * Portions Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") + * Portions Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") * Portions Copyright (C) 2001-2003 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: BINDInstallDlg.cpp,v 1.6.2.12 2004/05/18 01:26:41 marka Exp $ */ +/* $Id: BINDInstallDlg.cpp,v 1.6.2.14 2005/10/11 23:53:58 marka Exp $ */ /* * Copyright (c) 1999-2000 by Nortel Networks Corporation @@ -426,16 +426,17 @@ void CBINDInstallDlg::OnInstall() SetCurrent(IDS_ADD_REMOVE); - if(RegCreateKey(HKEY_LOCAL_MACHINE, BIND_UNINSTALL_SUBKEY, &hKey) == ERROR_SUCCESS) + if(RegCreateKey(HKEY_LOCAL_MACHINE, BIND_UNINSTALL_SUBKEY, + &hKey) == ERROR_SUCCESS) { - char winDir[MAX_PATH]; CString buf(BIND_DISPLAY_NAME); - GetWindowsDirectory(winDir, MAX_PATH); - RegSetValueEx(hKey, "DisplayName", 0, REG_SZ, (LPBYTE)(LPCTSTR)buf, buf.GetLength()); + RegSetValueEx(hKey, "DisplayName", 0, REG_SZ, + (LPBYTE)(LPCTSTR)buf, buf.GetLength()); - buf.Format("%s\\BINDInstall.exe", winDir); - RegSetValueEx(hKey, "UninstallString", 0, REG_SZ, (LPBYTE)(LPCTSTR)buf, buf.GetLength()); + buf.Format("%s\\BINDInstall.exe", m_binDir); + RegSetValueEx(hKey, "UninstallString", 0, REG_SZ, + (LPBYTE)(LPCTSTR)buf, buf.GetLength()); RegCloseKey(hKey); } |