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
|
SOURCE=.\TreeCtrlEx.h
|
||||||
# End Source File
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\UninstallOld.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\UninstallOld.h
|
||||||
|
# End Source File
|
||||||
# End Group
|
# End Group
|
||||||
# Begin Group "Resources"
|
# Begin Group "Resources"
|
||||||
|
|
||||||
|
|||||||
@@ -253,6 +253,22 @@ BEGIN
|
|||||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,149,145,11
|
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,149,145,11
|
||||||
END
|
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
|
TOPMARGIN, 7
|
||||||
BOTTOMMARGIN, 179
|
BOTTOMMARGIN, 179
|
||||||
END
|
END
|
||||||
|
|
||||||
|
IDD_UNINSTALL_OLD_PACKAGES, DIALOG
|
||||||
|
BEGIN
|
||||||
|
LEFTMARGIN, 7
|
||||||
|
RIGHTMARGIN, 270
|
||||||
|
TOPMARGIN, 7
|
||||||
|
BOTTOMMARGIN, 154
|
||||||
|
END
|
||||||
END
|
END
|
||||||
#endif // APSTUDIO_INVOKED
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="7.00"
|
Version="7.00"
|
||||||
Name="smpackage"
|
Name="smpackage"
|
||||||
ProjectGUID="{73DC9F74-4013-4608-85A3-6D3EEA25E064}"
|
|
||||||
SccProjectName=""
|
SccProjectName=""
|
||||||
SccLocalPath=""
|
SccLocalPath=""
|
||||||
Keyword="MFCProj">
|
Keyword="MFCProj">
|
||||||
@@ -14,7 +13,7 @@
|
|||||||
<Configurations>
|
<Configurations>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Release|Win32"
|
Name="Release|Win32"
|
||||||
OutputDirectory=".\.."
|
OutputDirectory=".\../.."
|
||||||
IntermediateDirectory=".\Release"
|
IntermediateDirectory=".\Release"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
UseOfMFC="2"
|
UseOfMFC="2"
|
||||||
@@ -41,10 +40,11 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalOptions="/MACHINE:I386"
|
AdditionalOptions="/MACHINE:I386"
|
||||||
OutputFile=".\../smpackage.exe"
|
AdditionalDependencies="ZipArchive\Release\ZipArchive.lib"
|
||||||
|
OutputFile=".\../../smpackage.exe"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
ProgramDatabaseFile=".\../smpackage.pdb"
|
ProgramDatabaseFile=".\../../smpackage.pdb"
|
||||||
SubSystem="2"/>
|
SubSystem="2"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
MkTypLibCompatible="TRUE"
|
MkTypLibCompatible="TRUE"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
TargetEnvironment="1"
|
TargetEnvironment="1"
|
||||||
TypeLibraryName=".\../smpackage.tlb"/>
|
TypeLibraryName=".\../../smpackage.tlb"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"/>
|
Name="VCPostBuildEventTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory=".\.."
|
OutputDirectory=".\../.."
|
||||||
IntermediateDirectory=".\Debug"
|
IntermediateDirectory=".\Debug"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
UseOfMFC="2"
|
UseOfMFC="2"
|
||||||
@@ -88,6 +88,7 @@
|
|||||||
AssemblerListingLocation=".\Debug/"
|
AssemblerListingLocation=".\Debug/"
|
||||||
ObjectFile=".\Debug/"
|
ObjectFile=".\Debug/"
|
||||||
ProgramDataBaseFileName=".\Debug/"
|
ProgramDataBaseFileName=".\Debug/"
|
||||||
|
BrowseInformation="1"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
DebugInformationFormat="4"/>
|
DebugInformationFormat="4"/>
|
||||||
@@ -100,7 +101,7 @@
|
|||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
GenerateDebugInformation="TRUE"
|
GenerateDebugInformation="TRUE"
|
||||||
ProgramDatabaseFile=".\../smpackage-debug.pdb"
|
ProgramDatabaseFile=".\../../smpackage-debug.pdb"
|
||||||
SubSystem="2"/>
|
SubSystem="2"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
@@ -108,7 +109,7 @@
|
|||||||
MkTypLibCompatible="TRUE"
|
MkTypLibCompatible="TRUE"
|
||||||
SuppressStartupBanner="TRUE"
|
SuppressStartupBanner="TRUE"
|
||||||
TargetEnvironment="1"
|
TargetEnvironment="1"
|
||||||
TypeLibraryName=".\../smpackage.tlb"/>
|
TypeLibraryName=".\../../smpackage.tlb"/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"/>
|
Name="VCPostBuildEventTool"/>
|
||||||
<Tool
|
<Tool
|
||||||
@@ -126,74 +127,164 @@
|
|||||||
</Configuration>
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
<Files>
|
<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
|
<File
|
||||||
RelativePath="..\RageUtil.cpp">
|
RelativePath="UninstallOld.cpp">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\RageUtil.h">
|
RelativePath="UninstallOld.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\ReadMe.txt">
|
RelativePath="UninstallOld.htm"
|
||||||
</File>
|
DeploymentContent="TRUE">
|
||||||
<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">
|
|
||||||
</File>
|
</File>
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
|
|||||||
Reference in New Issue
Block a user