Compare commits

..
8 Commits
Author SHA1 Message Date
Disyer 95e2af1055 etnerprise 2024-02-01 00:18:13 +02:00
Disyer 7f5fcbc371 msbu 2024-02-01 00:12:51 +02:00
Disyer e6b3069320 windows 2024-02-01 00:02:22 +02:00
Disyer ac1c5ce9f8 ok 2024-02-01 00:01:27 +02:00
Disyer 6b7fe572fd test 2024-01-31 23:58:44 +02:00
darktohka 2ebc6b9a41 cleanflash: Update to 34.0.0.301 2023-09-04 19:27:04 +03:00
darktohka 93aa977a47 uninstaller: Unregister any ActiveX plugin uninstalled 2023-08-30 17:50:11 +03:00
darktohka 6f68332a30 cleanflash: Update to 34.0.0.295 2023-08-30 17:49:59 +03:00
12 changed files with 57 additions and 82 deletions
+18
View File
@@ -0,0 +1,18 @@
stages:
- build
variables:
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe'
MSBUILD_TARGET: 'CleanFlashInstaller/CleanFlashInstaller.csproj'
build:
stage: build
script:
- '& nuget restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" "$env:MSBUILD_TARGET" /p:Configuration=Release'
artifacts:
paths:
- 'CleanFlashInstaller/bin/Release/*.exe'
expire_in: never
tags:
- windows
+1 -1
View File
@@ -21,7 +21,7 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2"> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.3">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
+4
View File
@@ -51,6 +51,10 @@ namespace CleanFlashCommon {
return; return;
} }
if (file.Extension.ToLower().Equals(".ocx")) {
Uninstaller.UnregisterActiveX(file.FullName);
}
try { try {
file.IsReadOnly = false; file.IsReadOnly = false;
file.Delete(); file.Delete();
+18
View File
@@ -27,6 +27,24 @@ namespace CleanFlashCommon {
WinAPI.AllowModifications(); WinAPI.AllowModifications();
} }
public static void UnregisterActiveX(string filename) {
string relativeFilename = Path.GetFileName(filename);
ProcessStartInfo info = new ProcessStartInfo {
FileName = "regsvr32.exe",
UseShellExecute = false,
CreateNoWindow = true
};
Directory.SetCurrentDirectory(Path.GetDirectoryName(filename));
info.Arguments = "/s /u " + relativeFilename;
ExitedProcess process = ProcessUtils.RunProcess(info);
if (!process.IsSuccessful) {
throw new InstallException(string.Format("Failed to unregister ActiveX plugin: error code {0}\n\n{1}", process.ExitCode, process.Output));
}
}
public static void UninstallRegistry() { public static void UninstallRegistry() {
if (Environment.Is64BitOperatingSystem) { if (Environment.Is64BitOperatingSystem) {
RegistryManager.ApplyRegistry(Properties.Resources.uninstallRegistry, Properties.Resources.uninstallRegistry64); RegistryManager.ApplyRegistry(Properties.Resources.uninstallRegistry, Properties.Resources.uninstallRegistry64);
+3 -3
View File
@@ -32,11 +32,11 @@ namespace CleanFlashCommon {
} }
public class UpdateChecker { public class UpdateChecker {
private static readonly string FLASH_VERSION = "34.0.0.289"; private static readonly string FLASH_VERSION = "34.0.0.301";
private static readonly string VERSION = "34.0.0.289"; private static readonly string VERSION = "34.0.0.301";
private static readonly string AUTHOR = "cleanflash"; private static readonly string AUTHOR = "cleanflash";
private static readonly string REPO = "installer"; 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/114.0.0.0 Safari/537.36"; private static readonly string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36";
public static string GetAPILink() { public static string GetAPILink() {
return "https://api.github.com/repos/" + AUTHOR + "/" + REPO + "/releases/latest"; return "https://api.github.com/repos/" + AUTHOR + "/" + REPO + "/releases/latest";
@@ -7,11 +7,11 @@
<TargetFramework>net40</TargetFramework> <TargetFramework>net40</TargetFramework>
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
<StartupObject></StartupObject> <StartupObject></StartupObject>
<Product>Clean Flash Player 34.0.0.289 Installer</Product> <Product>Clean Flash Player 34.0.0.301 Installer</Product>
<AssemblyTitle>Clean Flash Player 34.0.0.289 Installer</AssemblyTitle> <AssemblyTitle>Clean Flash Player 34.0.0.301 Installer</AssemblyTitle>
<FileVersion>34.0.0.289</FileVersion> <FileVersion>34.0.0.301</FileVersion>
<AssemblyVersion>34.0.0.289</AssemblyVersion> <AssemblyVersion>34.0.0.301</AssemblyVersion>
<Version>34.0.0.289</Version> <Version>34.0.0.301</Version>
<Authors>FlashPatch Team</Authors> <Authors>FlashPatch Team</Authors>
<Company>FlashPatch Team</Company> <Company>FlashPatch Team</Company>
<ApplicationIcon>icon.ico</ApplicationIcon> <ApplicationIcon>icon.ico</ApplicationIcon>
@@ -48,10 +48,11 @@
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Reference Include="CleanFlashCommon" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.18.2" /> <PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.18.2" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2"> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.3">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
-2
View File
@@ -374,7 +374,6 @@ namespace CleanFlashInstaller {
this.prevButton.Name = "prevButton"; this.prevButton.Name = "prevButton";
this.prevButton.Size = new System.Drawing.Size(138, 31); this.prevButton.Size = new System.Drawing.Size(138, 31);
this.prevButton.TabIndex = 3; this.prevButton.TabIndex = 3;
this.prevButton.TabStop = false;
this.prevButton.Text = "QUIT"; this.prevButton.Text = "QUIT";
this.prevButton.UseVisualStyleBackColor = false; this.prevButton.UseVisualStyleBackColor = false;
this.prevButton.Click += new System.EventHandler(this.prevButton_Click); this.prevButton.Click += new System.EventHandler(this.prevButton_Click);
@@ -621,7 +620,6 @@ namespace CleanFlashInstaller {
this.Name = "InstallForm"; this.Name = "InstallForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Clean Flash Player Dev Installer"; this.Text = "Clean Flash Player Dev Installer";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.InstallForm_FormClosing);
this.Load += new System.EventHandler(this.InstallForm_Load); this.Load += new System.EventHandler(this.InstallForm_Load);
((System.ComponentModel.ISupportInitialize)(this.flashLogo)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.flashLogo)).EndInit();
this.disclaimerPanel.ResumeLayout(false); this.disclaimerPanel.ResumeLayout(false);
-30
View File
@@ -293,35 +293,5 @@ If you ever change your mind, check out Clean Flash Player's website!";
debugChosen = MessageBox.Show("Are you sure you want to install the debug version?\n\nThis version is only meant to be used by experienced developers!\nIf you are not sure, choose No.", "Clean Flash Installer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes; debugChosen = MessageBox.Show("Are you sure you want to install the debug version?\n\nThis version is only meant to be used by experienced developers!\nIf you are not sure, choose No.", "Clean Flash Installer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes;
OpenBeforeInstall(); OpenBeforeInstall();
} }
private void InstallForm_FormClosing(object sender, FormClosingEventArgs e)
{
bool v1 = true;
// if installing
// note: msgbox not pauses the process
if (installPanel.Visible)
{
if (v1)
{
// hardlock, only force quit process
// follows current design since Back button is disabled
MessageBox.Show("Please, wait until process end", "Clean Flash Installer", MessageBoxButtons.OK, MessageBoxIcon.Warning);
e.Cancel = true;
}
else
// soft alternative, expert mode, todo: better warning of consequences
if (MessageBox.Show("Are you sure you want to interrupt the process ?", "Clean Flash Installer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
e.Cancel = true;
}
else
{
// use cases ?
// uninstall, currently not implemented
}
//todo: same for uninstaller: share same F
}
}
} }
} }
@@ -10,11 +10,11 @@
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
<ApplicationIcon>icon.ico</ApplicationIcon> <ApplicationIcon>icon.ico</ApplicationIcon>
<StartupObject></StartupObject> <StartupObject></StartupObject>
<Product>Clean Flash Player 34.0.0.289 Uninstaller</Product> <Product>Clean Flash Player 34.0.0.301 Uninstaller</Product>
<AssemblyTitle>Clean Flash Player 34.0.0.289 Uninstaller</AssemblyTitle> <AssemblyTitle>Clean Flash Player 34.0.0.301 Uninstaller</AssemblyTitle>
<FileVersion>34.0.0.289</FileVersion> <FileVersion>34.0.0.301</FileVersion>
<AssemblyVersion>34.0.0.289</AssemblyVersion> <AssemblyVersion>34.0.0.301</AssemblyVersion>
<Version>34.0.0.289</Version> <Version>34.0.0.301</Version>
<Authors>FlashPatch Team</Authors> <Authors>FlashPatch Team</Authors>
<Company>FlashPatch Team</Company> <Company>FlashPatch Team</Company>
</PropertyGroup> </PropertyGroup>
@@ -35,7 +35,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.18.2" /> <PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.18.2" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.2"> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net40" Version="1.0.3">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
-2
View File
@@ -41,7 +41,6 @@ namespace CleanFlashUninstaller {
this.completeLabel = new System.Windows.Forms.LinkLabel(); this.completeLabel = new System.Windows.Forms.LinkLabel();
this.failurePanel = new System.Windows.Forms.Panel(); this.failurePanel = new System.Windows.Forms.Panel();
this.copyErrorButton = new CleanFlashCommon.GradientButton(); this.copyErrorButton = new CleanFlashCommon.GradientButton();
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.InstallForm_FormClosing);
this.failureBox = new System.Windows.Forms.TextBox(); this.failureBox = new System.Windows.Forms.TextBox();
this.failureText = new System.Windows.Forms.Label(); this.failureText = new System.Windows.Forms.Label();
this.nextButton = new CleanFlashCommon.GradientButton(); this.nextButton = new CleanFlashCommon.GradientButton();
@@ -243,7 +242,6 @@ namespace CleanFlashUninstaller {
// //
// prevButton // prevButton
// //
prevButton.TabStop = false;
this.prevButton.BackColor = System.Drawing.Color.Black; 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.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.Color2 = System.Drawing.Color.FromArgb(((int)(((byte)(81)))), ((int)(((byte)(81)))), ((int)(((byte)(81)))));
-31
View File
@@ -121,36 +121,5 @@ namespace CleanFlashUninstaller {
Clipboard.SetText(failureBox.Text); Clipboard.SetText(failureBox.Text);
MessageBox.Show("Copied error message to clipboard!", "Clean Flash Installer", MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show("Copied error message to clipboard!", "Clean Flash Installer", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }
// note: copy pasted from installer; todo: single F for both
private void InstallForm_FormClosing(object sender, FormClosingEventArgs e)
{
bool v1 = true;
// if installing
// note: msgbox not pauses the process
if (installPanel.Visible)
{
if (v1)
{
// hardlock, only force quit process
// follows current design since Back button is disabled
MessageBox.Show("Please, wait until process end", "Clean Flash Installer", MessageBoxButtons.OK, MessageBoxIcon.Warning);
e.Cancel = true;
}
else
// soft alternative, expert mode, todo: better warning of consequences
if (MessageBox.Show("Are you sure you want to interrupt the process ?", "Clean Flash Installer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
{
e.Cancel = true;
}
else
{
// use cases ?
// uninstall, currently not implemented
}
//todo: same for uninstaller: share same F
}
}
} }
} }
-1
View File
@@ -36,7 +36,6 @@ To keep using Flash Player on **Mozilla Firefox**, install [**Waterfox Classic**
- [Otter Browser](https://otter-browser.org) - [Otter Browser](https://otter-browser.org)
- [roytam's XP-compatible browser builds](http://rtfreesoft.blogspot.com) - [roytam's XP-compatible browser builds](http://rtfreesoft.blogspot.com)
- [Portable old browser versions (guide)](https://www.raymond.cc/blog/how-to-enable-flash-support-in-firefox-portable) - [Portable old browser versions (guide)](https://www.raymond.cc/blog/how-to-enable-flash-support-in-firefox-portable)
- [Mypal 29.3.0](https://www.mypal-browser.org/download.html)
</details> </details>