From f4c3bc5671a159ff697ba23fc80037de350477da Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 15 May 2021 03:40:58 +0300 Subject: [PATCH] Initial commit --- .gitignore | 13 + CleanFlashCommon/CleanFlashCommon.csproj | 87 +++ CleanFlashCommon/ExitedProcess.cs | 12 + CleanFlashCommon/FileUtil.cs | 102 ++++ CleanFlashCommon/GradientButton.cs | 91 +++ CleanFlashCommon/HandleUtil.cs | 527 ++++++++++++++++++ CleanFlashCommon/IProgressForm.cs | 7 + CleanFlashCommon/ImageCheckBox.Designer.cs | 32 ++ CleanFlashCommon/ImageCheckBox.cs | 11 + CleanFlashCommon/InstallException.cs | 10 + CleanFlashCommon/ProcessRunner.cs | 46 ++ CleanFlashCommon/Properties/AssemblyInfo.cs | 36 ++ .../Properties/Resources.Designer.cs | 96 ++++ CleanFlashCommon/Properties/Resources.resx | 249 +++++++++ CleanFlashCommon/RedirectionManager.cs | 33 ++ CleanFlashCommon/RegistryManager.cs | 40 ++ CleanFlashCommon/SmoothProgressBar.cs | 164 ++++++ CleanFlashCommon/SystemInfo.cs | 83 +++ CleanFlashCommon/Uninstaller.cs | 166 ++++++ CleanFlashCommon/UpdateChecker.cs | 83 +++ CleanFlashCommon/checkboxOff.png | Bin 0 -> 257 bytes CleanFlashCommon/checkboxOn.png | Bin 0 -> 448 bytes CleanFlashCommon/flashLogo.png | Bin 0 -> 1409 bytes CleanFlashCommon/icon.ico | Bin 0 -> 111965 bytes CleanFlashCommon/small_icon.ico | Bin 0 -> 4286 bytes CleanFlashInstaller.sln | 65 +++ CleanFlashInstaller/App.config | 6 + .../CleanFlashInstaller.csproj | 200 +++++++ CleanFlashInstaller/ILMerge.props | 67 +++ CleanFlashInstaller/ILMergeOrder.txt | 4 + CleanFlashInstaller/InstallForm.Designer.cs | 507 +++++++++++++++++ CleanFlashInstaller/InstallForm.cs | 251 +++++++++ CleanFlashInstaller/InstallForm.resx | 252 +++++++++ CleanFlashInstaller/Installer.cs | 103 ++++ CleanFlashInstaller/Program.cs | 16 + .../Properties/AssemblyInfo.cs | 36 ++ .../Properties/Resources.Designer.cs | 238 ++++++++ CleanFlashInstaller/Properties/Resources.resx | 358 ++++++++++++ .../Properties/Settings.Designer.cs | 26 + .../Properties/Settings.settings | 7 + CleanFlashInstaller/app.manifest | 20 + CleanFlashInstaller/packages.config | 6 + .../CleanFlashUninstaller.csproj | 118 ++++ CleanFlashUninstaller/ILMerge.props | 67 +++ CleanFlashUninstaller/ILMergeOrder.txt | 4 + CleanFlashUninstaller/Program.cs | 82 +++ .../Properties/AssemblyInfo.cs | 36 ++ .../Properties/Resources.Designer.cs | 73 +++ .../Properties/Resources.resx | 124 +++++ .../Properties/Settings.Designer.cs | 25 + .../Properties/Settings.settings | 7 + CleanFlashUninstaller/Resources/flashLogo.png | Bin 0 -> 1409 bytes .../UninstallForm.Designer.cs | 322 +++++++++++ CleanFlashUninstaller/UninstallForm.cs | 129 +++++ CleanFlashUninstaller/UninstallForm.resx | 252 +++++++++ CleanFlashUninstaller/app.manifest | 20 + CleanFlashUninstaller/packages.config | 5 + README.md | 44 ++ 58 files changed, 5358 insertions(+) create mode 100644 .gitignore create mode 100644 CleanFlashCommon/CleanFlashCommon.csproj create mode 100644 CleanFlashCommon/ExitedProcess.cs create mode 100644 CleanFlashCommon/FileUtil.cs create mode 100644 CleanFlashCommon/GradientButton.cs create mode 100644 CleanFlashCommon/HandleUtil.cs create mode 100644 CleanFlashCommon/IProgressForm.cs create mode 100644 CleanFlashCommon/ImageCheckBox.Designer.cs create mode 100644 CleanFlashCommon/ImageCheckBox.cs create mode 100644 CleanFlashCommon/InstallException.cs create mode 100644 CleanFlashCommon/ProcessRunner.cs create mode 100644 CleanFlashCommon/Properties/AssemblyInfo.cs create mode 100644 CleanFlashCommon/Properties/Resources.Designer.cs create mode 100644 CleanFlashCommon/Properties/Resources.resx create mode 100644 CleanFlashCommon/RedirectionManager.cs create mode 100644 CleanFlashCommon/RegistryManager.cs create mode 100644 CleanFlashCommon/SmoothProgressBar.cs create mode 100644 CleanFlashCommon/SystemInfo.cs create mode 100644 CleanFlashCommon/Uninstaller.cs create mode 100644 CleanFlashCommon/UpdateChecker.cs create mode 100644 CleanFlashCommon/checkboxOff.png create mode 100644 CleanFlashCommon/checkboxOn.png create mode 100644 CleanFlashCommon/flashLogo.png create mode 100644 CleanFlashCommon/icon.ico create mode 100644 CleanFlashCommon/small_icon.ico create mode 100644 CleanFlashInstaller.sln create mode 100644 CleanFlashInstaller/App.config create mode 100644 CleanFlashInstaller/CleanFlashInstaller.csproj create mode 100644 CleanFlashInstaller/ILMerge.props create mode 100644 CleanFlashInstaller/ILMergeOrder.txt create mode 100644 CleanFlashInstaller/InstallForm.Designer.cs create mode 100644 CleanFlashInstaller/InstallForm.cs create mode 100644 CleanFlashInstaller/InstallForm.resx create mode 100644 CleanFlashInstaller/Installer.cs create mode 100644 CleanFlashInstaller/Program.cs create mode 100644 CleanFlashInstaller/Properties/AssemblyInfo.cs create mode 100644 CleanFlashInstaller/Properties/Resources.Designer.cs create mode 100644 CleanFlashInstaller/Properties/Resources.resx create mode 100644 CleanFlashInstaller/Properties/Settings.Designer.cs create mode 100644 CleanFlashInstaller/Properties/Settings.settings create mode 100644 CleanFlashInstaller/app.manifest create mode 100644 CleanFlashInstaller/packages.config create mode 100644 CleanFlashUninstaller/CleanFlashUninstaller.csproj create mode 100644 CleanFlashUninstaller/ILMerge.props create mode 100644 CleanFlashUninstaller/ILMergeOrder.txt create mode 100644 CleanFlashUninstaller/Program.cs create mode 100644 CleanFlashUninstaller/Properties/AssemblyInfo.cs create mode 100644 CleanFlashUninstaller/Properties/Resources.Designer.cs create mode 100644 CleanFlashUninstaller/Properties/Resources.resx create mode 100644 CleanFlashUninstaller/Properties/Settings.Designer.cs create mode 100644 CleanFlashUninstaller/Properties/Settings.settings create mode 100644 CleanFlashUninstaller/Resources/flashLogo.png create mode 100644 CleanFlashUninstaller/UninstallForm.Designer.cs create mode 100644 CleanFlashUninstaller/UninstallForm.cs create mode 100644 CleanFlashUninstaller/UninstallForm.resx create mode 100644 CleanFlashUninstaller/app.manifest create mode 100644 CleanFlashUninstaller/packages.config create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35be6f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +.vs/ +packages/ + +bin +obj + +*.exe +*.obj +*.pdb +*.user +*.suo + +flash_*.zip \ No newline at end of file diff --git a/CleanFlashCommon/CleanFlashCommon.csproj b/CleanFlashCommon/CleanFlashCommon.csproj new file mode 100644 index 0000000..7e1affa --- /dev/null +++ b/CleanFlashCommon/CleanFlashCommon.csproj @@ -0,0 +1,87 @@ + + + + + Debug + AnyCPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE} + Library + Properties + CleanFlashCommon + CleanFlashCommon + v4.0 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + Component + + + + Component + + + ImageCheckBox.cs + + + + + + + True + True + Resources.resx + + + + + UserControl + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + + + \ No newline at end of file diff --git a/CleanFlashCommon/ExitedProcess.cs b/CleanFlashCommon/ExitedProcess.cs new file mode 100644 index 0000000..f09675e --- /dev/null +++ b/CleanFlashCommon/ExitedProcess.cs @@ -0,0 +1,12 @@ +namespace CleanFlashCommon { + public class ExitedProcess { + public int ExitCode { get; set; } + public string Output { get; set; } + + public bool IsSuccessful { + get { + return ExitCode == 0; + } + } + } +} diff --git a/CleanFlashCommon/FileUtil.cs b/CleanFlashCommon/FileUtil.cs new file mode 100644 index 0000000..9062ec0 --- /dev/null +++ b/CleanFlashCommon/FileUtil.cs @@ -0,0 +1,102 @@ +using System.IO; +using System.Linq; +using System.Security.AccessControl; +using System.Security.Principal; +using System.Threading; + +namespace CleanFlashCommon { + public class FileUtil { + + public static void TakeOwnership(string filename) { + FileSecurity security = new FileSecurity(); + + SecurityIdentifier sid = WindowsIdentity.GetCurrent().User; + security.SetOwner(sid); + security.SetAccessRule(new FileSystemAccessRule(sid, FileSystemRights.FullControl, AccessControlType.Allow)); + + File.SetAccessControl(filename, security); + + // Remove read-only attribute + File.SetAttributes(filename, File.GetAttributes(filename) & ~FileAttributes.ReadOnly); + } + + public static void RecursiveDelete(DirectoryInfo rootDir, DirectoryInfo baseDir, string filename) { + if (!baseDir.Exists) { + return; + } + + if (!baseDir.FullName.StartsWith(rootDir.FullName)) { + // Sanity check. + return; + } + + foreach (DirectoryInfo dir in baseDir.EnumerateDirectories()) { + RecursiveDelete(rootDir, dir, filename); + } + + foreach (FileInfo file in baseDir.GetFiles()) { + if (!file.FullName.StartsWith(rootDir.FullName)) { + // Sanity check. + continue; + } + + if (filename == null || file.Name.Equals(filename)) { + DeleteFile(file); + } + } + + if (!Directory.EnumerateFileSystemEntries(baseDir.FullName).Any()) { + try { + baseDir.Delete(); + } catch { + HandleUtil.KillProcessesUsingFile(baseDir.FullName); + baseDir.Delete(); + } + } + } + + public static void DeleteFile(FileInfo file) { + if (!file.Exists) { + return; + } + + try { + file.IsReadOnly = false; + file.Delete(); + } catch { + for (int i = 0; i < 10; ++i) { + try { + TakeOwnership(file.FullName); + file.IsReadOnly = false; + file.Delete(); + return; + } catch { + // Try again after sleeping. + Thread.Sleep(500); + } + } + + HandleUtil.KillProcessesUsingFile(file.FullName); + file.Delete(); + } + } + + public static void RecursiveDelete(DirectoryInfo baseDir) { + RecursiveDelete(baseDir, baseDir, null); + } + + public static void RecursiveDelete(string baseDir, string filename) { + DirectoryInfo dirInfo = new DirectoryInfo(baseDir); + RecursiveDelete(dirInfo, dirInfo, filename); + } + + public static void RecursiveDelete(string baseDir) { + DirectoryInfo dirInfo = new DirectoryInfo(baseDir); + RecursiveDelete(dirInfo, dirInfo, null); + } + + public static void DeleteFile(string file) { + DeleteFile(new FileInfo(file)); + } + } +} diff --git a/CleanFlashCommon/GradientButton.cs b/CleanFlashCommon/GradientButton.cs new file mode 100644 index 0000000..b228b51 --- /dev/null +++ b/CleanFlashCommon/GradientButton.cs @@ -0,0 +1,91 @@ +using System; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Windows.Forms; + +namespace CleanFlashCommon { + public class GradientButton : Button { + public Color Color1 { get; set; } + public Color Color2 { get; set; } + public double HoverAlpha { get; set; } + public double DisableAlpha { get; set; } + + private bool Hovered = false; + + public GradientButton() { + Color1 = Color.Black; + Color2 = Color.White; + HoverAlpha = 0.875; + DisableAlpha = 0.644; + } + + protected override void OnMouseDown(MouseEventArgs mevent) { + Hovered = false; + base.OnMouseDown(mevent); + Refresh(); + } + + protected override void OnMouseUp(MouseEventArgs mevent) { + Hovered = true; + base.OnMouseUp(mevent); + Refresh(); + } + + protected override void OnMouseEnter(EventArgs e) { + Hovered = true; + base.OnMouseEnter(e); + Refresh(); + } + + protected override void OnMouseLeave(EventArgs e) { + Hovered = false; + base.OnMouseLeave(e); + Refresh(); + } + + protected override void OnPaint(PaintEventArgs e) { + Color c1 = Color1; + Color c2 = Color2; + Color c3 = BackColor; + Color c4 = ForeColor; + + if (!Enabled) { + c1 = Color.FromArgb(255, (int)(c1.R * DisableAlpha), (int)(c1.G * DisableAlpha), (int)(c1.B * DisableAlpha)); + c2 = Color.FromArgb(255, (int)(c2.R * DisableAlpha), (int)(c2.G * DisableAlpha), (int)(c2.B * DisableAlpha)); + c3 = Color.FromArgb(255, (int)(c3.R * DisableAlpha), (int)(c3.G * DisableAlpha), (int)(c3.B * DisableAlpha)); + c4 = Color.FromArgb(255, (int)(c4.R * DisableAlpha), (int)(c4.G * DisableAlpha), (int)(c4.B * DisableAlpha)); + } else if (!Hovered) { + c1 = Color.FromArgb(255, (int)(c1.R * HoverAlpha), (int)(c1.G * HoverAlpha), (int)(c1.B * HoverAlpha)); + c2 = Color.FromArgb(255, (int)(c2.R * HoverAlpha), (int)(c2.G * HoverAlpha), (int)(c2.B * HoverAlpha)); + } + + SizeF size = e.Graphics.MeasureString(Text, Font); + + using (Brush brush = new LinearGradientBrush(ClientRectangle, c1, c2, 90.0F)) { + e.Graphics.FillRectangle(brush, ClientRectangle); + } + + int thickness = 1; + int halfThickness = thickness / 2; + + using (Pen pen = new Pen(c3, thickness)) { + e.Graphics.DrawRectangle( + pen, new Rectangle( + halfThickness, halfThickness, + ClientRectangle.Width - thickness, ClientRectangle.Height - thickness + ) + ); + } + + Point point = new Point( + (ClientRectangle.Width - (int)size.Width) / 2, + (ClientRectangle.Height - (int)size.Height) / 2 + ); + + using (Brush brush = new SolidBrush(c4)) { + e.Graphics.DrawString(Text, Font, new SolidBrush(c3), new Point(point.X + 1, point.Y + 1)); + e.Graphics.DrawString(Text, Font, brush, point); + } + } + } +} diff --git a/CleanFlashCommon/HandleUtil.cs b/CleanFlashCommon/HandleUtil.cs new file mode 100644 index 0000000..7fe6a33 --- /dev/null +++ b/CleanFlashCommon/HandleUtil.cs @@ -0,0 +1,527 @@ +// Taken from: https://github.com/Walkman100/FileLocks +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.CompilerServices; +using System.Runtime.ConstrainedExecution; +using System.Runtime.InteropServices; +using System.Security.Permissions; +using System.Text; +using System.Threading; +using Microsoft.Win32.SafeHandles; +using System.Diagnostics; +using System.Linq; + +namespace CleanFlashCommon { + public static class HandleUtil { + + private static Dictionary deviceMap; + private const string networkDevicePrefix = "\\Device\\LanmanRedirector\\"; + private const int MAX_PATH = 260; + private const int handleTypeTokenCount = 27; + private static readonly string[] handleTypeTokens = new string[] { + "", "", "Directory", "SymbolicLink", "Token", + "Process", "Thread", "Unknown7", "Event", "EventPair", "Mutant", + "Unknown11", "Semaphore", "Timer", "Profile", "WindowStation", + "Desktop", "Section", "Key", "Port", "WaitablePort", + "Unknown21", "Unknown22", "Unknown23", "Unknown24", + "IoCompletion", "File" + }; + + internal enum NT_STATUS { + STATUS_SUCCESS = 0x00000000, + STATUS_BUFFER_OVERFLOW = unchecked((int)0x80000005L), + STATUS_INFO_LENGTH_MISMATCH = unchecked((int)0xC0000004L) + } + + internal enum SYSTEM_INFORMATION_CLASS { + SystemBasicInformation = 0, + SystemPerformanceInformation = 2, + SystemTimeOfDayInformation = 3, + SystemProcessInformation = 5, + SystemProcessorPerformanceInformation = 8, + SystemHandleInformation = 16, + SystemInterruptInformation = 23, + SystemExceptionInformation = 33, + SystemRegistryQuotaInformation = 37, + SystemLookasideInformation = 45 + } + + internal enum OBJECT_INFORMATION_CLASS { + ObjectBasicInformation = 0, + ObjectNameInformation = 1, + ObjectTypeInformation = 2, + ObjectAllTypesInformation = 3, + ObjectHandleInformation = 4 + } + + [Flags] + internal enum ProcessAccessRights { + PROCESS_DUP_HANDLE = 0x00000040 + } + + [Flags] + internal enum DuplicateHandleOptions { + DUPLICATE_CLOSE_SOURCE = 0x1, + DUPLICATE_SAME_ACCESS = 0x2 + } + + private enum SystemHandleType { + OB_TYPE_UNKNOWN = 0, + OB_TYPE_TYPE = 1, + OB_TYPE_DIRECTORY, + OB_TYPE_SYMBOLIC_LINK, + OB_TYPE_TOKEN, + OB_TYPE_PROCESS, + OB_TYPE_THREAD, + OB_TYPE_UNKNOWN_7, + OB_TYPE_EVENT, + OB_TYPE_EVENT_PAIR, + OB_TYPE_MUTANT, + OB_TYPE_UNKNOWN_11, + OB_TYPE_SEMAPHORE, + OB_TYPE_TIMER, + OB_TYPE_PROFILE, + OB_TYPE_WINDOW_STATION, + OB_TYPE_DESKTOP, + OB_TYPE_SECTION, + OB_TYPE_KEY, + OB_TYPE_PORT, + OB_TYPE_WAITABLE_PORT, + OB_TYPE_UNKNOWN_21, + OB_TYPE_UNKNOWN_22, + OB_TYPE_UNKNOWN_23, + OB_TYPE_UNKNOWN_24, + OB_TYPE_IO_COMPLETION, + OB_TYPE_FILE + }; + + [StructLayout(LayoutKind.Sequential)] + private struct SYSTEM_HANDLE_ENTRY { + public int OwnerPid; + public byte ObjectType; + public byte HandleFlags; + public short HandleValue; + public int ObjectPointer; + public int AccessMask; + } + + [DllImport("ntdll.dll")] + internal static extern NT_STATUS NtQuerySystemInformation( + [In] SYSTEM_INFORMATION_CLASS SystemInformationClass, + [In] IntPtr SystemInformation, + [In] int SystemInformationLength, + [Out] out int ReturnLength); + + [DllImport("ntdll.dll")] + internal static extern NT_STATUS NtQueryObject( + [In] IntPtr Handle, + [In] OBJECT_INFORMATION_CLASS ObjectInformationClass, + [In] IntPtr ObjectInformation, + [In] int ObjectInformationLength, + [Out] out int ReturnLength); + + [DllImport("kernel32.dll", SetLastError = true)] + internal static extern SafeProcessHandle OpenProcess( + [In] ProcessAccessRights dwDesiredAccess, + [In, MarshalAs(UnmanagedType.Bool)] bool bInheritHandle, + [In] int dwProcessId); + + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + internal static extern bool DuplicateHandle( + [In] IntPtr hSourceProcessHandle, + [In] IntPtr hSourceHandle, + [In] IntPtr hTargetProcessHandle, + [Out] out SafeObjectHandle lpTargetHandle, + [In] int dwDesiredAccess, + [In, MarshalAs(UnmanagedType.Bool)] bool bInheritHandle, + [In] DuplicateHandleOptions dwOptions); + + [DllImport("kernel32.dll")] + internal static extern IntPtr GetCurrentProcess(); + + [DllImport("kernel32.dll", SetLastError = true)] + internal static extern int GetProcessId( + [In] IntPtr Process); + + [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + internal static extern bool CloseHandle( + [In] IntPtr hObject); + + [DllImport("kernel32.dll", SetLastError = true)] + internal static extern int QueryDosDevice( + [In] string lpDeviceName, + [Out] StringBuilder lpTargetPath, + [In] int ucchMax); + + [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)] + internal sealed class SafeObjectHandle : SafeHandleZeroOrMinusOneIsInvalid { + private SafeObjectHandle() : base(true) { } + + internal SafeObjectHandle(IntPtr preexistingHandle, bool ownsHandle) : base(ownsHandle) { + base.SetHandle(preexistingHandle); + } + + protected override bool ReleaseHandle() { + return CloseHandle(base.handle); + } + } + + [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)] + internal sealed class SafeProcessHandle : SafeHandleZeroOrMinusOneIsInvalid { + private SafeProcessHandle() + : base(true) { } + + internal SafeProcessHandle(IntPtr preexistingHandle, bool ownsHandle) + : base(ownsHandle) { + base.SetHandle(preexistingHandle); + } + + protected override bool ReleaseHandle() { + return CloseHandle(base.handle); + } + } + + private sealed class OpenFiles : IEnumerable { + private readonly int processId; + + internal OpenFiles(int processId) { + this.processId = processId; + } + + public IEnumerator GetEnumerator() { + NT_STATUS ret; + int length = 0x10000; + // Loop, probing for required memory. + + do { + IntPtr ptr = IntPtr.Zero; + RuntimeHelpers.PrepareConstrainedRegions(); + + try { + RuntimeHelpers.PrepareConstrainedRegions(); + + try { } finally { + // CER guarantees that the address of the allocated + // memory is actually assigned to ptr if an + // asynchronous exception occurs. + ptr = Marshal.AllocHGlobal(length); + } + + ret = NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS.SystemHandleInformation, ptr, length, out int returnLength); + + if (ret == NT_STATUS.STATUS_INFO_LENGTH_MISMATCH) { + // Round required memory up to the nearest 64KB boundary. + length = (returnLength + 0xffff) & ~0xffff; + } else if (ret == NT_STATUS.STATUS_SUCCESS) { + int handleCount = Marshal.ReadInt32(ptr); + int offset = sizeof(int); + int size = Marshal.SizeOf(typeof(SYSTEM_HANDLE_ENTRY)); + + for (int i = 0; i < handleCount; i++) { + SYSTEM_HANDLE_ENTRY handleEntry = (SYSTEM_HANDLE_ENTRY) Marshal.PtrToStructure((IntPtr)((int)ptr + offset), typeof(SYSTEM_HANDLE_ENTRY)); + + if (handleEntry.OwnerPid == processId) { + IntPtr handle = (IntPtr) handleEntry.HandleValue; + SystemHandleType handleType; + + if (GetHandleType(handle, handleEntry.OwnerPid, out handleType) && handleType == SystemHandleType.OB_TYPE_FILE) { + if (GetFileNameFromHandle(handle, handleEntry.OwnerPid, out string devicePath)) { + if (ConvertDevicePathToDosPath(devicePath, out string dosPath)) { + if (File.Exists(dosPath)) { + yield return dosPath; + } else if (Directory.Exists(dosPath)) { + yield return dosPath; + } + } + } + } + } + + offset += size; + } + } + } finally { + // CER guarantees that the allocated memory is freed, + // if an asynchronous exception occurs. + Marshal.FreeHGlobal(ptr); + } + } while (ret == NT_STATUS.STATUS_INFO_LENGTH_MISMATCH); + } + + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { + return GetEnumerator(); + } + } + + private class FileNameFromHandleState : IDisposable { + private readonly ManualResetEvent _mr; + public IntPtr Handle { get; } + public string FileName { get; set; } + public bool RetValue { get; set; } + + public FileNameFromHandleState(IntPtr handle) { + _mr = new ManualResetEvent(false); + this.Handle = handle; + } + + public bool WaitOne(int wait) { + return _mr.WaitOne(wait, false); + } + + public void Set() { + try { + _mr.Set(); + } catch { } + } + + public void Dispose() { + if (_mr != null) { + _mr.Close(); + } + } + } + + private static bool GetFileNameFromHandle(IntPtr handle, out string fileName) { + IntPtr ptr = IntPtr.Zero; + RuntimeHelpers.PrepareConstrainedRegions(); + + try { + int length = 0x200; // 512 bytes + RuntimeHelpers.PrepareConstrainedRegions(); + + try { } finally { + // CER guarantees the assignment of the allocated + // memory address to ptr, if an ansynchronous exception + // occurs. + ptr = Marshal.AllocHGlobal(length); + } + + NT_STATUS ret = NtQueryObject(handle, OBJECT_INFORMATION_CLASS.ObjectNameInformation, ptr, length, out length); + + if (ret == NT_STATUS.STATUS_BUFFER_OVERFLOW) { + RuntimeHelpers.PrepareConstrainedRegions(); + try { } finally { + // CER guarantees that the previous allocation is freed, + // and that the newly allocated memory address is + // assigned to ptr if an asynchronous exception occurs. + Marshal.FreeHGlobal(ptr); + ptr = Marshal.AllocHGlobal(length); + } + ret = NtQueryObject(handle, OBJECT_INFORMATION_CLASS.ObjectNameInformation, ptr, length, out length); + } + if (ret == NT_STATUS.STATUS_SUCCESS) { + fileName = Marshal.PtrToStringUni((IntPtr)((int)ptr + 8), (length - 9) / 2); + return fileName.Length != 0; + } + } finally { + // CER guarantees that the allocated memory is freed, + // if an asynchronous exception occurs. + Marshal.FreeHGlobal(ptr); + } + + fileName = string.Empty; + return false; + } + private static void GetFileNameFromHandle(object state) { + FileNameFromHandleState s = (FileNameFromHandleState)state; + + s.RetValue = GetFileNameFromHandle(s.Handle, out string fileName); + s.FileName = fileName; + s.Set(); + } + + private static bool GetFileNameFromHandle(IntPtr handle, out string fileName, int wait) { + using (FileNameFromHandleState f = new FileNameFromHandleState(handle)) { + ThreadPool.QueueUserWorkItem(new WaitCallback(GetFileNameFromHandle), f); + + if (f.WaitOne(wait)) { + fileName = f.FileName; + return f.RetValue; + } else { + fileName = string.Empty; + return false; + } + } + } + + private static bool GetFileNameFromHandle(IntPtr handle, int processId, out string fileName) { + IntPtr currentProcess = GetCurrentProcess(); + bool remote = processId != GetProcessId(currentProcess); + SafeProcessHandle processHandle = null; + SafeObjectHandle objectHandle = null; + + try { + if (remote) { + processHandle = OpenProcess(ProcessAccessRights.PROCESS_DUP_HANDLE, true, processId); + if (DuplicateHandle(processHandle.DangerousGetHandle(), handle, currentProcess, out objectHandle, 0, false, DuplicateHandleOptions.DUPLICATE_SAME_ACCESS)) { + handle = objectHandle.DangerousGetHandle(); + } + } + + return GetFileNameFromHandle(handle, out fileName, 200); + } finally { + if (remote) { + if (processHandle != null) { + processHandle.Close(); + } + + if (objectHandle != null) { + objectHandle.Close(); + } + } + } + } + + private static string GetHandleTypeToken(IntPtr handle) { + NtQueryObject(handle, OBJECT_INFORMATION_CLASS.ObjectTypeInformation, IntPtr.Zero, 0, out int length); + IntPtr ptr = IntPtr.Zero; + RuntimeHelpers.PrepareConstrainedRegions(); + + try { + RuntimeHelpers.PrepareConstrainedRegions(); + + try { } finally { + if (length >= 0) { + ptr = Marshal.AllocHGlobal(length); + } + } + + if (NtQueryObject(handle, OBJECT_INFORMATION_CLASS.ObjectTypeInformation, ptr, length, out length) == NT_STATUS.STATUS_SUCCESS) { + return Marshal.PtrToStringUni((IntPtr)((int)ptr + 0x60)); + } + + } finally { + Marshal.FreeHGlobal(ptr); + } + + return string.Empty; + } + + private static string GetHandleTypeToken(IntPtr handle, int processId) { + IntPtr currentProcess = GetCurrentProcess(); + bool remote = processId != GetProcessId(currentProcess); + SafeProcessHandle processHandle = null; + SafeObjectHandle objectHandle = null; + + try { + if (remote) { + processHandle = OpenProcess(ProcessAccessRights.PROCESS_DUP_HANDLE, true, processId); + if (DuplicateHandle(processHandle.DangerousGetHandle(), handle, currentProcess, out objectHandle, 0, false, DuplicateHandleOptions.DUPLICATE_SAME_ACCESS)) { + handle = objectHandle.DangerousGetHandle(); + } + } + + return GetHandleTypeToken(handle); + } finally { + if (remote) { + if (processHandle != null) { + processHandle.Close(); + } + + if (objectHandle != null) { + objectHandle.Close(); + } + } + } + } + + private static bool GetHandleTypeFromToken(string token, out SystemHandleType handleType) { + for (int i = 1; i < handleTypeTokenCount; i++) { + if (handleTypeTokens[i] == token) { + handleType = (SystemHandleType) i; + return true; + } + } + + handleType = SystemHandleType.OB_TYPE_UNKNOWN; + return false; + } + + private static bool GetHandleType(IntPtr handle, int processId, out SystemHandleType handleType) { + string token = GetHandleTypeToken(handle, processId); + return GetHandleTypeFromToken(token, out handleType); + } + + private static bool ConvertDevicePathToDosPath(string devicePath, out string dosPath) { + EnsureDeviceMap(); + int i = devicePath.Length; + + while (i > 0 && (i = devicePath.LastIndexOf('\\', i - 1)) != -1) { + if (deviceMap.TryGetValue(devicePath.Substring(0, i), out string drive)) { + dosPath = string.Concat(drive, devicePath.Substring(i)); + return dosPath.Length != 0; + } + } + + dosPath = string.Empty; + return false; + } + + private static void EnsureDeviceMap() { + if (deviceMap == null) { + Dictionary localDeviceMap = BuildDeviceMap(); + Interlocked.CompareExchange(ref deviceMap, localDeviceMap, null); + } + } + + private static Dictionary BuildDeviceMap() { + string[] logicalDrives = Environment.GetLogicalDrives(); + Dictionary localDeviceMap = new Dictionary(logicalDrives.Length); + StringBuilder lpTargetPath = new StringBuilder(MAX_PATH); + + foreach (string drive in logicalDrives) { + string lpDeviceName = drive.Substring(0, 2); + QueryDosDevice(lpDeviceName, lpTargetPath, MAX_PATH); + localDeviceMap.Add(NormalizeDeviceName(lpTargetPath.ToString()), lpDeviceName); + } + + localDeviceMap.Add(networkDevicePrefix.Substring(0, networkDevicePrefix.Length - 1), "\\"); + return localDeviceMap; + } + + private static string NormalizeDeviceName(string deviceName) { + if (string.Compare(deviceName, 0, networkDevicePrefix, 0, networkDevicePrefix.Length, StringComparison.InvariantCulture) == 0) { + string shareName = deviceName.Substring(deviceName.IndexOf('\\', networkDevicePrefix.Length) + 1); + return string.Concat(networkDevicePrefix, shareName); + } + + return deviceName; + } + + /// + /// Gets the open files enumerator. + /// + /// The process id. + /// + public static IEnumerable GetOpenFilesEnumerator(int processId) { + return new OpenFiles(processId); + } + + public static List GetProcessesUsingFile(string fName) { + List result = new List(); + foreach (Process p in Process.GetProcesses()) { + try { + if (GetOpenFilesEnumerator(p.Id).Contains(fName)) { + result.Add(p); + } + } catch { } // Some processes will fail. + } + return result; + } + + public static void KillProcessesUsingFile(string fName) { + foreach (Process process in GetProcessesUsingFile(fName).OrderBy(o => o.StartTime)) { + try { + process.Kill(); + process.WaitForExit(); + } catch { + // Oh well... + } + } + } + } +} \ No newline at end of file diff --git a/CleanFlashCommon/IProgressForm.cs b/CleanFlashCommon/IProgressForm.cs new file mode 100644 index 0000000..a7e1a70 --- /dev/null +++ b/CleanFlashCommon/IProgressForm.cs @@ -0,0 +1,7 @@ +namespace CleanFlashCommon { + public interface IProgressForm { + + void UpdateProgressLabel(string text, bool tick); + void TickProgress(); + } +} diff --git a/CleanFlashCommon/ImageCheckBox.Designer.cs b/CleanFlashCommon/ImageCheckBox.Designer.cs new file mode 100644 index 0000000..0282958 --- /dev/null +++ b/CleanFlashCommon/ImageCheckBox.Designer.cs @@ -0,0 +1,32 @@ + +namespace CleanFlashCommon { + public partial class ImageCheckBox { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) { + if (disposing && (components != null)) { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() { + components = new System.ComponentModel.Container(); + } + + #endregion + } +} diff --git a/CleanFlashCommon/ImageCheckBox.cs b/CleanFlashCommon/ImageCheckBox.cs new file mode 100644 index 0000000..b603665 --- /dev/null +++ b/CleanFlashCommon/ImageCheckBox.cs @@ -0,0 +1,11 @@ +using System; +using System.Windows.Forms; + +namespace CleanFlashCommon { + public partial class ImageCheckBox : CheckBox { + protected override void OnCheckedChanged(EventArgs e) { + ImageIndex = Checked ? 1 : 0; + base.OnCheckedChanged(e); + } + } +} diff --git a/CleanFlashCommon/InstallException.cs b/CleanFlashCommon/InstallException.cs new file mode 100644 index 0000000..9be069e --- /dev/null +++ b/CleanFlashCommon/InstallException.cs @@ -0,0 +1,10 @@ +using System; + +namespace CleanFlashCommon { + public class InstallException : Exception { + + public InstallException(string message) : base(message) { + + } + } +} diff --git a/CleanFlashCommon/ProcessRunner.cs b/CleanFlashCommon/ProcessRunner.cs new file mode 100644 index 0000000..80a55c8 --- /dev/null +++ b/CleanFlashCommon/ProcessRunner.cs @@ -0,0 +1,46 @@ +using System.Diagnostics; +using System.Text; + +namespace CleanFlashCommon { + public class ProcessRunner { + + public static ExitedProcess RunProcess(ProcessStartInfo startInfo) { + startInfo.RedirectStandardOutput = true; + startInfo.RedirectStandardError = true; + + StringBuilder outputBuilder = new StringBuilder(); + Process process = new Process { + StartInfo = startInfo + }; + DataReceivedEventHandler outputHandler = new DataReceivedEventHandler( + delegate (object sender, DataReceivedEventArgs e) { + outputBuilder.AppendLine(e.Data); + } + ); + + process.OutputDataReceived += outputHandler; + process.ErrorDataReceived += outputHandler; + + process.Start(); + process.BeginOutputReadLine(); + process.BeginErrorReadLine(); + process.WaitForExit(); + process.CancelOutputRead(); + process.CancelErrorRead(); + + return new ExitedProcess { + ExitCode = process.ExitCode, + Output = outputBuilder.ToString().Trim() + }; + } + + public static Process RunUnmanagedProcess(ProcessStartInfo startInfo) { + Process process = new Process { + StartInfo = startInfo + }; + process.Start(); + process.WaitForExit(); + return process; + } + } +} diff --git a/CleanFlashCommon/Properties/AssemblyInfo.cs b/CleanFlashCommon/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..78ce7c2 --- /dev/null +++ b/CleanFlashCommon/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CleanFlashCommon")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CleanFlashCommon")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d00f629b-455a-42de-b2fa-a3759a3095ae")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CleanFlashCommon/Properties/Resources.Designer.cs b/CleanFlashCommon/Properties/Resources.Designer.cs new file mode 100644 index 0000000..f2c2680 --- /dev/null +++ b/CleanFlashCommon/Properties/Resources.Designer.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CleanFlashCommon.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CleanFlashCommon.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION] + ///"FlashHelperService.exe"=- + /// + ///[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] + ///"${SYSTEM_64_PATH}\\FlashPlayerCPLApp.cpl"=- + /// + ///[-HKEY_CURRENT_USER\Software\FlashCenter] + ///[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\FlashCenter.exe] + ///[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninsta [rest of string was truncated]";. + /// + internal static string uninstallRegistry { + get { + return ResourceManager.GetString("uninstallRegistry", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION] + ///"FlashHelperService.exe"=- + /// + ///[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] + ///"${SYSTEM_32_PATH}\\FlashPlayerCPLApp.cpl"=- + /// + ///[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\CLSID\{B019E3BF-E7E5-453C-A2E4-D2C18CA0866F}] + ///[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\CLSID\{D27CDB6E-AE6D-11cf-96B8- [rest of string was truncated]";. + /// + internal static string uninstallRegistry64 { + get { + return ResourceManager.GetString("uninstallRegistry64", resourceCulture); + } + } + } +} diff --git a/CleanFlashCommon/Properties/Resources.resx b/CleanFlashCommon/Properties/Resources.resx new file mode 100644 index 0000000..cf7c4fa --- /dev/null +++ b/CleanFlashCommon/Properties/Resources.resx @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION] +"FlashHelperService.exe"=- + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] +"${SYSTEM_64_PATH}\\FlashPlayerCPLApp.cpl"=- + +[-HKEY_CURRENT_USER\Software\FlashCenter] +[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\FlashCenter.exe] +[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\FlashCenter] +[-HKEY_LOCAL_MACHINE\Software\Classes\AppID\{119DA84B-E3DB-4D47-A8DD-7FF6D5804689}] +[-HKEY_LOCAL_MACHINE\Software\Classes\AppID\{B9020634-CE8F-4F09-9FBC-D108A73A4676}] +[-HKEY_LOCAL_MACHINE\Software\Classes\TypeLib\{37EF68ED-16D3-4191-86BF-AB731D75AAB7}] +[-HKEY_LOCAL_MACHINE\System\ControlSet001\services\Flash Helper Service] +[-HKEY_LOCAL_MACHINE\System\ControlSet001\services\FlashCenterService] +[-HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\Flash Helper Service] +[-HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\FlashCenterService] + +[-HKEY_LOCAL_MACHINE\Software\Classes\MacromediaFlashPaper.MacromediaFlashPaper] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{FAF199D2-BFA7-4394-A4DE-044A08E59B32}] + +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerUpdateService.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashUtil32_${VERSION_PATH}_ActiveX.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashUtil64_${VERSION_PATH}_ActiveX.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashUtil32_${VERSION_PATH}_Plugin.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashUtil64_${VERSION_PATH}_Plugin.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerPlugin_${VERSION_PATH}.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashUtil32_${VERSION_PATH}_pepper.exe] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashUtil64_${VERSION_PATH}_pepper.exe] + +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\Low Rights\ElevationPolicy\{FAF199D2-BFA7-4394-A4DE-044A08E59B32}] +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX] +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player NPAPI] +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player PPAPI] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Clean Flash Player] + +[-HKEY_LOCAL_MACHINE\Software\Classes\.mfp] +[-HKEY_LOCAL_MACHINE\Software\Classes\.sol] +[-HKEY_LOCAL_MACHINE\Software\Classes\.sor] +[-HKEY_LOCAL_MACHINE\Software\Classes\.spl] +[-HKEY_LOCAL_MACHINE\Software\Classes\.swf] +[-HKEY_LOCAL_MACHINE\Software\Classes\AppID\{B9020634-CE8F-4F09-9FBC-D108A73A4676}] +[-HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{B019E3BF-E7E5-453C-A2E4-D2C18CA0866F}] +[-HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\FlashFactory.FlashFactory] +[-HKEY_LOCAL_MACHINE\Software\Classes\FlashFactory.FlashFactory.1] +[-HKEY_LOCAL_MACHINE\Software\Classes\Interface\{299817DA-1FAC-4CE2-8F48-A108237013BD}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Interface\{307F64C0-621D-4D56-BBC6-91EFC13CE40D}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Interface\{57A0E747-3863-4D20-A811-950C84F1DB9B}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Interface\{86230738-D762-4C50-A2DE-A753E5B1686F}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Interface\{D27CDB6C-AE6D-11CF-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Interface\{D27CDB6D-AE6D-11CF-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\application/futuresplash] +[-HKEY_LOCAL_MACHINE\Software\Classes\MIME\Database\Content Type\application/x-shockwave-flash] + +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.1] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.2] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.3] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.4] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.5] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.6] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.7] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.8] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.9] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.10] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.11] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.12] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.13] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.14] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.15] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.16] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.17] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.18] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.19] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.20] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.21] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.22] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.23] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.24] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.25] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.26] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.27] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.28] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.29] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.30] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.31] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.32] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.33] +[-HKEY_LOCAL_MACHINE\Software\Classes\ShockwaveFlash.ShockwaveFlash.34] + +[-HKEY_LOCAL_MACHINE\Software\Classes\TypeLib\{57A0E746-3863-4D20-A811-950C84F1DB9B}] +[-HKEY_LOCAL_MACHINE\Software\Classes\TypeLib\{D27CDB6B-AE6D-11CF-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\TypeLib\{FAB3E735-69C7-453B-A446-B6823C6DF1C9}] + +[-HKEY_LOCAL_MACHINE\Software\Macromedia] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB70-AE6D-11cf-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash] + +[-HKEY_LOCAL_MACHINE\Software\MozillaPlugins\@adobe.com/FlashPlayer] + +[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\miniconfig] +[-HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\miniconfig] + + + [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION] +"FlashHelperService.exe"=- + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] +"${SYSTEM_32_PATH}\\FlashPlayerCPLApp.cpl"=- + +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\CLSID\{B019E3BF-E7E5-453C-A2E4-D2C18CA0866F}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\Interface\{299817DA-1FAC-4CE2-8F48-A108237013BD}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\Interface\{307F64C0-621D-4D56-BBC6-91EFC13CE40D}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\Interface\{57A0E747-3863-4D20-A811-950C84F1DB9B}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\Interface\{86230738-D762-4C50-A2DE-A753E5B1686F}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\Interface\{D27CDB6C-AE6D-11CF-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\Interface\{D27CDB6D-AE6D-11CF-96B8-444553540000}] + +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia] +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB70-AE6D-11cf-96B8-444553540000}] +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash] + +[-HKEY_LOCAL_MACHINE\Software\Wow6432Node\MozillaPlugins\@adobe.com/FlashPlayer] + + \ No newline at end of file diff --git a/CleanFlashCommon/RedirectionManager.cs b/CleanFlashCommon/RedirectionManager.cs new file mode 100644 index 0000000..eca017d --- /dev/null +++ b/CleanFlashCommon/RedirectionManager.cs @@ -0,0 +1,33 @@ +using System; +using System.Runtime.InteropServices; + +namespace CleanFlashCommon { + public class RedirectionManager { + + [DllImport("kernel32.dll", SetLastError = true)] + static extern bool Wow64DisableWow64FsRedirection(ref IntPtr ptr); + + [DllImport("kernel32.dll", SetLastError = true)] + static extern bool Wow64RevertWow64FsRedirection(IntPtr ptr); + + public static IntPtr DisableRedirection() { + IntPtr redirectionPtr = (IntPtr)(-1); + + try { + Wow64DisableWow64FsRedirection(ref redirectionPtr); + } catch { + // No Wow64 redirection possible. + } + + return redirectionPtr; + } + + public static void EnableRedirection(IntPtr redirectionPtr) { + try { + Wow64RevertWow64FsRedirection(redirectionPtr); + } catch { + // No Wow64 redirection possible. + } + } + } +} diff --git a/CleanFlashCommon/RegistryManager.cs b/CleanFlashCommon/RegistryManager.cs new file mode 100644 index 0000000..a2d3795 --- /dev/null +++ b/CleanFlashCommon/RegistryManager.cs @@ -0,0 +1,40 @@ +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; + +namespace CleanFlashCommon { + public class RegistryManager { + + public static void ApplyRegistry(string registryContents) { + registryContents = "Windows Registry Editor Version 5.00\n\n" + SystemInfo.FillString(registryContents); + string filename = Path.GetTempFileName(); + + File.WriteAllText(filename, registryContents); + + Directory.SetCurrentDirectory(Path.GetDirectoryName(filename)); + + ExitedProcess process = ProcessRunner.RunProcess( + new ProcessStartInfo { + FileName = "reg.exe", + Arguments = "import " + Path.GetFileName(filename), + UseShellExecute = false, + CreateNoWindow = true + } + ); + + File.Delete(filename); + + if (!process.IsSuccessful) { + throw new InstallException(string.Format("Failed to apply changes to registry: error code {0}\n\n{1}", process.ExitCode, process.Output)); + } + } + + public static void ApplyRegistry(List registryContents) { + ApplyRegistry(string.Join("\n\n", registryContents)); + } + + public static void ApplyRegistry(params string[] registryContents) { + ApplyRegistry(string.Join("\n\n", registryContents)); + } + } +} diff --git a/CleanFlashCommon/SmoothProgressBar.cs b/CleanFlashCommon/SmoothProgressBar.cs new file mode 100644 index 0000000..61ad23a --- /dev/null +++ b/CleanFlashCommon/SmoothProgressBar.cs @@ -0,0 +1,164 @@ +using System; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Windows.Forms; + +namespace CleanFlashCommon { + public class SmoothProgressBar : UserControl { + int min = 0; + int max = 100; + int val = 0; + Color Color1 = Color.Black; + Color Color2 = Color.White; + + protected override void OnResize(EventArgs e) { + Invalidate(); + } + + protected override void OnPaint(PaintEventArgs e) { + using (Graphics graphics = e.Graphics) { + using (Brush brush = new LinearGradientBrush(ClientRectangle, Color1, Color2, 0.0F)) { + float percent = (val - min) / (float)(max - min); + Rectangle rect = ClientRectangle; + + // Calculate area for drawing the progress. + rect.Width = (int)(rect.Width * percent); + + // Draw the progress meter. + graphics.FillRectangle(brush, rect); + } + + // Draw a three-dimensional border around the control. + Draw3DBorder(graphics); + } + } + + public int Minimum { + get { + return min; + } + + set { + min = Math.Max(0, Math.Min(max, value)); + + if (val < min) { + val = min; + } + + Invalidate(); + } + } + + public int Maximum { + get { + return max; + } + + set { + if (value < min) { + min = value; + } + + max = value; + + if (val > max) { + val = max; + } + + Invalidate(); + } + } + + public int Value { + get { + return val; + } + + set { + int oldValue = val; + + // Make sure that the value does not stray outside the valid range. + if (value < min) { + val = min; + } else if (value > max) { + val = max; + } else { + val = value; + } + + // Invalidate only the changed area. + float percent; + + Rectangle newValueRect = ClientRectangle; + Rectangle oldValueRect = ClientRectangle; + + // Use a new value to calculate the rectangle for progress. + percent = (val - min) / (float)(max - min); + newValueRect.Width = (int)(newValueRect.Width * percent); + + // Use an old value to calculate the rectangle for progress. + percent = (oldValue - min) / (float)(max - min); + oldValueRect.Width = (int)(oldValueRect.Width * percent); + + Rectangle updateRect = new Rectangle(); + + // Find only the part of the screen that must be updated. + if (newValueRect.Width > oldValueRect.Width) { + updateRect.X = oldValueRect.Size.Width; + updateRect.Width = newValueRect.Width - oldValueRect.Width; + } else { + updateRect.X = newValueRect.Size.Width; + updateRect.Width = oldValueRect.Width - newValueRect.Width; + } + + updateRect.Height = Height; + + // Invalidate the intersection region only. + Invalidate(updateRect); + } + } + + public Color ProgressBarColor1 { + get { + return Color1; + } + + set { + Color1 = value; + + // Invalidate the control to get a repaint. + Invalidate(); + } + } + + public Color ProgressBarColor2 { + get { + return Color2; + } + + set { + Color2 = value; + + // Invalidate the control to get a repaint. + Invalidate(); + } + } + + private void Draw3DBorder(Graphics g) { + int PenWidth = (int)Pens.White.Width; + + g.DrawLine(Pens.DarkGray, + new Point(ClientRectangle.Left, ClientRectangle.Top), + new Point(ClientRectangle.Width - PenWidth, ClientRectangle.Top)); + g.DrawLine(Pens.DarkGray, + new Point(ClientRectangle.Left, ClientRectangle.Top), + new Point(ClientRectangle.Left, ClientRectangle.Height - PenWidth)); + g.DrawLine(Pens.White, + new Point(ClientRectangle.Left, ClientRectangle.Height - PenWidth), + new Point(ClientRectangle.Width - PenWidth, ClientRectangle.Height - PenWidth)); + g.DrawLine(Pens.White, + new Point(ClientRectangle.Width - PenWidth, ClientRectangle.Top), + new Point(ClientRectangle.Width - PenWidth, ClientRectangle.Height - PenWidth)); + } + } +} diff --git a/CleanFlashCommon/SystemInfo.cs b/CleanFlashCommon/SystemInfo.cs new file mode 100644 index 0000000..9f56265 --- /dev/null +++ b/CleanFlashCommon/SystemInfo.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.IO; + +namespace CleanFlashCommon { + public class SystemInfo { + + private static string system32Path = Environment.GetFolderPath(Environment.SpecialFolder.SystemX86); + private static string system64Path = Environment.GetFolderPath(Environment.SpecialFolder.System); + private static string macromed32Path = Path.Combine(system32Path, "Macromed"); + private static string macromed64Path = Path.Combine(system64Path, "Macromed"); + private static string flash32Path = Path.Combine(macromed32Path, "Flash"); + private static string flash64Path = Path.Combine(macromed64Path, "Flash"); + private static string version = UpdateChecker.GetFlashVersion(); + private static string versionPath = version.Replace(".", "_"); + private static string versionComma = version.Replace(".", ","); + private static Dictionary replacementStrings = new Dictionary() { + { "${SYSTEM_32_PATH}", system32Path.Replace(@"\", @"\\") }, + { "${SYSTEM_64_PATH}", system64Path.Replace(@"\", @"\\") }, + { "${FLASH_32_PATH}", flash32Path.Replace(@"\", @"\\") }, + { "${FLASH_64_PATH}", flash64Path.Replace(@"\", @"\\") }, + { "${VERSION}", version }, + { "${VERSION_PATH}", versionPath }, + { "${VERSION_COMMA}", versionComma } + }; + + public static string GetSystem32Path() { + return system32Path; + } + + public static string GetSystem64Path() { + return system64Path; + } + public static string[] GetSystemPaths() { + if (Environment.Is64BitOperatingSystem) { + return new string[] { system32Path, system64Path }; + } else { + return new string[] { system32Path }; + } + } + + public static string GetMacromed32Path() { + return macromed32Path; + } + + public static string GetMacromed64Path() { + return macromed64Path; + } + + public static string[] GetMacromedPaths() { + if (Environment.Is64BitOperatingSystem) { + return new string[] { macromed32Path, macromed64Path }; + } else { + return new string[] { macromed32Path }; + } + } + + public static string GetFlash32Path() { + return flash32Path; + } + + public static string GetFlash64Path() { + return flash64Path; + } + + public static string GetVersionPath() { + return versionPath; + } + + public static Dictionary GetReplacementStrings() { + return replacementStrings; + } + + public static string FillString(string str) { + // Some registry values require special strings to be filled out. + foreach (KeyValuePair pair in replacementStrings) { + str = str.Replace(pair.Key, pair.Value); + } + + return str; + } + } +} diff --git a/CleanFlashCommon/Uninstaller.cs b/CleanFlashCommon/Uninstaller.cs new file mode 100644 index 0000000..61a0d4f --- /dev/null +++ b/CleanFlashCommon/Uninstaller.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; + +namespace CleanFlashCommon { + public class Uninstaller { + private static string[] PROCESSES_TO_KILL = new string[] { + // Flash Center-related processes + "fcbrowser", "fcbrowsermanager", "fclogin", "fctips", "flashcenter", + "flashcenterservice", "flashcenteruninst", "flashplay", "update", "wow_helper", + "dummy_cmd", "flashhelperservice", + // Flash Player-related processes + "flashplayerapp", + // Browsers that might be using Flash Player right now + "opera", "iexplore", "chrome", "chromium", "brave", "vivaldi", "basilisk", "msedge", + "seamonkey", "palemoon", "plugin-container" + }; + + public static void UninstallRegistry() { + if (Environment.Is64BitOperatingSystem) { + RegistryManager.ApplyRegistry(Properties.Resources.uninstallRegistry, Properties.Resources.uninstallRegistry64); + } else { + RegistryManager.ApplyRegistry(Properties.Resources.uninstallRegistry); + } + } + + public static void DeleteTask(string task) { + ProcessRunner.RunUnmanagedProcess( + new ProcessStartInfo { + FileName = "schtasks.exe", + Arguments = "/delete /tn \"" + task + "\" /f", + UseShellExecute = false, + CreateNoWindow = true + } + ); + } + + public static void StopService(string service) { + ProcessRunner.RunUnmanagedProcess( + new ProcessStartInfo { + FileName = "net.exe", + Arguments = "stop \"" + service + "\"", + UseShellExecute = false, + CreateNoWindow = true + } + ); + } + + public static void DeleteService(string service) { + // First, stop the service. + StopService(service); + + ProcessRunner.RunUnmanagedProcess( + new ProcessStartInfo { + FileName = "sc.exe", + Arguments = "delete \"" + service + "\"", + UseShellExecute = false, + CreateNoWindow = true + } + ); + } + + public static void DeleteFlashCenter() { + // Remove Flash Center from Program Files + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "FlashCenter")); + + if (Environment.Is64BitOperatingSystem) { + // Remove Flash Center from Program Files (x86) + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "FlashCenter")); + } + + // Remove start menu shortcuts + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Microsoft", "Windows", "Start Menu", "Programs", "Flash Center")); + + // Remove Flash Center cache and user data + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Flash_Center")); + + // Remove shared start menu shortcuts + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu), "Programs", "Flash Center")); + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs", "Flash Center")); + + // Remove Desktop shortcut + FileUtil.DeleteFile(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory), "Flash Center.lnk")); + + // Remove spyware dropped by Flash Center in the temporary folder + string tempFolder = Path.GetTempPath(); + + foreach (string dir in Directory.GetDirectories(tempFolder)) { + string parentName = Path.GetFileName(dir); + + if (parentName.Length == 11 && parentName.EndsWith(".tmp")) { + FileUtil.RecursiveDelete(dir); + } + } + + // Remove Quick Launch shortcuts from Internet Explorer + FileUtil.RecursiveDelete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microsoft", "Internet Explorer", "Quick Launch"), "Flash Center.lnk"); + } + + public static void DeleteFlashPlayer() { + // Remove Macromedia folder from System32 and SysWOW64 + foreach (string dir in SystemInfo.GetMacromedPaths()) { + FileUtil.RecursiveDelete(dir); + } + + // Remove Flash Player control panel applications + foreach (string systemDir in SystemInfo.GetSystemPaths()) { + FileUtil.DeleteFile(Path.Combine(systemDir, "FlashPlayerApp.exe")); + FileUtil.DeleteFile(Path.Combine(systemDir, "FlashPlayerCPLApp.cpl")); + } + } + + public static void StopProcesses() { + // Stop all processes that might interfere with the install process + List processes = Process.GetProcesses() + .Where(process => PROCESSES_TO_KILL.Contains(process.ProcessName.ToLower())) + .OrderBy(o => o.StartTime) + .ToList(); + + foreach (Process process in processes) { + if (process.HasExited) { + // This process has already exited, no point to kill it + continue; + } + + try { + process.Kill(); + process.WaitForExit(); + } catch { + // Could not kill process... + } + } + } + + public static void Uninstall(IProgressForm form) { + // Uninstallation of Flash consists of the following steps: + // 1. Delete all auto-updater tasks. + // 2. Delete all Flash Player services. + // 3. Delete all Flash Center services. + // 4. Exit all browsers and other processes that may interfere with uninstallation. + // 5. Remove all Flash Player references from the registry. + // 6. Remove Flash Center files from the file system. + // 7. Remove Flash Player files from the file system. + + form.UpdateProgressLabel("Stopping Flash auto-updater task...", true); + DeleteTask("Adobe Flash Player Updater"); + form.UpdateProgressLabel("Stopping Flash auto-updater service...", true); + DeleteService("AdobeFlashPlayerUpdateSvc"); + form.UpdateProgressLabel("Stopping Flash Center services...", true); + DeleteService("Flash Helper Service"); + form.TickProgress(); + DeleteService("FlashCenterService"); + + form.UpdateProgressLabel("Exiting all browsers...", true); + StopProcesses(); + form.UpdateProgressLabel("Cleaning up registry...", true); + UninstallRegistry(); + form.UpdateProgressLabel("Removing Flash Center...", true); + DeleteFlashCenter(); + form.UpdateProgressLabel("Removing Flash Player...", true); + DeleteFlashPlayer(); + } + } +} diff --git a/CleanFlashCommon/UpdateChecker.cs b/CleanFlashCommon/UpdateChecker.cs new file mode 100644 index 0000000..f477f4c --- /dev/null +++ b/CleanFlashCommon/UpdateChecker.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using System.Net; +using System.Runtime.Serialization.Json; +using System.Xml; +using System.Xml.Linq; + +namespace CleanFlashCommon { + public class Version { + private string name; + private string version; + private string url; + + public Version(string name, string version, string url) { + this.name = name; + this.version = version; + this.url = url; + } + + public string GetName() { + return name; + } + + public string GetVersion() { + return version; + } + + public string GetUrl() { + return url; + } + } + + public class UpdateChecker { + private static readonly string FLASH_VERSION = "34.0.0.155"; + private static readonly string VERSION = "v34.0.0.155"; + private static readonly string AUTHOR = "cleanflash"; + private static readonly string REPO = "installer"; + private static readonly string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36"; + + public static string GetAPILink() { + return "https://api.github.com/repos/" + AUTHOR + "/" + REPO + "/releases/latest"; + } + + public static string GetFlashVersion() { + return FLASH_VERSION; + } + + public static string GetCurrentVersion() { + return VERSION; + } + + private static Version GetLatestVersionUnsafe() { + using (WebClient client = new WebClient()) { + client.Headers.Add("user-agent", USER_AGENT); + + string release = client.DownloadString(GetAPILink()); + XmlDictionaryReader jsonReader = JsonReaderWriterFactory.CreateJsonReader(Encoding.UTF8.GetBytes(release), new XmlDictionaryReaderQuotas()); + XElement root = XElement.Load(jsonReader); + + string name = root.Descendants("name").FirstOrDefault().Value; + string tag = root.Descendants("tag_name").FirstOrDefault().Value; + string url = root.Descendants("html_url").FirstOrDefault().Value; + + if (!url.StartsWith("https://")) { + // This is a suspicious URL... We shouldn't trust it. + return null; + } + + return new Version(name, tag, url); + } + } + + public static Version GetLatestVersion() { + try { + return GetLatestVersionUnsafe(); + } catch (Exception e) { + Console.WriteLine(e); + return null; + } + } + } +} diff --git a/CleanFlashCommon/checkboxOff.png b/CleanFlashCommon/checkboxOff.png new file mode 100644 index 0000000000000000000000000000000000000000..5ab9f0a04889d315b62568441f4f0a0f7382b733 GIT binary patch literal 257 zcmeAS@N?(olHy`uVBq!ia0vp^{2jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc!D*f@jv*Ssz5R}S%?bjpl9znf2P|%1aq)A3 z$+=}4U%$&dnEz~fj?C%k13aJqG}#=#Xj*(@eQt93$;GepqFM#EZ0Imd`npsk$MX4h z-em;|Rf3LFgMQse;9_5PobAKc>u#GFbLDQYaGSkmdKI;Vst0O$8( AApigX literal 0 HcmV?d00001 diff --git a/CleanFlashCommon/checkboxOn.png b/CleanFlashCommon/checkboxOn.png new file mode 100644 index 0000000000000000000000000000000000000000..ad9728f25580efe209654e47d81391d413dcc50b GIT binary patch literal 448 zcmV;x0YCnUP)Px#1ZP1_K>z@;j|==^1poj5u24)=MKUup7#J8IA0N}x)7;$L(9qD0jg8XM(lIhJ ziHV7OdwagVzT4Z|LPA1>goJi>cBrVRl$4Zze}8v(cg@Ys*4EaWo12l5k=WSS!^6Wj zH#cTxW*QnA)YR0~)zvaGGH7UMVq#(-ARwNeo>o>?TU%Rla&lv1VSJkB>w| zL^CurZEbB{US1<3BY=Q_DJdywX=z$oS}iRtG&MD3WMoxURbXIXH8wU6+y>kL000Sa zNLh0L01m?d01m?e$8V@)0001+Nkl6~e;&lkMjbf$#JpPx#1ZP1_K>z@;j|==^1poj6l2A-kMF2W`~3X? zJa>1PxcB+{7f*-C)#5vAo9*)URDGuU`}|shs{Q@_PkN*&U6J_u{0BsU;OOt*=kAWF z#2{9S1wwuRJ9V_u~+d78Su&feqd@iS$YM|7dM%G(xBhJv8J>hJVf zfvL*Z;OG_13`WhOoU{Lu%Wom>+tk2Vw7@}wx_(&&DrJF;OWub=m9@` zb(Xio(%~anj?>=gPI;rS!_{4dtO!JZ=Irv<;p)82-kh|{e4M*cd!-*$izg>1BO@ar zAt5LzC?zE&D=RCt2Gyeg000SaNLh0L01m?d01m?e$8V@)000AcNklwpX}%@5@95sy)4MB$W0L0hmhS7{odO7vG(&CA-f<||AV?Bl zZQuR_(5ZqjNnGF32MeM*)d^^ z43Xx};{Gl(j{naNz> zd*&LVjp5DY^;8i`f;@t1==YZFg^$(5{Z6q_fVMv zTO?@CWP!RAcfp=Wv}dv#g-NhShE{L)BQB4tU{fTzzD=So4K_*8n#s}NZN?(Ps_6A* zEkOo6KwKT2nH+=)SVmYGt^0t&3S_`T#5GXwZD0{9U|#KF+=oVQR^UQQkVQfV)tOAz z5C0?aKh;EeCLce6h)eOUzM86Ut4|@~@eCOqls+euV|hr_c>Y4XEevG6SuYC1vkK2d#KS(;qwU@WM7Qzc#D;<9Tc0VtPJ*Eci P00000NkvXXu0mjf5Zc9p literal 0 HcmV?d00001 diff --git a/CleanFlashCommon/icon.ico b/CleanFlashCommon/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..82db3dae9e533d9a45268212a3c85f5319e6c9e3 GIT binary patch literal 111965 zcmeFa2Rv5q|37}?w#q6EqEOn|GD-+34SJ_&SS1Z5Z6e%4Q>BztiWW&o%BZZ8(bAHP zj3|3&kMqCI&AFZXzR$hT`~CU;e|kJ#U1#0roY(95e2wcmmveA9HXIiY{>O%s#MR5; zaNEE#fzY=;i-!%jP9BHT*6v@|!Qoug*l_Y-8+`oz={VdyC$J>hzb=HstqNkp34s>g zzXOlMwLD_O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?z3}}$jj`(Y z-~%Lv+KKN~=(tMr46niOJn-4Uu|+zooyGxS6VbRLY}Gp>Pv@<}nBh!(uR(WT$S-z} zINeu4_aQDgfOyX3VS#&3$;^je+Uhhw9*QM=)R?x3`%>MmBU5jrVDs)pbNLl*)_nZomC3 z<_0t`xqbP=X6Me2@p~%E@IH-|R0qjII$>Ri9+u%V3+a6~w{r8!dHvr<&hB-MypJ5( z+1IE1Rep%YPyFF;E&mAqVi`HCy|+1>^jV%;&^3|99@XD!YeU8MH`BdW8P8y6v1{5R zC2HS|cc)T!!r0S-v1rhZW6+h15z+Ai?{;m+JAOXj=$;~cdIi3{3SVD^&j(c!!Zkg! df9t8j=Z`&A-I#vwooHYf6%J557qL}(@4w-k4p#sG literal 0 HcmV?d00001 diff --git a/CleanFlashCommon/small_icon.ico b/CleanFlashCommon/small_icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..addefc763a220a868d384ff3438e635e9d0d9b77 GIT binary patch literal 4286 zcmeHLJx^3Y6dm`?#u5X@R-%oKxPtO2ECd@XN;^dVfUOpOR(2$o7HTIwG1#aWW2cG# zKnoKRHNjvAhLDWs+?hM?zTE|u#7>qR?qlc8J!j6nGw%iGj^L-i-|@FwI_BI7=iC_p zU%6?3-^&MMho3_SIyvC$gCSxFF~K9YLdPWP9LDnzp0N?(8P7%d0Yre&pAD@VGLPiF zfP43Y(a1R-8VJ=P5&YEPp+Qh;u>9U%=qdRwB1boXKCc>+PpU(_gb&sW`cT!-qZ+{1 zta1)R!+x+Dchj+l20zfO@>{+U@b3YSF>mizEk=jbG1bHRKo7(V!|#W&{>WD#E-$Z! zTelyFzP?%9J6giynvm~QpX%sBgY;wW2ebYW@W1gqx(wDg>4gcsId6j2nyLc*B&Xz#T#do`u(tL+Y;JCb`D+irI{{uIX^|LxQSYJ`tVgPa><{v*2Gfte zaj(L!+{)uGg*$hjgsrWu3Pgk4Q}u!#uy;IrQ}&MO2kQZQG4?^p@5ixzt_$k}Z&8ov z?Yk0w{9F&)+uIp3Cif&Say?QlM1%2wbr61dpnVWEl>Bw_8*V=d4U?hfr^2)6FT>8x zPI&$1Bedar8KXYlU)8`mw0polNHtLYcs3gTiN%-;d4*#t)arn5hEu1n2L0TB_|)+8 z-gf?SZ>k4eziKe&vu`Zs`umBu*>~_Ocg;^j!%Vn-|hzWi-8BoAy2xQ}H|8h+Ue zZT`Q_{Phm}^(MF@KjX~o&9M6Jv*>86LE?{V@4(-A{Z)S1Tgm_AeN8k_2O!r|X6>m5 z*tdrN0QE2V#ede4IgF}=_6%o5PUgFxqLw7F#+3%Y(r#pUx}~A2V>Cu&=v8}+^Pdy z(2zI^JjV#W?-UBuyBNdYWwh5imhYFjnn$%??8u!p6eA0HzHp6$4|}6P{}tE|8Q70S zD|CD!&EY)iRsAD-a+ey$pn>x&Z{n)qOsX|QA(%$Q84bk0aYkW0>Y|oX2l92rts4H9 gm>;a^V%52VxQ~Au{7W$BSLcrYa<1o(b0?MeFQDrPp8x;= literal 0 HcmV?d00001 diff --git a/CleanFlashInstaller.sln b/CleanFlashInstaller.sln new file mode 100644 index 0000000..8bae1be --- /dev/null +++ b/CleanFlashInstaller.sln @@ -0,0 +1,65 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31205.134 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanFlashInstaller", "CleanFlashInstaller\CleanFlashInstaller.csproj", "{317B6619-2419-4778-95A2-1A97DC55AB83}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanFlashUninstaller", "CleanFlashUninstaller\CleanFlashUninstaller.csproj", "{E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanFlashCommon", "CleanFlashCommon\CleanFlashCommon.csproj", "{D00F629B-455A-42DE-B2FA-A3759A3095AE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {317B6619-2419-4778-95A2-1A97DC55AB83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {317B6619-2419-4778-95A2-1A97DC55AB83}.Debug|Any CPU.Build.0 = Debug|Any CPU + {317B6619-2419-4778-95A2-1A97DC55AB83}.Debug|x64.ActiveCfg = Debug|x64 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Debug|x64.Build.0 = Debug|x64 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Debug|x86.ActiveCfg = Debug|x86 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Debug|x86.Build.0 = Debug|x86 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Release|Any CPU.ActiveCfg = Release|Any CPU + {317B6619-2419-4778-95A2-1A97DC55AB83}.Release|Any CPU.Build.0 = Release|Any CPU + {317B6619-2419-4778-95A2-1A97DC55AB83}.Release|x64.ActiveCfg = Release|x64 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Release|x64.Build.0 = Release|x64 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Release|x86.ActiveCfg = Release|x86 + {317B6619-2419-4778-95A2-1A97DC55AB83}.Release|x86.Build.0 = Release|x86 + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Debug|x64.ActiveCfg = Debug|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Debug|x64.Build.0 = Debug|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Debug|x86.ActiveCfg = Debug|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Debug|x86.Build.0 = Debug|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Release|Any CPU.Build.0 = Release|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Release|x64.ActiveCfg = Release|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Release|x64.Build.0 = Release|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Release|x86.ActiveCfg = Release|Any CPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C}.Release|x86.Build.0 = Release|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Debug|x64.ActiveCfg = Debug|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Debug|x64.Build.0 = Debug|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Debug|x86.ActiveCfg = Debug|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Debug|x86.Build.0 = Debug|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Release|Any CPU.Build.0 = Release|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Release|x64.ActiveCfg = Release|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Release|x64.Build.0 = Release|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Release|x86.ActiveCfg = Release|Any CPU + {D00F629B-455A-42DE-B2FA-A3759A3095AE}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E3F04969-B085-46D9-A518-4264D1988548} + EndGlobalSection +EndGlobal diff --git a/CleanFlashInstaller/App.config b/CleanFlashInstaller/App.config new file mode 100644 index 0000000..74ade9d --- /dev/null +++ b/CleanFlashInstaller/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/CleanFlashInstaller/CleanFlashInstaller.csproj b/CleanFlashInstaller/CleanFlashInstaller.csproj new file mode 100644 index 0000000..ba4a06d --- /dev/null +++ b/CleanFlashInstaller/CleanFlashInstaller.csproj @@ -0,0 +1,200 @@ + + + + + + + Debug + AnyCPU + {317B6619-2419-4778-95A2-1A97DC55AB83} + WinExe + CleanFlashInstaller + CleanFlashInstaller + v4.0 + 512 + true + true + + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + + + ..\CleanFlashCommon\icon.ico + + + + app.manifest + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + 7.3 + prompt + true + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + 7.3 + prompt + true + + + true + bin\x86\Debug\ + DEBUG;TRACE + full + x86 + 7.3 + prompt + true + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + 7.3 + prompt + true + + + CleanFlashInstaller.Program + + + + ..\packages\DotNetZip.1.15.0\lib\net40\DotNetZip.dll + + + + + + + + + + + + + + + + + Form + + + InstallForm.cs + + + + + InstallForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + + + + + + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + + + + False + .NET Framework 3.5 SP1 + false + + + + + {d00f629b-455a-42de-b2fa-a3759a3095ae} + CleanFlashCommon + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + diff --git a/CleanFlashInstaller/ILMerge.props b/CleanFlashInstaller/ILMerge.props new file mode 100644 index 0000000..aaadb12 --- /dev/null +++ b/CleanFlashInstaller/ILMerge.props @@ -0,0 +1,67 @@ + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CleanFlashInstaller/ILMergeOrder.txt b/CleanFlashInstaller/ILMergeOrder.txt new file mode 100644 index 0000000..3fda7f5 --- /dev/null +++ b/CleanFlashInstaller/ILMergeOrder.txt @@ -0,0 +1,4 @@ +# this file contains the partial list of the merged assemblies in the merge order +# you can fill it from the obj\CONFIG\PROJECT.ilmerge generated on every build +# and finetune merge order to your satisfaction + diff --git a/CleanFlashInstaller/InstallForm.Designer.cs b/CleanFlashInstaller/InstallForm.Designer.cs new file mode 100644 index 0000000..758e835 --- /dev/null +++ b/CleanFlashInstaller/InstallForm.Designer.cs @@ -0,0 +1,507 @@ + +namespace CleanFlashInstaller { + partial class InstallForm { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) { + if (disposing && (components != null)) { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InstallForm)); + this.disclaimerLabel = new System.Windows.Forms.Label(); + this.separator = new System.Windows.Forms.Label(); + this.checkboxImages = new System.Windows.Forms.ImageList(this.components); + this.flashLogo = new System.Windows.Forms.PictureBox(); + this.titleLabel = new System.Windows.Forms.Label(); + this.subtitleLabel = new System.Windows.Forms.Label(); + this.disclaimerPanel = new System.Windows.Forms.Panel(); + this.choicePanel = new System.Windows.Forms.Panel(); + this.activeXLabel = new System.Windows.Forms.Label(); + this.netscapeLabel = new System.Windows.Forms.Label(); + this.pepperLabel = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.installPanel = new System.Windows.Forms.Panel(); + this.progressLabel = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.beforeInstallPanel = new System.Windows.Forms.Panel(); + this.beforeInstallLabel = new System.Windows.Forms.Label(); + this.completePanel = new System.Windows.Forms.Panel(); + this.completeLabel = new System.Windows.Forms.LinkLabel(); + this.failurePanel = new System.Windows.Forms.Panel(); + this.failureBox = new System.Windows.Forms.TextBox(); + this.failureText = new System.Windows.Forms.Label(); + this.copyErrorButton = new CleanFlashCommon.GradientButton(); + this.progressBar = new CleanFlashCommon.SmoothProgressBar(); + this.nextButton = new CleanFlashCommon.GradientButton(); + this.prevButton = new CleanFlashCommon.GradientButton(); + this.activeXBox = new CleanFlashCommon.ImageCheckBox(); + this.netscapeBox = new CleanFlashCommon.ImageCheckBox(); + this.pepperBox = new CleanFlashCommon.ImageCheckBox(); + this.disclaimerBox = new CleanFlashCommon.ImageCheckBox(); + ((System.ComponentModel.ISupportInitialize)(this.flashLogo)).BeginInit(); + this.disclaimerPanel.SuspendLayout(); + this.choicePanel.SuspendLayout(); + this.installPanel.SuspendLayout(); + this.beforeInstallPanel.SuspendLayout(); + this.completePanel.SuspendLayout(); + this.failurePanel.SuspendLayout(); + this.SuspendLayout(); + // + // disclaimerLabel + // + this.disclaimerLabel.AutoSize = true; + this.disclaimerLabel.Location = new System.Drawing.Point(25, 0); + this.disclaimerLabel.Name = "disclaimerLabel"; + this.disclaimerLabel.Size = new System.Drawing.Size(520, 85); + this.disclaimerLabel.TabIndex = 0; + this.disclaimerLabel.Text = resources.GetString("disclaimerLabel.Text"); + this.disclaimerLabel.Click += new System.EventHandler(this.disclaimerLabel_Click); + // + // separator + // + this.separator.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.separator.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; + this.separator.Location = new System.Drawing.Point(0, 270); + this.separator.Name = "separator"; + this.separator.Size = new System.Drawing.Size(732, 1); + this.separator.TabIndex = 1; + // + // checkboxImages + // + this.checkboxImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("checkboxImages.ImageStream"))); + this.checkboxImages.TransparentColor = System.Drawing.Color.Transparent; + this.checkboxImages.Images.SetKeyName(0, "checkboxOff.png"); + this.checkboxImages.Images.SetKeyName(1, "checkboxOn.png"); + // + // flashLogo + // + this.flashLogo.Image = Properties.Resources.flashLogo; + this.flashLogo.Location = new System.Drawing.Point(90, 36); + this.flashLogo.Margin = new System.Windows.Forms.Padding(0); + this.flashLogo.Name = "flashLogo"; + this.flashLogo.Size = new System.Drawing.Size(109, 107); + this.flashLogo.TabIndex = 4; + this.flashLogo.TabStop = false; + // + // titleLabel + // + this.titleLabel.AutoSize = true; + this.titleLabel.Font = new System.Drawing.Font("Segoe UI", 24F); + this.titleLabel.Location = new System.Drawing.Point(233, 54); + this.titleLabel.Name = "titleLabel"; + this.titleLabel.Size = new System.Drawing.Size(274, 45); + this.titleLabel.TabIndex = 5; + this.titleLabel.Text = "Clean Flash Player"; + // + // subtitleLabel + // + this.subtitleLabel.AutoSize = true; + this.subtitleLabel.Font = new System.Drawing.Font("Segoe UI", 13F); + this.subtitleLabel.Location = new System.Drawing.Point(280, 99); + this.subtitleLabel.Name = "subtitleLabel"; + this.subtitleLabel.Size = new System.Drawing.Size(231, 25); + this.subtitleLabel.TabIndex = 6; + this.subtitleLabel.Text = "built from unknown version"; + // + // disclaimerPanel + // + this.disclaimerPanel.Controls.Add(this.disclaimerBox); + this.disclaimerPanel.Controls.Add(this.disclaimerLabel); + this.disclaimerPanel.Location = new System.Drawing.Point(90, 162); + this.disclaimerPanel.Name = "disclaimerPanel"; + this.disclaimerPanel.Size = new System.Drawing.Size(545, 105); + this.disclaimerPanel.TabIndex = 8; + // + // choicePanel + // + this.choicePanel.Controls.Add(this.activeXLabel); + this.choicePanel.Controls.Add(this.activeXBox); + this.choicePanel.Controls.Add(this.netscapeLabel); + this.choicePanel.Controls.Add(this.netscapeBox); + this.choicePanel.Controls.Add(this.pepperLabel); + this.choicePanel.Controls.Add(this.pepperBox); + this.choicePanel.Controls.Add(this.label1); + this.choicePanel.Location = new System.Drawing.Point(90, 162); + this.choicePanel.Name = "choicePanel"; + this.choicePanel.Size = new System.Drawing.Size(545, 105); + this.choicePanel.TabIndex = 9; + // + // activeXLabel + // + this.activeXLabel.AutoSize = true; + this.activeXLabel.Location = new System.Drawing.Point(389, 47); + this.activeXLabel.Name = "activeXLabel"; + this.activeXLabel.Size = new System.Drawing.Size(148, 34); + this.activeXLabel.TabIndex = 8; + this.activeXLabel.Text = "ActiveX (OCX)\r\n(IE/Embedded/Desktop)"; + this.activeXLabel.Click += new System.EventHandler(this.activeXLabel_Click); + // + // netscapeLabel + // + this.netscapeLabel.AutoSize = true; + this.netscapeLabel.Location = new System.Drawing.Point(210, 47); + this.netscapeLabel.Name = "netscapeLabel"; + this.netscapeLabel.Size = new System.Drawing.Size(131, 34); + this.netscapeLabel.TabIndex = 6; + this.netscapeLabel.Text = "Netscape API (NPAPI)\r\n(Firefox/ESR/Basilisk)\r\n"; + this.netscapeLabel.Click += new System.EventHandler(this.netscapeLabel_Click); + // + // pepperLabel + // + this.pepperLabel.AutoSize = true; + this.pepperLabel.Location = new System.Drawing.Point(24, 47); + this.pepperLabel.Name = "pepperLabel"; + this.pepperLabel.Size = new System.Drawing.Size(141, 34); + this.pepperLabel.TabIndex = 4; + this.pepperLabel.Text = "Pepper API (PPAPI)\r\n(Chrome/Opera/Brave)"; + this.pepperLabel.Click += new System.EventHandler(this.pepperLabel_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(-2, 2); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(287, 17); + this.label1.TabIndex = 0; + this.label1.Text = "Which browser plugins would you like to install?"; + // + // installPanel + // + this.installPanel.Controls.Add(this.progressBar); + this.installPanel.Controls.Add(this.progressLabel); + this.installPanel.Controls.Add(this.label2); + this.installPanel.Location = new System.Drawing.Point(90, 162); + this.installPanel.Name = "installPanel"; + this.installPanel.Size = new System.Drawing.Size(545, 105); + this.installPanel.TabIndex = 10; + // + // progressLabel + // + this.progressLabel.AutoSize = true; + this.progressLabel.Location = new System.Drawing.Point(46, 30); + this.progressLabel.Name = "progressLabel"; + this.progressLabel.Size = new System.Drawing.Size(74, 17); + this.progressLabel.TabIndex = 1; + this.progressLabel.Text = "Preparing..."; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(3, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(150, 17); + this.label2.TabIndex = 0; + this.label2.Text = "Installation in progress..."; + // + // beforeInstallPanel + // + this.beforeInstallPanel.Controls.Add(this.beforeInstallLabel); + this.beforeInstallPanel.Location = new System.Drawing.Point(90, 162); + this.beforeInstallPanel.Name = "beforeInstallPanel"; + this.beforeInstallPanel.Size = new System.Drawing.Size(545, 105); + this.beforeInstallPanel.TabIndex = 11; + // + // beforeInstallLabel + // + this.beforeInstallLabel.AutoSize = true; + this.beforeInstallLabel.Location = new System.Drawing.Point(3, 2); + this.beforeInstallLabel.Name = "beforeInstallLabel"; + this.beforeInstallLabel.Size = new System.Drawing.Size(147, 17); + this.beforeInstallLabel.TabIndex = 12; + this.beforeInstallLabel.Text = "Allan please add details"; + // + // completePanel + // + this.completePanel.Controls.Add(this.completeLabel); + this.completePanel.Location = new System.Drawing.Point(90, 162); + this.completePanel.Name = "completePanel"; + this.completePanel.Size = new System.Drawing.Size(545, 105); + this.completePanel.TabIndex = 12; + // + // completeLabel + // + this.completeLabel.AutoSize = true; + this.completeLabel.LinkArea = new System.Windows.Forms.LinkArea(0, 0); + this.completeLabel.LinkColor = System.Drawing.Color.White; + this.completeLabel.Location = new System.Drawing.Point(0, 0); + this.completeLabel.Name = "completeLabel"; + this.completeLabel.Size = new System.Drawing.Size(168, 17); + this.completeLabel.TabIndex = 0; + this.completeLabel.Text = "Allan where are the details?"; + this.completeLabel.VisitedLinkColor = System.Drawing.Color.White; + this.completeLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.completeLabel_LinkClicked); + // + // failurePanel + // + this.failurePanel.Controls.Add(this.copyErrorButton); + this.failurePanel.Controls.Add(this.failureBox); + this.failurePanel.Controls.Add(this.failureText); + this.failurePanel.Location = new System.Drawing.Point(90, 162); + this.failurePanel.Name = "failurePanel"; + this.failurePanel.Size = new System.Drawing.Size(545, 105); + this.failurePanel.TabIndex = 13; + // + // failureBox + // + this.failureBox.Location = new System.Drawing.Point(4, 44); + this.failureBox.Multiline = true; + this.failureBox.Name = "failureBox"; + this.failureBox.ReadOnly = true; + this.failureBox.Size = new System.Drawing.Size(431, 58); + this.failureBox.TabIndex = 15; + // + // failureText + // + this.failureText.AutoSize = true; + this.failureText.Location = new System.Drawing.Point(3, 2); + this.failureText.Name = "failureText"; + this.failureText.Size = new System.Drawing.Size(432, 34); + this.failureText.TabIndex = 14; + this.failureText.Text = "Oops! The installation process has encountered an unexpected problem.\r\nThe follow" + + "ing details could be useful. Press the Retry button to try again."; + // + // copyErrorButton + // + this.copyErrorButton.BackColor = System.Drawing.Color.Black; + this.copyErrorButton.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118))))); + this.copyErrorButton.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81))))); + this.copyErrorButton.DisableAlpha = 0.644D; + this.copyErrorButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.copyErrorButton.ForeColor = System.Drawing.SystemColors.Control; + this.copyErrorButton.HoverAlpha = 0.875D; + this.copyErrorButton.Location = new System.Drawing.Point(441, 58); + this.copyErrorButton.Name = "copyErrorButton"; + this.copyErrorButton.Size = new System.Drawing.Size(104, 31); + this.copyErrorButton.TabIndex = 14; + this.copyErrorButton.Text = "COPY"; + this.copyErrorButton.UseVisualStyleBackColor = false; + this.copyErrorButton.Click += new System.EventHandler(this.copyErrorButton_Click); + // + // progressBar + // + this.progressBar.Location = new System.Drawing.Point(49, 58); + this.progressBar.Maximum = 100; + this.progressBar.Minimum = 0; + this.progressBar.Name = "progressBar"; + this.progressBar.ProgressBarColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(97)))), ((int)(((byte)(147)))), ((int)(((byte)(232))))); + this.progressBar.ProgressBarColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(99)))), ((int)(((byte)(232))))); + this.progressBar.Size = new System.Drawing.Size(451, 23); + this.progressBar.TabIndex = 2; + this.progressBar.Value = 0; + // + // nextButton + // + this.nextButton.BackColor = System.Drawing.Color.Black; + this.nextButton.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118))))); + this.nextButton.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81))))); + this.nextButton.DisableAlpha = 0.644D; + this.nextButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.nextButton.ForeColor = System.Drawing.SystemColors.Control; + this.nextButton.HoverAlpha = 0.875D; + this.nextButton.Location = new System.Drawing.Point(497, 286); + this.nextButton.Name = "nextButton"; + this.nextButton.Size = new System.Drawing.Size(138, 31); + this.nextButton.TabIndex = 7; + this.nextButton.Text = "AGREE"; + this.nextButton.UseVisualStyleBackColor = false; + this.nextButton.Click += new System.EventHandler(this.nextButton_Click); + // + // prevButton + // + this.prevButton.BackColor = System.Drawing.Color.Black; + this.prevButton.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118))))); + this.prevButton.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81))))); + this.prevButton.DisableAlpha = 0.644D; + this.prevButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.prevButton.ForeColor = System.Drawing.SystemColors.Control; + this.prevButton.HoverAlpha = 0.875D; + this.prevButton.Location = new System.Drawing.Point(90, 286); + this.prevButton.Name = "prevButton"; + this.prevButton.Size = new System.Drawing.Size(138, 31); + this.prevButton.TabIndex = 3; + this.prevButton.Text = "QUIT"; + this.prevButton.UseVisualStyleBackColor = false; + this.prevButton.Click += new System.EventHandler(this.prevButton_Click); + // + // activeXBox + // + this.activeXBox.Appearance = System.Windows.Forms.Appearance.Button; + this.activeXBox.AutoSize = true; + this.activeXBox.Checked = true; + this.activeXBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.activeXBox.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.activeXBox.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.activeXBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.activeXBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.activeXBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.activeXBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.activeXBox.ImageIndex = 1; + this.activeXBox.ImageList = this.checkboxImages; + this.activeXBox.Location = new System.Drawing.Point(365, 47); + this.activeXBox.Margin = new System.Windows.Forms.Padding(0); + this.activeXBox.Name = "activeXBox"; + this.activeXBox.Size = new System.Drawing.Size(21, 21); + this.activeXBox.TabIndex = 7; + this.activeXBox.UseVisualStyleBackColor = true; + // + // netscapeBox + // + this.netscapeBox.Appearance = System.Windows.Forms.Appearance.Button; + this.netscapeBox.AutoSize = true; + this.netscapeBox.Checked = true; + this.netscapeBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.netscapeBox.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.netscapeBox.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.netscapeBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.netscapeBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.netscapeBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.netscapeBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.netscapeBox.ImageIndex = 1; + this.netscapeBox.ImageList = this.checkboxImages; + this.netscapeBox.Location = new System.Drawing.Point(186, 47); + this.netscapeBox.Margin = new System.Windows.Forms.Padding(0); + this.netscapeBox.Name = "netscapeBox"; + this.netscapeBox.Size = new System.Drawing.Size(21, 21); + this.netscapeBox.TabIndex = 5; + this.netscapeBox.UseVisualStyleBackColor = true; + // + // pepperBox + // + this.pepperBox.Appearance = System.Windows.Forms.Appearance.Button; + this.pepperBox.AutoSize = true; + this.pepperBox.Checked = true; + this.pepperBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.pepperBox.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.pepperBox.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.pepperBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.pepperBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.pepperBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.pepperBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.pepperBox.ImageIndex = 1; + this.pepperBox.ImageList = this.checkboxImages; + this.pepperBox.Location = new System.Drawing.Point(0, 47); + this.pepperBox.Margin = new System.Windows.Forms.Padding(0); + this.pepperBox.Name = "pepperBox"; + this.pepperBox.Size = new System.Drawing.Size(21, 21); + this.pepperBox.TabIndex = 3; + this.pepperBox.UseVisualStyleBackColor = true; + // + // disclaimerBox + // + this.disclaimerBox.Appearance = System.Windows.Forms.Appearance.Button; + this.disclaimerBox.AutoSize = true; + this.disclaimerBox.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.disclaimerBox.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.disclaimerBox.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.disclaimerBox.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.disclaimerBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.disclaimerBox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.disclaimerBox.ImageIndex = 0; + this.disclaimerBox.ImageList = this.checkboxImages; + this.disclaimerBox.Location = new System.Drawing.Point(0, 0); + this.disclaimerBox.Margin = new System.Windows.Forms.Padding(0); + this.disclaimerBox.Name = "disclaimerBox"; + this.disclaimerBox.Size = new System.Drawing.Size(21, 21); + this.disclaimerBox.TabIndex = 2; + this.disclaimerBox.UseVisualStyleBackColor = true; + this.disclaimerBox.CheckedChanged += new System.EventHandler(this.disclaimerBox_CheckedChanged); + // + // InstallForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.ClientSize = new System.Drawing.Size(712, 329); + this.Controls.Add(this.failurePanel); + this.Controls.Add(this.completePanel); + this.Controls.Add(this.beforeInstallPanel); + this.Controls.Add(this.installPanel); + this.Controls.Add(this.nextButton); + this.Controls.Add(this.subtitleLabel); + this.Controls.Add(this.titleLabel); + this.Controls.Add(this.flashLogo); + this.Controls.Add(this.prevButton); + this.Controls.Add(this.separator); + this.Controls.Add(this.choicePanel); + this.Controls.Add(this.disclaimerPanel); + this.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ForeColor = System.Drawing.SystemColors.ControlLightLight; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(4); + this.MaximizeBox = false; + this.Name = "InstallForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Clean Flash Player Dev Installer"; + this.Load += new System.EventHandler(this.InstallForm_Load); + ((System.ComponentModel.ISupportInitialize)(this.flashLogo)).EndInit(); + this.disclaimerPanel.ResumeLayout(false); + this.disclaimerPanel.PerformLayout(); + this.choicePanel.ResumeLayout(false); + this.choicePanel.PerformLayout(); + this.installPanel.ResumeLayout(false); + this.installPanel.PerformLayout(); + this.beforeInstallPanel.ResumeLayout(false); + this.beforeInstallPanel.PerformLayout(); + this.completePanel.ResumeLayout(false); + this.completePanel.PerformLayout(); + this.failurePanel.ResumeLayout(false); + this.failurePanel.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label disclaimerLabel; + private System.Windows.Forms.Label separator; + private System.Windows.Forms.ImageList checkboxImages; + private CleanFlashCommon.ImageCheckBox disclaimerBox; + private CleanFlashCommon.GradientButton prevButton; + private System.Windows.Forms.PictureBox flashLogo; + private System.Windows.Forms.Label titleLabel; + private System.Windows.Forms.Label subtitleLabel; + private CleanFlashCommon.GradientButton nextButton; + private System.Windows.Forms.Panel disclaimerPanel; + private System.Windows.Forms.Panel choicePanel; + private System.Windows.Forms.Label activeXLabel; + private CleanFlashCommon.ImageCheckBox activeXBox; + private System.Windows.Forms.Label netscapeLabel; + private CleanFlashCommon.ImageCheckBox netscapeBox; + private System.Windows.Forms.Label pepperLabel; + private CleanFlashCommon.ImageCheckBox pepperBox; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Panel installPanel; + private CleanFlashCommon.SmoothProgressBar progressBar; + private System.Windows.Forms.Label progressLabel; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Panel beforeInstallPanel; + private System.Windows.Forms.Label beforeInstallLabel; + private System.Windows.Forms.Panel completePanel; + private System.Windows.Forms.LinkLabel completeLabel; + private System.Windows.Forms.Panel failurePanel; + private System.Windows.Forms.TextBox failureBox; + private System.Windows.Forms.Label failureText; + private CleanFlashCommon.GradientButton copyErrorButton; + } +} + diff --git a/CleanFlashInstaller/InstallForm.cs b/CleanFlashInstaller/InstallForm.cs new file mode 100644 index 0000000..3def8c8 --- /dev/null +++ b/CleanFlashInstaller/InstallForm.cs @@ -0,0 +1,251 @@ +using CleanFlashCommon; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CleanFlashInstaller { + public partial class InstallForm : Form, IProgressForm { + private static int UNINSTALL_TICKS = 9; + private static int INSTALL_GENERAL_TICKS = 2; + private static string COMPLETE_INSTALL_TEXT = @"Clean Flash Player has been successfully installed! +Don't forget, Flash Player is no longer compatible with new browsers. We recommend using: + • Older Google Chrome ≤ 87 + • Older Mozilla Firefox ≤ 84 or Basilisk Browser + +For Flash Player updates, check out Clean Flash Player's website!"; + private static string COMPLETE_UNINSTALL_TEXT = @" +All versions of Flash Player have been successfully uninstalled. + +If you ever change your mind, check out Clean Flash Player's website!"; + + public InstallForm() { + InitializeComponent(); + } + + private void CheckAgreeBox() { + nextButton.Enabled = disclaimerBox.Checked; + } + + private void HideAllPanels() { + disclaimerPanel.Visible = false; + choicePanel.Visible = false; + beforeInstallPanel.Visible = false; + installPanel.Visible = false; + completePanel.Visible = false; + failurePanel.Visible = false; + } + + private void OpenDisclaimerPanel() { + HideAllPanels(); + disclaimerPanel.Visible = true; + prevButton.Text = "QUIT"; + nextButton.Text = "AGREE"; + } + + private void OpenChoicePanel() { + HideAllPanels(); + choicePanel.Visible = true; + prevButton.Text = "BACK"; + nextButton.Text = "NEXT"; + } + + private string JoinStringsWithAnd(List strings) { + string text = string.Join(", ", strings); + int index = text.LastIndexOf(", "); + + if (index != -1) { + text = text.Substring(0, index) + " and " + text.Substring(index + 2); + } + + return text; + } + + private void OpenBeforeInstall() { + HideAllPanels(); + string text; + + if (pepperBox.Checked || netscapeBox.Checked || activeXBox.Checked) { + List browsers = new List(); + + if (pepperBox.Checked) { + browsers.Add("Google Chrome"); + } + if (netscapeBox.Checked) { + browsers.Add("Mozilla Firefox"); + } + if (activeXBox.Checked) { + browsers.Add("Internet Explorer"); + } + + text = string.Format("You are about to install Clean Flash Player.\nPlease close all browsers, including Google Chrome, Mozilla Firefox and Internet Explorer.\n\nThe installer will close all browser windows, uninstall previous versions of Flash Player and\nFlash Center, and install Flash for {0}.", JoinStringsWithAnd(browsers)); + nextButton.Text = "INSTALL"; + } else { + text = "You are about to uninstall Clean Flash Player.\nPlease close all browsers, including Google Chrome, Mozilla Firefox and Internet Explorer.\n\nThe installer will completely remove all versions of Flash Player from this computer,\nincluding Clean Flash Player and older versions of Adobe Flash Player."; + nextButton.Text = "UNINSTALL"; + } + + beforeInstallLabel.Text = text; + beforeInstallPanel.Visible = true; + prevButton.Text = "BACK"; + } + + private void OpenInstall() { + HideAllPanels(); + installPanel.Visible = true; + prevButton.Text = "BACK"; + nextButton.Text = "NEXT"; + prevButton.Enabled = false; + nextButton.Visible = false; + BeginInstall(); + } + + private void OpenComplete() { + HideAllPanels(); + completePanel.Visible = true; + prevButton.Text = "QUIT"; + prevButton.Enabled = true; + + completeLabel.Links.Clear(); + + if (pepperBox.Checked || netscapeBox.Checked || activeXBox.Checked) { + completeLabel.Text = COMPLETE_INSTALL_TEXT; + completeLabel.Links.Add(new LinkLabel.Link(212, 16)); + completeLabel.Links.Add(new LinkLabel.Link(268, 28)); + } else { + completeLabel.Text = COMPLETE_UNINSTALL_TEXT; + completeLabel.Links.Add(new LinkLabel.Link(110, 28)); + } + } + + private void OpenFailure(Exception e) { + HideAllPanels(); + failurePanel.Visible = true; + prevButton.Text = "QUIT"; + prevButton.Enabled = true; + nextButton.Text = "RETRY"; + nextButton.Visible = true; + failureBox.Text = e.ToString(); + } + + private void BeginInstall() { + int requiredValue = (pepperBox.Checked ? 1 : 0) + (netscapeBox.Checked ? 1 : 0) + (activeXBox.Checked ? 2 : 0); + + if (Environment.Is64BitOperatingSystem) { + requiredValue *= 2; + } + + requiredValue += UNINSTALL_TICKS; + requiredValue += INSTALL_GENERAL_TICKS; + + progressBar.Value = 0; + progressBar.Maximum = requiredValue; + + new Task(new Action(() => { + IntPtr redirection = RedirectionManager.DisableRedirection(); + + try { + Uninstaller.Uninstall(this); + Installer.Install(this, pepperBox.Checked, netscapeBox.Checked, activeXBox.Checked); + Complete(); + } catch (Exception e) { + Failure(e); + } finally { + RedirectionManager.EnableRedirection(redirection); + } + })).Start(); + } + + private void disclaimerBox_CheckedChanged(object sender, EventArgs e) { + CheckAgreeBox(); + } + + private void disclaimerLabel_Click(object sender, EventArgs e) { + disclaimerBox.Checked = !disclaimerBox.Checked; + } + + private void InstallForm_Load(object sender, EventArgs e) { + string version = UpdateChecker.GetFlashVersion(); + + subtitleLabel.Text = string.Format("built from version {0} (China)", version); + Text = string.Format("Clean Flash Player {0} Installer", version); + + OpenDisclaimerPanel(); + CheckAgreeBox(); + } + + private void prevButton_Click(object sender, EventArgs e) { + if (disclaimerPanel.Visible || completePanel.Visible || failurePanel.Visible) { + Application.Exit(); + } else if (choicePanel.Visible) { + OpenDisclaimerPanel(); + } else if (beforeInstallPanel.Visible) { + OpenChoicePanel(); + } + } + + private void nextButton_Click(object sender, EventArgs e) { + if (disclaimerPanel.Visible) { + OpenChoicePanel(); + } else if (choicePanel.Visible) { + OpenBeforeInstall(); + } else if (beforeInstallPanel.Visible || failurePanel.Visible) { + OpenInstall(); + } + } + + private void pepperLabel_Click(object sender, EventArgs e) { + pepperBox.Checked = !pepperBox.Checked; + } + + private void netscapeLabel_Click(object sender, EventArgs e) { + netscapeBox.Checked = !netscapeBox.Checked; + } + + private void activeXLabel_Click(object sender, EventArgs e) { + activeXBox.Checked = !activeXBox.Checked; + } + + private void button1_Click(object sender, EventArgs e) { + BeginInstall(); + } + + public void UpdateProgressLabel(string text, bool tick) { + Invoke(new Action(() => { + progressLabel.Text = text; + + if (tick) { + progressBar.Value++; + } + })); + } + + public void TickProgress() { + Invoke(new Action(() => { + progressBar.Value++; + })); + } + + public void Complete() { + Invoke(new Action(OpenComplete)); + } + + public void Failure(Exception e) { + Invoke(new Action(() => OpenFailure(e))); + } + + private void completeLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { + if (e.Link.Start == 212) { + Process.Start("https://www.basilisk-browser.org"); + } else { + Process.Start("https://cleanflash.github.io"); + } + } + + private void copyErrorButton_Click(object sender, EventArgs e) { + Clipboard.SetText(failureBox.Text); + MessageBox.Show("Copied error message to clipboard!", "Clean Flash Installer", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + } +} diff --git a/CleanFlashInstaller/InstallForm.resx b/CleanFlashInstaller/InstallForm.resx new file mode 100644 index 0000000..c382dc3 --- /dev/null +++ b/CleanFlashInstaller/InstallForm.resx @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + I am aware that Adobe Flash Player is no longer supported, nor provided by Adobe Inc. +Clean Flash Player is a third-party version of Flash Player maintained by darktohka, +built from the latest Flash Player version by Adobe with adware removed. + +Adobe is not required by any means to provide support for this version of Flash Player. + + + + 17, 17 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACY + CAAAAk1TRnQBSQFMAgEBAgEAAeABAQHgAQEBDwEAAQ8BAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + AwABPAMAAQ8DAAEBAQABCAUAAYQBAxgAAYACAAGAAwACgAEAAYADAAGAAQABgA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAA/////////////////////8AAAAPAAAADgAAAAYAAAAGAAAABgAAAAYAA + AAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAA + AAHAAAAD4AAAB/AAAA/4AAAf//////////8= + + + \ No newline at end of file diff --git a/CleanFlashInstaller/Installer.cs b/CleanFlashInstaller/Installer.cs new file mode 100644 index 0000000..689973f --- /dev/null +++ b/CleanFlashInstaller/Installer.cs @@ -0,0 +1,103 @@ +using CleanFlashCommon; +using System; +using System.Collections.Generic; +using System.IO; +using System.Reflection; +using System.Diagnostics; +using Ionic.Zip; + +namespace CleanFlashInstaller { + public class Installer { + public static void RegisterActiveX(string filename) { + Directory.SetCurrentDirectory(Path.GetDirectoryName(filename)); + ExitedProcess process = ProcessRunner.RunProcess( + new ProcessStartInfo { + FileName = "regsvr32.exe", + Arguments = "/s " + Path.GetFileName(filename), + UseShellExecute = false, + CreateNoWindow = true + } + ); + + if (!process.IsSuccessful) { + throw new InstallException(string.Format("Failed to register ActiveX plugin: error code {0}\n\n{1}", process.ExitCode, process.Output)); + } + } + + public static void ExtractArchive(string archiveName, string targetDirectory) { + using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("CleanFlashInstaller." + archiveName)) { + using (ZipFile archive = ZipFile.Read(stream)) { + archive.ExtractAll(targetDirectory, ExtractExistingFileAction.OverwriteSilently); + } + } + } + + public static void Install(IProgressForm form, bool installPP, bool installNP, bool installOCX) { + if (!installPP && !installNP && !installOCX) { + // No packages should be installed. + return; + } + + string flash32Path = SystemInfo.GetFlash32Path(); + string flash64Path = SystemInfo.GetFlash64Path(); + string system32Path = SystemInfo.GetSystem32Path(); + List registryToApply = new List() { Properties.Resources.installGeneral }; + + if (Environment.Is64BitOperatingSystem) { + registryToApply.Add(Properties.Resources.installGeneral64); + } + + form.UpdateProgressLabel("Installing Flash Player utilities...", true); + ExtractArchive("flash_gen_32.zip", system32Path); + form.UpdateProgressLabel("Extracting uninstaller..", true); + ExtractArchive("flash_uninstaller.zip", flash32Path); + + if (installPP) { + form.UpdateProgressLabel("Installing 32-bit Flash Player for Chrome...", true); + ExtractArchive("flash_pp_32.zip", flash32Path); + registryToApply.Add(Properties.Resources.installPP); + } + if (installNP) { + form.UpdateProgressLabel("Installing 32-bit Flash Player for Firefox...", true); + ExtractArchive("flash_np_32.zip", flash32Path); + registryToApply.Add(Properties.Resources.installNP); + } + if (installOCX) { + form.UpdateProgressLabel("Installing 32-bit Flash Player for Internet Explorer...", true); + ExtractArchive("flash_ocx_32.zip", flash32Path); + registryToApply.Add(Properties.Resources.installOCX); + } + + if (Environment.Is64BitOperatingSystem) { + if (installPP) { + form.UpdateProgressLabel("Installing 64-bit Flash Player for Chrome...", true); + ExtractArchive("flash_pp_64.zip", flash64Path); + registryToApply.Add(Properties.Resources.installPP64); + } + if (installNP) { + form.UpdateProgressLabel("Installing 64-bit Flash Player for Firefox...", true); + ExtractArchive("flash_np_64.zip", flash64Path); + registryToApply.Add(Properties.Resources.installNP64); + } + if (installOCX) { + form.UpdateProgressLabel("Installing 64-bit Flash Player for Internet Explorer...", true); + ExtractArchive("flash_ocx_64.zip", flash64Path); + registryToApply.Add(Properties.Resources.installOCX64); + } + } + + form.UpdateProgressLabel("Applying registry changes...", true); + RegistryManager.ApplyRegistry(registryToApply); + + if (installOCX) { + form.UpdateProgressLabel("Activating 32-bit Flash Player for Internet Explorer...", true); + RegisterActiveX(Path.Combine(flash32Path, string.Format("Flash_{0}.ocx", SystemInfo.GetVersionPath()))); + + if (Environment.Is64BitOperatingSystem) { + form.UpdateProgressLabel("Activating 64-bit Flash Player for Internet Explorer...", true); + RegisterActiveX(Path.Combine(flash64Path, string.Format("Flash_{0}.ocx", SystemInfo.GetVersionPath()))); + } + } + } + } +} \ No newline at end of file diff --git a/CleanFlashInstaller/Program.cs b/CleanFlashInstaller/Program.cs new file mode 100644 index 0000000..fd502e9 --- /dev/null +++ b/CleanFlashInstaller/Program.cs @@ -0,0 +1,16 @@ +using System; +using System.Windows.Forms; + +namespace CleanFlashInstaller { + static class Program { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new InstallForm()); + } + } +} diff --git a/CleanFlashInstaller/Properties/AssemblyInfo.cs b/CleanFlashInstaller/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c2c2645 --- /dev/null +++ b/CleanFlashInstaller/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Clean Flash Player 34.0.0.155 Installer")] +[assembly: AssemblyDescription("The newest version of Flash Player, patched and ready to go beyond 2021.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("FlashPatch Team")] +[assembly: AssemblyProduct("Clean Flash Player 34.0.0.155 Installer")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("317b6619-2419-4778-95a2-1a97dc55ab83")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("34.0.0.155")] +[assembly: AssemblyFileVersion("34.0.0.155")] diff --git a/CleanFlashInstaller/Properties/Resources.Designer.cs b/CleanFlashInstaller/Properties/Resources.Designer.cs new file mode 100644 index 0000000..f8e9d50 --- /dev/null +++ b/CleanFlashInstaller/Properties/Resources.Designer.cs @@ -0,0 +1,238 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CleanFlashInstaller.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CleanFlashInstaller.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap flashLogo { + get { + object obj = ResourceManager.GetObject("flashLogo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] + ///"${SYSTEM_32_PATH}\\FlashPlayerCPLApp.cpl"=dword:0000000a + /// + ///[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerApp.exe] + ///"DisableExceptionChainValidation"=dword:00000000 + /// + ///[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Clean Flash Player] + ///"DisplayName"="Clean Flash Player ${VERSION}" + ///"HelpLink"="https [rest of string was truncated]";. + /// + internal static string installGeneral { + get { + return ResourceManager.GetString("installGeneral", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] + ///"${SYSTEM_32_PATH}\\FlashPlayerCPLApp.cpl"=dword:0000000a + /// + ///[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerApp.exe] + ///"DisableExceptionChainValidation"=dword:00000000. + /// + internal static string installGeneral64 { + get { + return ResourceManager.GetString("installGeneral64", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPlugin] + ///"isPartner"=dword:00000001 + ///"Version"="${VERSION}" + ///"PlayerPath"="${FLASH_64_PATH}\\NPSWF_${VERSION_PATH}.dll" + ///"UninstallerPath"=- + ///"isScriptDebugger"=dword:00000000 + ///"isESR"=dword:00000000 + ///"isMSI"=dword:00000000 + /// + ///[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPluginReleaseType] + ///"Release"=dword:00000001 + /// + ///[HKEY_LOCAL_MACHINE\Software\MozillaPlugins\@adobe.com/FlashPlayer] + ///"Vendor"="Adobe" + ///"ProductName"="Adobe® Flash® Player ${VERSION} P [rest of string was truncated]";. + /// + internal static string installNP { + get { + return ResourceManager.GetString("installNP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPlugin] + ///"PlayerPath"="${FLASH_32_PATH}\\NPSWF_${VERSION_PATH}.dll" + ///"Version"="${VERSION}" + ///"UninstallerPath"=- + ///"isScriptDebugger"=dword:00000000 + ///"isESR"=dword:00000000 + ///"isMSI"=dword:00000000 + ///"isPartner"=dword:00000001 + /// + ///[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPluginReleaseType] + ///"Release"=dword:00000001 + /// + ///[HKEY_LOCAL_MACHINE\Software\Wow6432Node\MozillaPlugins\@adobe.com/FlashPlayer] + ///"ProductName"="Adobe® Flash® P [rest of string was truncated]";. + /// + internal static string installNP64 { + get { + return ResourceManager.GetString("installNP64", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Classes\.mfp] + ///"Content Type"="application/x-shockwave-flash" + ///@="MacromediaFlashPaper.MacromediaFlashPaper" + /// + ///[HKEY_LOCAL_MACHINE\Software\Classes\.sol] + ///"Content Type"="text/plain" + /// + ///[HKEY_LOCAL_MACHINE\Software\Classes\.sor] + ///"Content Type"="text/plain" + /// + ///[HKEY_LOCAL_MACHINE\Software\Classes\.spl] + ///"Content Type"="application/futuresplash" + ///@="ShockwaveFlash.ShockwaveFlash" + /// + ///[HKEY_LOCAL_MACHINE\Software\Classes\.swf] + ///"Content Type"="application/x-shockwave-flash" + ///@="Sh [rest of string was truncated]";. + /// + internal static string installOCX { + get { + return ResourceManager.GetString("installOCX", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayer] + ///"CurrentVersion"="${VERSION_COMMA}" + /// + ///[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayer\SafeVersions] + ///"28.0"=dword:ffffffff + ///"27.0"=dword:ffffffff + ///"26.0"=dword:ffffffff + ///"21.0"=dword:ffffffff + ///"24.0"=dword:ffffffff + ///"7.0"=dword:ffffffff + ///"6.0"=dword:ffffffff + ///"30.0"=dword:ffffffff + ///"29.0"=dword:ffffffff + ///"31.0"=dword:ffffffff + ///"32.0"=dword:ffffffff + ///"8.0"=dword:ffffffff + ///"11.0"=dword:ffffffff + ///"10.0"=dword:ffffffff + ///"13.0"=dw [rest of string was truncated]";. + /// + internal static string installOCX64 { + get { + return ResourceManager.GetString("installOCX64", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPepper] + ///"UninstallerPath"=- + ///"PlayerPath"="${FLASH_64_PATH}\\pepflashplayer_${VERSION_PATH}.dll" + ///"isScriptDebugger"=dword:00000000 + ///"isESR"=dword:00000000 + ///"isMSI"=dword:00000000 + ///"isPartner"=dword:00000001 + ///"Version"="${VERSION}" + /// + ///[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPepperReleaseType] + ///"Release"=dword:00000001. + /// + internal static string installPP { + get { + return ResourceManager.GetString("installPP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPepper] + ///"UninstallerPath"=- + ///"PlayerPath"="${FLASH_32_PATH}\\pepflashplayer_${VERSION_PATH}.dll" + ///"isScriptDebugger"=dword:00000000 + ///"isESR"=dword:00000000 + ///"isMSI"=dword:00000000 + ///"isPartner"=dword:00000001 + ///"Version"="${VERSION}" + /// + ///[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPepperReleaseType] + ///"Release"=dword:00000001. + /// + internal static string installPP64 { + get { + return ResourceManager.GetString("installPP64", resourceCulture); + } + } + } +} diff --git a/CleanFlashInstaller/Properties/Resources.resx b/CleanFlashInstaller/Properties/Resources.resx new file mode 100644 index 0000000..830fc4c --- /dev/null +++ b/CleanFlashInstaller/Properties/Resources.resx @@ -0,0 +1,358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\..\CleanFlashCommon\flashLogo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] +"${SYSTEM_32_PATH}\\FlashPlayerCPLApp.cpl"=dword:0000000a + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerApp.exe] +"DisableExceptionChainValidation"=dword:00000000 + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Clean Flash Player] +"DisplayName"="Clean Flash Player ${VERSION}" +"HelpLink"="https://cleanflash.github.io" +"NoModify"=dword:00000001 +"NoRepair"=dword:00000001 +"URLInfoAbout"="https://cleanflash.github.io" +"URLUpdateInfo"="https://cleanflash.github.io" +"VersionMajor"=dword:00000022 +"VersionMinor"=dword:00000000 +"Publisher"="CleanFlash Team" +"EstimatedSize"=dword:00011cb8 +"DisplayIcon"="${FLASH_32_PATH}\\FlashUtil_Uninstall.exe" +"UninstallString"="${FLASH_32_PATH}\\FlashUtil_Uninstall.exe" +"DisplayVersion"="${VERSION}" + + + [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category] +"${SYSTEM_32_PATH}\\FlashPlayerCPLApp.cpl"=dword:0000000a + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerApp.exe] +"DisableExceptionChainValidation"=dword:00000000 + + + [HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPlugin] +"isPartner"=dword:00000001 +"Version"="${VERSION}" +"PlayerPath"="${FLASH_64_PATH}\\NPSWF_${VERSION_PATH}.dll" +"UninstallerPath"=- +"isScriptDebugger"=dword:00000000 +"isESR"=dword:00000000 +"isMSI"=dword:00000000 + +[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPluginReleaseType] +"Release"=dword:00000001 + +[HKEY_LOCAL_MACHINE\Software\MozillaPlugins\@adobe.com/FlashPlayer] +"Vendor"="Adobe" +"ProductName"="Adobe® Flash® Player ${VERSION} Plugin" +"Path"="${FLASH_64_PATH}\\NPSWF_${VERSION_PATH}.dll" +"Version"="${VERSION}" +"Description"="Adobe® Flash® Player ${VERSION} Plugin" + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerPlugin_${VERSION_PATH}.exe] +"DisableExceptionChainValidation"=dword:00000000 + + + [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPlugin] +"PlayerPath"="${FLASH_32_PATH}\\NPSWF_${VERSION_PATH}.dll" +"Version"="${VERSION}" +"UninstallerPath"=- +"isScriptDebugger"=dword:00000000 +"isESR"=dword:00000000 +"isMSI"=dword:00000000 +"isPartner"=dword:00000001 + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPluginReleaseType] +"Release"=dword:00000001 + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\MozillaPlugins\@adobe.com/FlashPlayer] +"ProductName"="Adobe® Flash® Player ${VERSION} Plugin" +"Description"="Adobe® Flash® Player ${VERSION} Plugin" +"Version"="${VERSION}" +"XPTPath"="${FLASH_32_PATH}\\flashplayer.xpt" +"Vendor"="Adobe" +"Path"="${FLASH_32_PATH}\\NPSWF_${VERSION_PATH}.dll" + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\FlashPlayerPlugin_${VERSION_PATH}.exe] +"DisableExceptionChainValidation"=dword:00000000 + + + [HKEY_LOCAL_MACHINE\Software\Classes\.mfp] +"Content Type"="application/x-shockwave-flash" +@="MacromediaFlashPaper.MacromediaFlashPaper" + +[HKEY_LOCAL_MACHINE\Software\Classes\.sol] +"Content Type"="text/plain" + +[HKEY_LOCAL_MACHINE\Software\Classes\.sor] +"Content Type"="text/plain" + +[HKEY_LOCAL_MACHINE\Software\Classes\.spl] +"Content Type"="application/futuresplash" +@="ShockwaveFlash.ShockwaveFlash" + +[HKEY_LOCAL_MACHINE\Software\Classes\.swf] +"Content Type"="application/x-shockwave-flash" +@="ShockwaveFlash.ShockwaveFlash" + +[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayer] +"CurrentVersion"="${VERSION_COMMA}" + +[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayer\SafeVersions] +"20.0"=dword:ffffffff +"21.0"=dword:ffffffff +"22.0"=dword:ffffffff +"23.0"=dword:ffffffff +"24.0"=dword:ffffffff +"25.0"=dword:ffffffff +"26.0"=dword:ffffffff +"27.0"=dword:ffffffff +"28.0"=dword:ffffffff +"19.0"=dword:ffffffff +"30.0"=dword:ffffffff +"31.0"=dword:ffffffff +"32.0"=dword:ffffffff +"33.0"=dword:ffffffff +"34.0"=dword:00000089 +"16.0"=dword:ffffffff +"13.0"=dword:ffffffff +"15.0"=dword:ffffffff +"14.0"=dword:ffffffff +"18.0"=dword:ffffffff +"29.0"=dword:ffffffff +"17.0"=dword:ffffffff +"6.0"=dword:ffffffff +"8.0"=dword:ffffffff +"9.0"=dword:ffffffff +"10.0"=dword:ffffffff +"11.0"=dword:ffffffff +"12.0"=dword:ffffffff +"7.0"=dword:ffffffff + +[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerActiveX] +"Version"="${VERSION}" +"PlayerPath"="${FLASH_64_PATH}\\Flash_${VERSION_PATH}.ocx" +"UninstallerPath"=- +"isScriptDebugger"=dword:00000000 +"isMSI"=dword:00000000 +"isPartner"=dword:00000001 +"isESR"=dword:00000000 + +[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerActiveXReleaseType] +"Release"=dword:00000001 + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}] +"Compatibility Flags"=dword:00000000 + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB70-AE6D-11cf-96B8-444553540000}] +"Compatibility Flags"=dword:00010000 + +[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash] +"application/futuresplash"="" +"application/x-shockwave-flash"="" + + + [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayer] +"CurrentVersion"="${VERSION_COMMA}" + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayer\SafeVersions] +"28.0"=dword:ffffffff +"27.0"=dword:ffffffff +"26.0"=dword:ffffffff +"21.0"=dword:ffffffff +"24.0"=dword:ffffffff +"7.0"=dword:ffffffff +"6.0"=dword:ffffffff +"30.0"=dword:ffffffff +"29.0"=dword:ffffffff +"31.0"=dword:ffffffff +"32.0"=dword:ffffffff +"8.0"=dword:ffffffff +"11.0"=dword:ffffffff +"10.0"=dword:ffffffff +"13.0"=dword:ffffffff +"12.0"=dword:ffffffff +"15.0"=dword:ffffffff +"14.0"=dword:ffffffff +"17.0"=dword:ffffffff +"16.0"=dword:ffffffff +"19.0"=dword:ffffffff +"18.0"=dword:ffffffff +"25.0"=dword:ffffffff +"20.0"=dword:ffffffff +"22.0"=dword:ffffffff +"34.0"=dword:00000089 +"23.0"=dword:ffffffff +"33.0"=dword:ffffffff +"9.0"=dword:ffffffff + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerActiveX] +"isMSI"=dword:00000000 +"isESR"=dword:00000000 +"isScriptDebugger"=dword:00000000 +"UninstallerPath"=- +"PlayerPath"="${FLASH_32_PATH}\\Flash_${VERSION_PATH}.ocx" +"Version"="${VERSION}" +"isPartner"=dword:00000001 + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerActiveXReleaseType] +"Release"=dword:00000001 + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB6E-AE6D-11CF-96B8-444553540000}] +"Compatibility Flags"=dword:00000000 + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\ActiveX Compatibility\{D27CDB70-AE6D-11cf-96B8-444553540000}] +"Compatibility Flags"=dword:00010000 + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Internet Explorer\NavigatorPluginsList\Shockwave Flash] +"application/x-shockwave-flash"="" +"application/futuresplash"="" + + + [HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPepper] +"UninstallerPath"=- +"PlayerPath"="${FLASH_64_PATH}\\pepflashplayer_${VERSION_PATH}.dll" +"isScriptDebugger"=dword:00000000 +"isESR"=dword:00000000 +"isMSI"=dword:00000000 +"isPartner"=dword:00000001 +"Version"="${VERSION}" + +[HKEY_LOCAL_MACHINE\Software\Macromedia\FlashPlayerPepperReleaseType] +"Release"=dword:00000001 + + + [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPepper] +"UninstallerPath"=- +"PlayerPath"="${FLASH_32_PATH}\\pepflashplayer_${VERSION_PATH}.dll" +"isScriptDebugger"=dword:00000000 +"isESR"=dword:00000000 +"isMSI"=dword:00000000 +"isPartner"=dword:00000001 +"Version"="${VERSION}" + +[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Macromedia\FlashPlayerPepperReleaseType] +"Release"=dword:00000001 + + diff --git a/CleanFlashInstaller/Properties/Settings.Designer.cs b/CleanFlashInstaller/Properties/Settings.Designer.cs new file mode 100644 index 0000000..f0aa8b4 --- /dev/null +++ b/CleanFlashInstaller/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CleanFlashInstaller.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/CleanFlashInstaller/Properties/Settings.settings b/CleanFlashInstaller/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/CleanFlashInstaller/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/CleanFlashInstaller/app.manifest b/CleanFlashInstaller/app.manifest new file mode 100644 index 0000000..5f57907 --- /dev/null +++ b/CleanFlashInstaller/app.manifest @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/CleanFlashInstaller/packages.config b/CleanFlashInstaller/packages.config new file mode 100644 index 0000000..9ffa146 --- /dev/null +++ b/CleanFlashInstaller/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CleanFlashUninstaller/CleanFlashUninstaller.csproj b/CleanFlashUninstaller/CleanFlashUninstaller.csproj new file mode 100644 index 0000000..a752d83 --- /dev/null +++ b/CleanFlashUninstaller/CleanFlashUninstaller.csproj @@ -0,0 +1,118 @@ + + + + + + + Debug + AnyCPU + {E193EEA6-BE73-4E34-BEB0-E13AC8D30C5C} + WinExe + CleanFlashUninstaller + CleanFlashUninstaller + v4.0 + 512 + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + icon.ico + + + app.manifest + + + CleanFlashUninstaller.Program + + + + + + + + + + + + + + + + Form + + + UninstallForm.cs + + + + + UninstallForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {d00f629b-455a-42de-b2fa-a3759a3095ae} + CleanFlashCommon + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + diff --git a/CleanFlashUninstaller/ILMerge.props b/CleanFlashUninstaller/ILMerge.props new file mode 100644 index 0000000..aaadb12 --- /dev/null +++ b/CleanFlashUninstaller/ILMerge.props @@ -0,0 +1,67 @@ + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CleanFlashUninstaller/ILMergeOrder.txt b/CleanFlashUninstaller/ILMergeOrder.txt new file mode 100644 index 0000000..3fda7f5 --- /dev/null +++ b/CleanFlashUninstaller/ILMergeOrder.txt @@ -0,0 +1,4 @@ +# this file contains the partial list of the merged assemblies in the merge order +# you can fill it from the obj\CONFIG\PROJECT.ilmerge generated on every build +# and finetune merge order to your satisfaction + diff --git a/CleanFlashUninstaller/Program.cs b/CleanFlashUninstaller/Program.cs new file mode 100644 index 0000000..4a1d126 --- /dev/null +++ b/CleanFlashUninstaller/Program.cs @@ -0,0 +1,82 @@ +using System; +using System.Diagnostics; +using System.Windows.Forms; +using System.IO; +using System.Runtime.InteropServices; + +namespace CleanFlashUninstaller { + static class Program { + [Flags] + internal enum MoveFileFlags { + None = 0, + ReplaceExisting = 1, + CopyAllowed = 2, + DelayUntilReboot = 4, + WriteThrough = 8, + CreateHardlink = 16, + FailIfNotTrackable = 32, + } + + [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)] + static extern bool MoveFileEx( + string lpExistingFileName, + string lpNewFileName, + MoveFileFlags dwFlags); + + static bool DeleteOnReboot(string filename) { + return MoveFileEx(filename, null, MoveFileFlags.DelayUntilReboot); + } + + static string TrimPath(string path) { + return path.TrimEnd(new[] { '/', '\\' }); + } + + static bool EnsureRunInTemp() { + string tempFolder = TrimPath(Path.GetTempPath()); + string currentPath = Application.ExecutablePath; + string currentFolder = TrimPath(Path.GetDirectoryName(currentPath)); + + if (currentFolder.Equals(tempFolder, StringComparison.OrdinalIgnoreCase)) { + // Already running in the temp directory. + return true; + } + + string currentExeName = Path.GetFileName(currentPath); + string newPath = Path.Combine(tempFolder, currentExeName); + + if (File.Exists(newPath)) { + try { + // Attempt to delete the old version of the uninstaller. + File.Delete(newPath); + } catch { + // Uninstaller is already running. + Application.Exit(); + return false; + } + } + + // Copy the new file and mark it as delete-on-reboot + File.Copy(currentPath, newPath); + DeleteOnReboot(newPath); + + // Start the new process and end the old one + Process.Start(newPath); + Application.Exit(); + return false; + } + + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() { + if (!EnsureRunInTemp()) { + return; + } + + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new UninstallForm()); + } + } +} diff --git a/CleanFlashUninstaller/Properties/AssemblyInfo.cs b/CleanFlashUninstaller/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7365197 --- /dev/null +++ b/CleanFlashUninstaller/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Clean Flash Player 34.0.0.155 Uninstaller")] +[assembly: AssemblyDescription("The newest version of Flash Player, patched and ready to go beyond 2021.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("FlashPatch Team")] +[assembly: AssemblyProduct("Clean Flash Player 34.0.0.155 Uninstaller")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e193eea6-be73-4e34-beb0-e13ac8d30c5c")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("34.0.0.155")] +[assembly: AssemblyFileVersion("34.0.0.155")] diff --git a/CleanFlashUninstaller/Properties/Resources.Designer.cs b/CleanFlashUninstaller/Properties/Resources.Designer.cs new file mode 100644 index 0000000..75870f6 --- /dev/null +++ b/CleanFlashUninstaller/Properties/Resources.Designer.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CleanFlashUninstaller.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CleanFlashUninstaller.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap flashLogo { + get { + object obj = ResourceManager.GetObject("flashLogo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/CleanFlashUninstaller/Properties/Resources.resx b/CleanFlashUninstaller/Properties/Resources.resx new file mode 100644 index 0000000..7f3aec2 --- /dev/null +++ b/CleanFlashUninstaller/Properties/Resources.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\..\CleanFlashCommon\flashLogo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + diff --git a/CleanFlashUninstaller/Properties/Settings.Designer.cs b/CleanFlashUninstaller/Properties/Settings.Designer.cs new file mode 100644 index 0000000..606820f --- /dev/null +++ b/CleanFlashUninstaller/Properties/Settings.Designer.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + + +namespace CleanFlashUninstaller.Properties { + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/CleanFlashUninstaller/Properties/Settings.settings b/CleanFlashUninstaller/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/CleanFlashUninstaller/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/CleanFlashUninstaller/Resources/flashLogo.png b/CleanFlashUninstaller/Resources/flashLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..4e0f28225b4f107cc507c43ea1e507685a021479 GIT binary patch literal 1409 zcmV-{1%CR8P)Px#1ZP1_K>z@;j|==^1poj6l2A-kMF2W`~3X? zJa>1PxcB+{7f*-C)#5vAo9*)URDGuU`}|shs{Q@_PkN*&U6J_u{0BsU;OOt*=kAWF z#2{9S1wwuRJ9V_u~+d78Su&feqd@iS$YM|7dM%G(xBhJv8J>hJVf zfvL*Z;OG_13`WhOoU{Lu%Wom>+tk2Vw7@}wx_(&&DrJF;OWub=m9@` zb(Xio(%~anj?>=gPI;rS!_{4dtO!JZ=Irv<;p)82-kh|{e4M*cd!-*$izg>1BO@ar zAt5LzC?zE&D=RCt2Gyeg000SaNLh0L01m?d01m?e$8V@)000AcNklwpX}%@5@95sy)4MB$W0L0hmhS7{odO7vG(&CA-f<||AV?Bl zZQuR_(5ZqjNnGF32MeM*)d^^ z43Xx};{Gl(j{naNz> zd*&LVjp5DY^;8i`f;@t1==YZFg^$(5{Z6q_fVMv zTO?@CWP!RAcfp=Wv}dv#g-NhShE{L)BQB4tU{fTzzD=So4K_*8n#s}NZN?(Ps_6A* zEkOo6KwKT2nH+=)SVmYGt^0t&3S_`T#5GXwZD0{9U|#KF+=oVQR^UQQkVQfV)tOAz z5C0?aKh;EeCLce6h)eOUzM86Ut4|@~@eCOqls+euV|hr_c>Y4XEevG6SuYC1vkK2d#KS(;qwU@WM7Qzc#D;<9Tc0VtPJ*Eci P00000NkvXXu0mjf5Zc9p literal 0 HcmV?d00001 diff --git a/CleanFlashUninstaller/UninstallForm.Designer.cs b/CleanFlashUninstaller/UninstallForm.Designer.cs new file mode 100644 index 0000000..cebc39b --- /dev/null +++ b/CleanFlashUninstaller/UninstallForm.Designer.cs @@ -0,0 +1,322 @@ + +namespace CleanFlashUninstaller { + partial class UninstallForm { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) { + if (disposing && (components != null)) { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UninstallForm)); + this.separator = new System.Windows.Forms.Label(); + this.checkboxImages = new System.Windows.Forms.ImageList(this.components); + this.flashLogo = new System.Windows.Forms.PictureBox(); + this.titleLabel = new System.Windows.Forms.Label(); + this.subtitleLabel = new System.Windows.Forms.Label(); + this.installPanel = new System.Windows.Forms.Panel(); + this.progressBar = new CleanFlashCommon.SmoothProgressBar(); + this.progressLabel = new System.Windows.Forms.Label(); + this.uninstallProgressLabel = new System.Windows.Forms.Label(); + this.beforeInstallPanel = new System.Windows.Forms.Panel(); + this.beforeInstallLabel = new System.Windows.Forms.Label(); + this.completePanel = new System.Windows.Forms.Panel(); + this.completeLabel = new System.Windows.Forms.LinkLabel(); + this.failurePanel = new System.Windows.Forms.Panel(); + this.copyErrorButton = new CleanFlashCommon.GradientButton(); + this.failureBox = new System.Windows.Forms.TextBox(); + this.failureText = new System.Windows.Forms.Label(); + this.nextButton = new CleanFlashCommon.GradientButton(); + this.prevButton = new CleanFlashCommon.GradientButton(); + ((System.ComponentModel.ISupportInitialize)(this.flashLogo)).BeginInit(); + this.installPanel.SuspendLayout(); + this.beforeInstallPanel.SuspendLayout(); + this.completePanel.SuspendLayout(); + this.failurePanel.SuspendLayout(); + this.SuspendLayout(); + // + // separator + // + this.separator.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.separator.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; + this.separator.Location = new System.Drawing.Point(0, 270); + this.separator.Name = "separator"; + this.separator.Size = new System.Drawing.Size(732, 1); + this.separator.TabIndex = 1; + // + // checkboxImages + // + this.checkboxImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("checkboxImages.ImageStream"))); + this.checkboxImages.TransparentColor = System.Drawing.Color.Transparent; + this.checkboxImages.Images.SetKeyName(0, "checkboxOff.png"); + this.checkboxImages.Images.SetKeyName(1, "checkboxOn.png"); + // + // flashLogo + // + this.flashLogo.Image = global::CleanFlashUninstaller.Properties.Resources.flashLogo; + this.flashLogo.Location = new System.Drawing.Point(90, 36); + this.flashLogo.Margin = new System.Windows.Forms.Padding(0); + this.flashLogo.Name = "flashLogo"; + this.flashLogo.Size = new System.Drawing.Size(109, 107); + this.flashLogo.TabIndex = 4; + this.flashLogo.TabStop = false; + // + // titleLabel + // + this.titleLabel.AutoSize = true; + this.titleLabel.Font = new System.Drawing.Font("Segoe UI", 24F); + this.titleLabel.Location = new System.Drawing.Point(233, 54); + this.titleLabel.Name = "titleLabel"; + this.titleLabel.Size = new System.Drawing.Size(274, 45); + this.titleLabel.TabIndex = 5; + this.titleLabel.Text = "Clean Flash Player"; + // + // subtitleLabel + // + this.subtitleLabel.AutoSize = true; + this.subtitleLabel.Font = new System.Drawing.Font("Segoe UI", 13F); + this.subtitleLabel.Location = new System.Drawing.Point(280, 99); + this.subtitleLabel.Name = "subtitleLabel"; + this.subtitleLabel.Size = new System.Drawing.Size(231, 25); + this.subtitleLabel.TabIndex = 6; + this.subtitleLabel.Text = "built from unknown version"; + // + // installPanel + // + this.installPanel.Controls.Add(this.progressBar); + this.installPanel.Controls.Add(this.progressLabel); + this.installPanel.Controls.Add(this.uninstallProgressLabel); + this.installPanel.Location = new System.Drawing.Point(90, 162); + this.installPanel.Name = "installPanel"; + this.installPanel.Size = new System.Drawing.Size(545, 105); + this.installPanel.TabIndex = 10; + // + // progressBar + // + this.progressBar.Location = new System.Drawing.Point(49, 58); + this.progressBar.Maximum = 100; + this.progressBar.Minimum = 0; + this.progressBar.Name = "progressBar"; + this.progressBar.ProgressBarColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(97)))), ((int)(((byte)(147)))), ((int)(((byte)(232))))); + this.progressBar.ProgressBarColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(99)))), ((int)(((byte)(232))))); + this.progressBar.Size = new System.Drawing.Size(451, 23); + this.progressBar.TabIndex = 2; + this.progressBar.Value = 0; + // + // progressLabel + // + this.progressLabel.AutoSize = true; + this.progressLabel.Location = new System.Drawing.Point(46, 30); + this.progressLabel.Name = "progressLabel"; + this.progressLabel.Size = new System.Drawing.Size(74, 17); + this.progressLabel.TabIndex = 1; + this.progressLabel.Text = "Preparing..."; + // + // uninstallProgressLabel + // + this.uninstallProgressLabel.AutoSize = true; + this.uninstallProgressLabel.Location = new System.Drawing.Point(3, 0); + this.uninstallProgressLabel.Name = "uninstallProgressLabel"; + this.uninstallProgressLabel.Size = new System.Drawing.Size(166, 17); + this.uninstallProgressLabel.TabIndex = 0; + this.uninstallProgressLabel.Text = "Uninstallation in progress..."; + // + // beforeInstallPanel + // + this.beforeInstallPanel.Controls.Add(this.beforeInstallLabel); + this.beforeInstallPanel.Location = new System.Drawing.Point(90, 162); + this.beforeInstallPanel.Name = "beforeInstallPanel"; + this.beforeInstallPanel.Size = new System.Drawing.Size(545, 105); + this.beforeInstallPanel.TabIndex = 11; + // + // beforeInstallLabel + // + this.beforeInstallLabel.AutoSize = true; + this.beforeInstallLabel.Location = new System.Drawing.Point(3, 2); + this.beforeInstallLabel.Name = "beforeInstallLabel"; + this.beforeInstallLabel.Size = new System.Drawing.Size(532, 85); + this.beforeInstallLabel.TabIndex = 12; + this.beforeInstallLabel.Text = resources.GetString("beforeInstallLabel.Text"); + // + // completePanel + // + this.completePanel.Controls.Add(this.completeLabel); + this.completePanel.Location = new System.Drawing.Point(90, 162); + this.completePanel.Name = "completePanel"; + this.completePanel.Size = new System.Drawing.Size(545, 105); + this.completePanel.TabIndex = 12; + // + // completeLabel + // + this.completeLabel.AutoSize = true; + this.completeLabel.LinkArea = new System.Windows.Forms.LinkArea(0, 0); + this.completeLabel.LinkColor = System.Drawing.Color.White; + this.completeLabel.Location = new System.Drawing.Point(0, 0); + this.completeLabel.Name = "completeLabel"; + this.completeLabel.Size = new System.Drawing.Size(409, 68); + this.completeLabel.TabIndex = 0; + this.completeLabel.Text = "\r\nAll versions of Flash Player have been successfully uninstalled.\r\n\r\nIf you ever" + + " change your mind, check out Clean Flash Player\'s website!"; + this.completeLabel.VisitedLinkColor = System.Drawing.Color.White; + this.completeLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.completeLabel_LinkClicked); + // + // failurePanel + // + this.failurePanel.Controls.Add(this.copyErrorButton); + this.failurePanel.Controls.Add(this.failureBox); + this.failurePanel.Controls.Add(this.failureText); + this.failurePanel.Location = new System.Drawing.Point(90, 162); + this.failurePanel.Name = "failurePanel"; + this.failurePanel.Size = new System.Drawing.Size(545, 105); + this.failurePanel.TabIndex = 13; + // + // copyErrorButton + // + this.copyErrorButton.BackColor = System.Drawing.Color.Black; + this.copyErrorButton.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118))))); + this.copyErrorButton.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81))))); + this.copyErrorButton.DisableAlpha = 0.644D; + this.copyErrorButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.copyErrorButton.ForeColor = System.Drawing.SystemColors.Control; + this.copyErrorButton.HoverAlpha = 0.875D; + this.copyErrorButton.Location = new System.Drawing.Point(441, 58); + this.copyErrorButton.Name = "copyErrorButton"; + this.copyErrorButton.Size = new System.Drawing.Size(104, 31); + this.copyErrorButton.TabIndex = 14; + this.copyErrorButton.Text = "COPY"; + this.copyErrorButton.UseVisualStyleBackColor = false; + this.copyErrorButton.Click += new System.EventHandler(this.copyErrorButton_Click); + // + // failureBox + // + this.failureBox.Location = new System.Drawing.Point(4, 44); + this.failureBox.Multiline = true; + this.failureBox.Name = "failureBox"; + this.failureBox.ReadOnly = true; + this.failureBox.Size = new System.Drawing.Size(431, 58); + this.failureBox.TabIndex = 15; + // + // failureText + // + this.failureText.AutoSize = true; + this.failureText.Location = new System.Drawing.Point(3, 2); + this.failureText.Name = "failureText"; + this.failureText.Size = new System.Drawing.Size(432, 34); + this.failureText.TabIndex = 14; + this.failureText.Text = "Oops! The installation process has encountered an unexpected problem.\r\nThe follow" + + "ing details could be useful. Press the Retry button to try again."; + // + // nextButton + // + this.nextButton.BackColor = System.Drawing.Color.Black; + this.nextButton.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118))))); + this.nextButton.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81))))); + this.nextButton.DisableAlpha = 0.644D; + this.nextButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.nextButton.ForeColor = System.Drawing.SystemColors.Control; + this.nextButton.HoverAlpha = 0.875D; + this.nextButton.Location = new System.Drawing.Point(497, 286); + this.nextButton.Name = "nextButton"; + this.nextButton.Size = new System.Drawing.Size(138, 31); + this.nextButton.TabIndex = 7; + this.nextButton.Text = "UNINSTALL"; + this.nextButton.UseVisualStyleBackColor = false; + this.nextButton.Click += new System.EventHandler(this.nextButton_Click); + // + // prevButton + // + this.prevButton.BackColor = System.Drawing.Color.Black; + this.prevButton.Color1 = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118))))); + this.prevButton.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81))))); + this.prevButton.DisableAlpha = 0.644D; + this.prevButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.prevButton.ForeColor = System.Drawing.SystemColors.Control; + this.prevButton.HoverAlpha = 0.875D; + this.prevButton.Location = new System.Drawing.Point(90, 286); + this.prevButton.Name = "prevButton"; + this.prevButton.Size = new System.Drawing.Size(138, 31); + this.prevButton.TabIndex = 3; + this.prevButton.Text = "QUIT"; + this.prevButton.UseVisualStyleBackColor = false; + this.prevButton.Click += new System.EventHandler(this.prevButton_Click); + // + // UninstallForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(51)))), ((int)(((byte)(51))))); + this.ClientSize = new System.Drawing.Size(712, 329); + this.Controls.Add(this.nextButton); + this.Controls.Add(this.subtitleLabel); + this.Controls.Add(this.titleLabel); + this.Controls.Add(this.flashLogo); + this.Controls.Add(this.prevButton); + this.Controls.Add(this.separator); + this.Controls.Add(this.beforeInstallPanel); + this.Controls.Add(this.installPanel); + this.Controls.Add(this.failurePanel); + this.Controls.Add(this.completePanel); + this.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ForeColor = System.Drawing.SystemColors.ControlLightLight; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(4); + this.MaximizeBox = false; + this.Name = "UninstallForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Clean Flash Player Dev Uninstaller"; + this.Load += new System.EventHandler(this.UninstallForm_Load); + ((System.ComponentModel.ISupportInitialize)(this.flashLogo)).EndInit(); + this.installPanel.ResumeLayout(false); + this.installPanel.PerformLayout(); + this.beforeInstallPanel.ResumeLayout(false); + this.beforeInstallPanel.PerformLayout(); + this.completePanel.ResumeLayout(false); + this.completePanel.PerformLayout(); + this.failurePanel.ResumeLayout(false); + this.failurePanel.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.Label separator; + private System.Windows.Forms.ImageList checkboxImages; + private CleanFlashCommon.GradientButton prevButton; + private System.Windows.Forms.PictureBox flashLogo; + private System.Windows.Forms.Label titleLabel; + private System.Windows.Forms.Label subtitleLabel; + private CleanFlashCommon.GradientButton nextButton; + private System.Windows.Forms.Panel installPanel; + private CleanFlashCommon.SmoothProgressBar progressBar; + private System.Windows.Forms.Label progressLabel; + private System.Windows.Forms.Label uninstallProgressLabel; + private System.Windows.Forms.Panel beforeInstallPanel; + private System.Windows.Forms.Label beforeInstallLabel; + private System.Windows.Forms.Panel completePanel; + private System.Windows.Forms.LinkLabel completeLabel; + private System.Windows.Forms.Panel failurePanel; + private System.Windows.Forms.TextBox failureBox; + private System.Windows.Forms.Label failureText; + private CleanFlashCommon.GradientButton copyErrorButton; + } +} + diff --git a/CleanFlashUninstaller/UninstallForm.cs b/CleanFlashUninstaller/UninstallForm.cs new file mode 100644 index 0000000..9423728 --- /dev/null +++ b/CleanFlashUninstaller/UninstallForm.cs @@ -0,0 +1,129 @@ +using CleanFlashCommon; +using System; +using System.Diagnostics; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CleanFlashUninstaller { + public partial class UninstallForm : Form, IProgressForm { + private static int UNINSTALL_TICKS = 9; + + public UninstallForm() { + InitializeComponent(); + } + + private void HideAllPanels() { + beforeInstallPanel.Visible = false; + installPanel.Visible = false; + completePanel.Visible = false; + failurePanel.Visible = false; + } + + private void OpenBeforeInstall() { + HideAllPanels(); + beforeInstallPanel.Visible = true; + prevButton.Enabled = true; + nextButton.Text = "UNINSTALL"; + } + + private void OpenInstall() { + HideAllPanels(); + installPanel.Visible = true; + prevButton.Enabled = false; + nextButton.Visible = false; + BeginInstall(); + } + + private void OpenComplete() { + HideAllPanels(); + completePanel.Visible = true; + prevButton.Enabled = true; + + completeLabel.Links.Clear(); + completeLabel.Links.Add(new LinkLabel.Link(110, 28)); + } + + private void OpenFailure(Exception e) { + HideAllPanels(); + failurePanel.Visible = true; + prevButton.Enabled = true; + nextButton.Text = "RETRY"; + nextButton.Visible = true; + failureBox.Text = e.ToString(); + } + + private void BeginInstall() { + progressBar.Value = 0; + progressBar.Maximum = UNINSTALL_TICKS; + + new Task(new Action(() => { + IntPtr redirection = RedirectionManager.DisableRedirection(); + + try { + Uninstaller.Uninstall(this); + Complete(); + } catch (Exception e) { + Failure(e); + } finally { + RedirectionManager.EnableRedirection(redirection); + } + })).Start(); + } + + private void UninstallForm_Load(object sender, EventArgs e) { + string version = UpdateChecker.GetFlashVersion(); + + subtitleLabel.Text = string.Format("built from version {0} (China)", version); + Text = string.Format("Clean Flash Player {0} Uninstaller", version); + + OpenBeforeInstall(); + } + + private void prevButton_Click(object sender, EventArgs e) { + Application.Exit(); + } + + private void nextButton_Click(object sender, EventArgs e) { + if (beforeInstallPanel.Visible || failurePanel.Visible) { + OpenInstall(); + } + } + + public void UpdateProgressLabel(string text, bool tick) { + Invoke(new Action(() => { + progressLabel.Text = text; + + if (tick) { + progressBar.Value++; + } + })); + } + + public void TickProgress() { + Invoke(new Action(() => { + progressBar.Value++; + })); + } + + public void Complete() { + Invoke(new Action(OpenComplete)); + } + + public void Failure(Exception e) { + Invoke(new Action(() => OpenFailure(e))); + } + + private void completeLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { + if (e.Link.Start == 212) { + Process.Start("https://www.basilisk-browser.org"); + } else { + Process.Start("https://cleanflash.github.io"); + } + } + + private void copyErrorButton_Click(object sender, EventArgs e) { + Clipboard.SetText(failureBox.Text); + MessageBox.Show("Copied error message to clipboard!", "Clean Flash Installer", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + } +} diff --git a/CleanFlashUninstaller/UninstallForm.resx b/CleanFlashUninstaller/UninstallForm.resx new file mode 100644 index 0000000..0ea7ff6 --- /dev/null +++ b/CleanFlashUninstaller/UninstallForm.resx @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF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8BmQEAAv8BzAEAAmYB/wEAAWYB/wFmAQABZgL/AQAB/wJmAQAB/wFmAf8BAAL/ + AWYBAAEhAQABpQEAA18BAAN3AQADhgEAA5YBAAPLAQADsgEAA9cBAAPdAQAD4wEAA+oBAAPxAQAD+AEA + AfAB+wH/AQABpAKgAQADgAMAAf8CAAH/AwAC/wEAAf8DAAH/AQAB/wEAAv8CAAP/AQAOEwHqDhMB6h4A + AUMBDwsQAQ8BEwFDAQ8LEAEPARMeAAFDAQ8BFAkTARQBEAETAUMBDwsSARABEx4AAUMBEAISBxMCEgEQ + ARMBQwEQC+oBEAETHgABQwEQCxIBEAETAUMBEAJtA+oBEgETARIB6gFtAeoBEAETHgABQwEQAuoHEgHq + ARIBEAETAUMBEANtAeoCEgFtAuoCbQEQARMeAAFDARAL6gEQARMBQwEQA20BEgHqAewB7wHsAeoCbQEQ + ARMeAAFDARABbQjqAm0BEAETAUMBEAJtARIB6gHtAQcB8AEHAewCbQEQARMeAAFDARACbQfqAm0BEAET + AUMBEAHrAm0B7QEHArwB8AHvAesB6gEQARMeAAFDARALbQEQARMBQwEQAuwB7QIHAvcCvAH3AeoBEAET + HgABQwEQC20BEAETAUMBEAfsAe8CvAHsAREBEx4AAUMBEAttARABEwFDARAH7AHtAe8B8AEHAW0BEx4A + AUMBEAttARABEwFDARAI7AHtAQcB8AEHAW0eAAFDAQ8LEAEPARMBQwEPCRABEwHvAfABBx4ADkMBEw5D + ARMeAAFCAU0BPgcAAT4DAAEoAwABPAMAAQ8DAAEBAQABAQUAAXgXAAP/eQAL + + + + You are about to uninstall Clean Flash Player. +Please close all browsers, including Google Chrome, Mozilla Firefox and Internet Explorer. + +The installer will completely remove all versions of Flash Player from this computer, +including Clean Flash Player and older versions of Adobe Flash Player. + + + + + + AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAA/////////////////////8AAAAPAAAADgAAAAYAAAAGAAAABgAAAAYAA + AAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAAAAGAAAABgAAAAYAA + AAHAAAAD4AAAB/AAAA/4AAAf//////////8= + + + \ No newline at end of file diff --git a/CleanFlashUninstaller/app.manifest b/CleanFlashUninstaller/app.manifest new file mode 100644 index 0000000..834d19d --- /dev/null +++ b/CleanFlashUninstaller/app.manifest @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/CleanFlashUninstaller/packages.config b/CleanFlashUninstaller/packages.config new file mode 100644 index 0000000..1bc7f33 --- /dev/null +++ b/CleanFlashUninstaller/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..51c1c63 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# Clean Flash Player + +[![Patreon](https://img.shields.io/badge/Kofi-donate-purple.svg)](https://ko-fi.com/disyer) [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/darktohka/FlashPatch/blob/master/LICENSE) + +![Image of Clean Flash Player](https://i.imgur.com/1JID6nk.png) + +[Download latest version](https://github.com/CleanFlash/installer/releases/latest) + +## What's this? + +Clean Flash Player is a distribution of Adobe Flash Player, with the mission of keeping the original Flash Player alive for compatibility and ease of use. + +The original Flash Player was discontinued on January 12th, 2021. Adobe is committed to keeping Flash Player alive in the Chinese region, however, by providing official monthly updates to Flash Player in China. + +Clean Flash Player uses a modified version of this updated Flash Player version, keeping Flash Player clean from adware. + +Google Chrome, Mozilla Firefox and Internet Explorer browser plugins are supported. Clean Flash Player does not currently ship with a standalone Flash Player. + +## Browser compatibility + +Newer versions of Google Chrome and Mozilla Firefox do not support Flash Player anymore. + +To keep using Flash Player on **Google Chrome**, install an older version of Chrome. The last supported version is Chrome 87.0.4280.168. + +To keep using Flash Player on **Mozilla Firefox**, install [**Basilisk Browser**](https://basilisk-browser.org), a fork of Mozilla Firefox with built-in Flash Player support. + +**Internet Explorer** still supports Flash Player on Windows. + +## Usage + +- Make sure you have a compatible browser to use Flash Player with +- Download the latest version from [GitHub](https://github.com/CleanFlash/installer/releases/latest) +- Extract the installer and run it +- Accept the disclaimer +- Choose which browser plugins to install +- Close all browser windows, or let the installer close them for you +- Press the "Install" button and wait for Flash Player to install +- Enjoy using Flash Player in the browser! + +**P.S.** The Clean Flash Player installer will automatically close all browser windows when updating Flash Player. It will also uninstall all previous versions of Flash Player, as well as the adware Flash Center application. The installer will also create an uninstaller that you can use to uninstall Clean Flash at any time. + +## Future updates + +We are exploring the option of shipping a standalone Flash Player version with the Clean Flash Player installer. \ No newline at end of file