add UninstallOld
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
// UninstallOld.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "smpackage.h"
|
||||
#include "UninstallOld.h"
|
||||
|
||||
|
||||
// UninstallOld dialog
|
||||
|
||||
UninstallOld::UninstallOld(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(UninstallOld::IDD, pParent)
|
||||
, m_sPackages(_T(""))
|
||||
{
|
||||
}
|
||||
|
||||
UninstallOld::~UninstallOld()
|
||||
{
|
||||
}
|
||||
|
||||
void UninstallOld::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
DDX_Text(pDX, IDC_PACKAGES, m_sPackages);
|
||||
}
|
||||
|
||||
BOOL UninstallOld::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
}
|
||||
|
||||
BEGIN_MESSAGE_MAP(UninstallOld, CDialog)
|
||||
//{{AFX_MSG_MAP(UninstallOld)
|
||||
//}}AFX_MSG_MAP
|
||||
ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedNo)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
|
||||
|
||||
// UninstallOld message handlers
|
||||
|
||||
void UninstallOld::OnOK()
|
||||
{
|
||||
EndDialog(IDOK);
|
||||
}
|
||||
|
||||
void UninstallOld::OnCancel()
|
||||
{
|
||||
EndDialog(IDCANCEL);
|
||||
}
|
||||
|
||||
void UninstallOld::OnBnClickedNo()
|
||||
{
|
||||
EndDialog(IDIGNORE);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
// UninstallOld dialog
|
||||
|
||||
class UninstallOld : public CDialog
|
||||
{
|
||||
public:
|
||||
UninstallOld(CWnd* pParent = NULL); // standard constructor
|
||||
virtual ~UninstallOld();
|
||||
// Overrides
|
||||
|
||||
// Dialog Data
|
||||
enum { IDD = IDD_UNINSTALL_OLD_PACKAGES };
|
||||
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
virtual BOOL OnInitDialog();
|
||||
void OnOK();
|
||||
void OnCancel();
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
public:
|
||||
CString m_sPackages;
|
||||
afx_msg void OnBnClickedNo();
|
||||
};
|
||||
@@ -223,6 +223,14 @@ SOURCE=.\TreeCtrlEx.cpp
|
||||
|
||||
SOURCE=.\TreeCtrlEx.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\UninstallOld.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\UninstallOld.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resources"
|
||||
|
||||
|
||||
@@ -253,6 +253,22 @@ BEGIN
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,149,145,11
|
||||
END
|
||||
|
||||
IDD_UNINSTALL_OLD_PACKAGES DIALOGEX 0, 0, 277, 161
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
|
||||
WS_SYSMENU
|
||||
CAPTION "Uninstall Old Packages"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "&Yes",IDOK,55,132,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,171,132,50,14
|
||||
LTEXT "The following packages are already installed. It is strongly recommended that they be deleted before installing this package.",
|
||||
IDC_STATIC,32,11,214,19
|
||||
EDITTEXT IDC_PACKAGES,56,47,165,67,ES_AUTOHSCROLL | ES_READONLY |
|
||||
NOT WS_BORDER
|
||||
PUSHBUTTON "&No",IDC_BUTTON1,111,132,49,14
|
||||
LTEXT "Delete old packages?",IDC_STATIC,105,119,67,12
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -371,6 +387,14 @@ BEGIN
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 179
|
||||
END
|
||||
|
||||
IDD_UNINSTALL_OLD_PACKAGES, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 270
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 154
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
ProjectType="Visual C++"
|
||||
Version="7.00"
|
||||
Name="smpackage"
|
||||
ProjectGUID="{73DC9F74-4013-4608-85A3-6D3EEA25E064}"
|
||||
SccProjectName=""
|
||||
SccLocalPath=""
|
||||
Keyword="MFCProj">
|
||||
@@ -14,7 +13,7 @@
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory=".\.."
|
||||
OutputDirectory=".\../.."
|
||||
IntermediateDirectory=".\Release"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="2"
|
||||
@@ -41,10 +40,11 @@
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
OutputFile=".\../smpackage.exe"
|
||||
AdditionalDependencies="ZipArchive\Release\ZipArchive.lib"
|
||||
OutputFile=".\../../smpackage.exe"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
ProgramDatabaseFile=".\../smpackage.pdb"
|
||||
ProgramDatabaseFile=".\../../smpackage.pdb"
|
||||
SubSystem="2"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
@@ -52,7 +52,7 @@
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\../smpackage.tlb"/>
|
||||
TypeLibraryName=".\../../smpackage.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
@@ -70,7 +70,7 @@
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\.."
|
||||
OutputDirectory=".\../.."
|
||||
IntermediateDirectory=".\Debug"
|
||||
ConfigurationType="1"
|
||||
UseOfMFC="2"
|
||||
@@ -88,6 +88,7 @@
|
||||
AssemblerListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
BrowseInformation="1"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="4"/>
|
||||
@@ -100,7 +101,7 @@
|
||||
LinkIncremental="2"
|
||||
SuppressStartupBanner="TRUE"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile=".\../smpackage-debug.pdb"
|
||||
ProgramDatabaseFile=".\../../smpackage-debug.pdb"
|
||||
SubSystem="2"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
@@ -108,7 +109,7 @@
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\../smpackage.tlb"/>
|
||||
TypeLibraryName=".\../../smpackage.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
@@ -126,74 +127,164 @@
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source"
|
||||
Filter="">
|
||||
<File
|
||||
RelativePath=".\EditInsallations.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EditInsallations.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EditMetricsDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EditMetricsDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EnterComment.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EnterComment.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EnterName.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\EnterName.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\IniFile.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\IniFile.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\MainMenuDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\MainMenuDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\RageUtil.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\RageUtil.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Registry.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Registry.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Resource.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\SMPackageInstallDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\SMPackageInstallDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="SMPackageUtil.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ShowComment.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ShowComment.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\SmpackageExportDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\SmpackageExportDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\StdAfx.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\StdAfx.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TreeCtrlEx.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TreeCtrlEx.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\onvertThemeDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\onvertThemeDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackageUtil.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resources"
|
||||
Filter="">
|
||||
<File
|
||||
RelativePath=".\res\StepMania.ICO">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\converttheme.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\editmetrics.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\install.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\manage.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\menu.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.ICO">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\res\smpackage.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.rc">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\res\smpackage.rc2">
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath="..\RageUtil.cpp">
|
||||
RelativePath="UninstallOld.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\RageUtil.h">
|
||||
RelativePath="UninstallOld.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Resource.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\SMPackageInstallDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\SMPackageInstallDlg.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\StdAfx.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\StdAfx.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\res\StepMania.ICO">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\install.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\manage.bmp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.ICO">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\res\smpackage.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackage.rc">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\res\smpackage.rc2">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackageDlg.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\smpackageDlg.h">
|
||||
RelativePath="UninstallOld.htm"
|
||||
DeploymentContent="TRUE">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
|
||||
Reference in New Issue
Block a user