- dotnetinstaller_source.zip
- dotNetInstaller_source
- dotNetInstaller
- InstallerEditor
- Sample
- banner.bmp
- configuration.xml
- dotNetInstaller.exe
- SampleApp.msi.readme.txt
- SupportFiles
- DataAccess
- Jet
- Jet40Sp7
- Win2000_English
- Win2000_Italiano
- Win9x_NT
- WinME
- WinXp_English
- WinXp_Italiano
- MDAC2.7Sp1Refresh
- Win_98_ME_NT_2000
- dotNet
- InternetExplorer
- IE60SP1_English
- IE60SP1_Italiano
- ServicePack
- 2000_SP4_English
- 2000_SP4_Italiano
- NT4_SP6a_English
- NT4_SP6a_Italiano
- Win98_Y2k_Update_English
- Win98_Y2k_Update_Italiano
|
// InstallComponentDlg.cpp : implementation file
//
#include "stdafx.h"
#include "dotNetInstaller.h"
#include "InstallComponentDlg.h"
#include ".\installcomponentdlg.h"
// InstallComponentDlg dialog
IMPLEMENT_DYNAMIC(InstallComponentDlg, CDialog)
InstallComponentDlg::InstallComponentDlg(CWnd* pParent /*=NULL*/)
: CDialog(InstallComponentDlg::IDD, pParent),
m_Component(NULL),
m_Setting(NULL),
m_bSkipped(true)
{
}
InstallComponentDlg::~InstallComponentDlg()
{
}
void InstallComponentDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_INSTALL_ICON, m_InstallIcon);
DDX_Control(pDX, IDC_HELP_INSTALL, m_InstallMessage);
DDX_Control(pDX, IDC_NEXT, m_Install_Next);
DDX_Control(pDX, IDC_SKIP, m_Install_Skip);
}
BEGIN_MESSAGE_MAP(InstallComponentDlg, CDialog)
ON_BN_CLICKED(IDC_NEXT, OnBnClickedNext)
ON_BN_CLICKED(IDC_SKIP, OnBnClickedSkip)
ON_WM_TIMER()
ON_WM_CREATE()
END_MESSAGE_MAP()
// InstallComponentDlg message handlers
void InstallComponentDlg::LoadComponent(installerSetting * p_Setting, component * p_Component)
{
m_Setting = p_Setting;
m_Component = p_Component;
}
void InstallComponentDlg::OnBnClickedNext()
{
bool l_retVal;
CString l_tmp;
l_tmp.Format(m_Setting->installing_component_wait, m_Component->description);
m_InstallMessage.SetWindowText(l_tmp);
l_retVal = m_Component->Exec();
if (l_retVal == false)
{
OnCancel();
}
else
{
m_bSkipped = false;
this->SetTimer(1,1000,NULL);
m_Install_Next.EnableWindow(FALSE);
m_Install_Skip.EnableWindow(FALSE);
}
}
void InstallComponentDlg::OnBnClickedSkip()
{
OnCancel();
}
void InstallComponentDlg::OnTimer(UINT nIDEvent)
{
try
{
if (m_Component != NULL)
{
if (m_Component->IsExecuting() == false)
{
DWORD l_ExitCode = m_Component->GetExitCode();
if (l_ExitCode == ERROR_SUCCESS || l_ExitCode == ERROR_SUCCESS_REBOOT_REQUIRED)
{
OnOK();
}
else //error
{
// CString l_msg;
// l_msg.Format( m_Settings.failed_exec_command, m_Settings.components[i]->description );
// AfxMessageBox(l_msg);
OnOK();
}
}
}
}
catch(...)
{
_ASSERT(false);
}
CDialog::OnTimer(nIDEvent);
}
int InstallComponentDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
BOOL InstallComponentDlg::OnInitDialog()
{
CDialog::OnInitDialog();
if (m_Setting!=NULL && m_Component != NULL)
{
m_Install_Next.SetWindowText(m_Setting->dialog_install_next);
m_Install_Skip.SetWindowText(m_Setting->dialog_install_skip);
m_InstallMessage.SetWindowText(m_Component->installmessage);
}
return TRUE;
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.