Click here to Skip to main content
15,884,099 members
Articles / Desktop Programming / MFC

Easy Installer

Rate me:
Please Sign up or sign in to vote.
4.81/5 (57 votes)
14 Sep 2006CPOL11 min read 276.7K   3.7K   155  
The Easy Installer program
// CreateInstallerDlg.h : header file
//

#include "afxwin.h"
#include "Wrap.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCreateInstallerDlg dialog

class CCreateInstallerDlg : public CDialog
{
// Construction
public:
	CCreateInstallerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCreateInstallerDlg)
	enum { IDD = IDD_CREATEINSTALLER_DIALOG };
	CListBox	m_lstInFiles;
	CEdit		m_edtTarget;
	CString		m_target;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCreateInstallerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCreateInstallerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMakeInstaller();
	afx_msg void OnInBrowse();
	afx_msg void OnOutBrowse();
	afx_msg void OnDelinfiles();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	void	GetProject(CString prj);

	CString iniFileName;
	CWrap	wrap;

public:
	afx_msg void OnCbnSelchangeCombo1();
	afx_msg void OnBnClickedButton1();

	CComboBox m_cmbProjectList;
	CButton	m_btn95;
	CButton	m_btn98;
	CButton	m_btnME;
	CButton	m_btnNT35;
	CButton	m_btnNT4;
	CButton	m_btn2K;
	CButton	m_btnXP;
	CEdit	m_edtWebCaption;
	CEdit	m_edtWebURL;
	afx_msg void OnBnClickedButton2();
	afx_msg void OnBnClickedButton3();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Israel Israel
lichen farmer, semi-lingual, never saw a Sylvester Stallone movie

Comments and Discussions