BINDInstallDlg.h revision 4e6b8a18ff7dd22797970208060cca9f99f54daf
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews/*
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington * Portions Copyright (C) 2001 Internet Software Consortium.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence *
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews * Permission to use, copy, modify, and distribute this software for any
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews * purpose with or without fee is hereby granted, provided that the above
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews * copyright notice and this permission notice appear in all copies.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence *
15a44745412679c30a6d022733925af70a38b715David Lawrence * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
15a44745412679c30a6d022733925af70a38b715David Lawrence * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
15a44745412679c30a6d022733925af70a38b715David Lawrence * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
15a44745412679c30a6d022733925af70a38b715David Lawrence * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
15a44745412679c30a6d022733925af70a38b715David Lawrence * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
15a44745412679c30a6d022733925af70a38b715David Lawrence * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15a44745412679c30a6d022733925af70a38b715David Lawrence * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
15a44745412679c30a6d022733925af70a38b715David Lawrence * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews */
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews
dcc7ea97174501f0409c0c919b3ca04083e4e1b8Andreas Gustafsson/* $Id: BINDInstallDlg.h,v 1.3 2001/07/31 00:03:14 gson Exp $ */
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews/*
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews * Copyright (c) 1999-2000 by Nortel Networks Corporation
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence *
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence * Permission to use, copy, modify, and distribute this software for any
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews * purpose with or without fee is hereby granted, provided that the above
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews * copyright notice and this permission notice appear in all copies.
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews *
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS
e21d199dca95aff5d50f133d6b064309e209af00Brian Wellington * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
e43b9a20054cdda6946ab758e1c2005f2b25641aBrian Wellington * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
8b61d2012063306528286680bd9f086fa868d86eMark Andrews * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
19d1b1667d073850d4366352aaf8319efc5debeeBrian Wellington * SOFTWARE.
19d1b1667d073850d4366352aaf8319efc5debeeBrian Wellington */
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence#ifndef BINDINSTALLDLG_H
19d1b1667d073850d4366352aaf8319efc5debeeBrian Wellington#define BINDINSTALLDLG_H
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrenceclass CBINDInstallDlg : public CDialog
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence{
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrewspublic:
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence CBINDInstallDlg(CWnd* pParent = NULL); // standard constructor
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews //{{AFX_DATA(CBINDInstallDlg)
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews enum { IDD = IDD_BINDINSTALL_DIALOG };
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews CString m_targetDir;
440164d3e36353a4b9801fcc05fe66b6cf1fb8ceMark Andrews CString m_version;
440164d3e36353a4b9801fcc05fe66b6cf1fb8ceMark Andrews BOOL m_autoStart;
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews BOOL m_keepFiles;
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff CString m_current;
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff BOOL m_startOnInstall;
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff //}}AFX_DATA
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews // ClassWizard generated virtual function overrides
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff //{{AFX_VIRTUAL(CBINDInstallDlg)
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff protected:
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff //}}AFX_VIRTUAL
46993e1d9d18410a5852b7d990338b70b158855cMichael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graffprotected:
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void StartBINDService();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void StopBINDService();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void InstallTags();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void UninstallTags();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void CreateDirs();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews void RemoveDirs(BOOL uninstall);
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews void CopyFiles();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void DeleteFiles(BOOL uninstall);
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void RegisterService();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void UnregisterService(BOOL uninstall);
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void RegisterMessages();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void UnregisterMessages(BOOL uninstall);
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void FailedInstall();
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff void SetItemStatus(UINT nID, BOOL bSuccess = TRUE);
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graff
ca9739800f045cd4d39014f98b920d4354b5bd14Michael Graffprotected:
0f80bfec687db08a6e6ce945ef1d818da06c7ca9Brian Wellington CString DestDir(int destination);
19d1b1667d073850d4366352aaf8319efc5debeeBrian Wellington int MsgBox(int id, ...);
8126e45e8cc3fd54517c034dd30a42928f5206e3Andreas Gustafsson int MsgBox(int id, UINT type, ...);
8126e45e8cc3fd54517c034dd30a42928f5206e3Andreas Gustafsson CString GetErrMessage(DWORD err = -1);
34ee961fa2f0f5f2ee3cff40fdb4d7d7b48b7728Mark Andrews BOOL CheckBINDService();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews void SetCurrent(int id, ...);
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews void ProgramGroup(BOOL create = TRUE);
046a9aca49bdc25bd57d75fd0dd34c021722f095Mark Andrews
046a9aca49bdc25bd57d75fd0dd34c021722f095Mark Andrews HICON m_hIcon;
046a9aca49bdc25bd57d75fd0dd34c021722f095Mark Andrews CString m_defaultDir;
046a9aca49bdc25bd57d75fd0dd34c021722f095Mark Andrews CString m_etcDir;
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews CString m_binDir;
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews CString m_winSysDir;
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews BOOL m_reboot;
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews CString m_currentDir;
046a9aca49bdc25bd57d75fd0dd34c021722f095Mark Andrews
046a9aca49bdc25bd57d75fd0dd34c021722f095Mark Andrews // Generated message map functions
0ad8ee89c532951a55b7de25317eeca2c3b2ed63Andreas Gustafsson //{{AFX_MSG(CBINDInstallDlg)
0ad8ee89c532951a55b7de25317eeca2c3b2ed63Andreas Gustafsson virtual BOOL OnInitDialog();
f53848e17123569387b279578f0100dca5407da5Mark Andrews afx_msg void OnPaint();
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews afx_msg HCURSOR OnQueryDragIcon();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews afx_msg void OnBrowse();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews afx_msg void OnChangeTargetdir();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews afx_msg void OnInstall();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews afx_msg void OnExit();
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews afx_msg void OnUninstall();
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews afx_msg void OnAutoStart();
440164d3e36353a4b9801fcc05fe66b6cf1fb8ceMark Andrews afx_msg void OnKeepFiles();
b54630c4518a1a173fee3478f4bf51dff450b6dcMark Andrews afx_msg void OnStartOnInstall();
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews //}}AFX_MSG
59abb512d344bfa09012cc11b7d814966f035da4Mark Andrews DECLARE_MESSAGE_MAP()
559bb1016f1b00a3661cb2790dc837a977057b86Mark Andrews};
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews#endif
78da321b437bbb690ef570ccf17dcc8583a5a4a0Mark Andrews