mirror of
https://gitlab.com/cleanflash/installer.git
synced 2026-08-13 02:41:38 +08:00
Compare commits
4
Commits
34.0.0.282
...
34.0.0.301
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ebc6b9a41 | ||
|
|
93aa977a47 | ||
|
|
6f68332a30 | ||
|
|
1a655714d2 |
@@ -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>
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ namespace CleanFlashCommon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class UpdateChecker {
|
public class UpdateChecker {
|
||||||
private static readonly string FLASH_VERSION = "34.0.0.282";
|
private static readonly string FLASH_VERSION = "34.0.0.301";
|
||||||
private static readonly string VERSION = "34.0.0.282";
|
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/110.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.282 Installer</Product>
|
<Product>Clean Flash Player 34.0.0.301 Installer</Product>
|
||||||
<AssemblyTitle>Clean Flash Player 34.0.0.282 Installer</AssemblyTitle>
|
<AssemblyTitle>Clean Flash Player 34.0.0.301 Installer</AssemblyTitle>
|
||||||
<FileVersion>34.0.0.282</FileVersion>
|
<FileVersion>34.0.0.301</FileVersion>
|
||||||
<AssemblyVersion>34.0.0.282</AssemblyVersion>
|
<AssemblyVersion>34.0.0.301</AssemblyVersion>
|
||||||
<Version>34.0.0.282</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>
|
||||||
@@ -52,7 +52,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>
|
||||||
|
|||||||
@@ -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.282 Uninstaller</Product>
|
<Product>Clean Flash Player 34.0.0.301 Uninstaller</Product>
|
||||||
<AssemblyTitle>Clean Flash Player 34.0.0.282 Uninstaller</AssemblyTitle>
|
<AssemblyTitle>Clean Flash Player 34.0.0.301 Uninstaller</AssemblyTitle>
|
||||||
<FileVersion>34.0.0.282</FileVersion>
|
<FileVersion>34.0.0.301</FileVersion>
|
||||||
<AssemblyVersion>34.0.0.282</AssemblyVersion>
|
<AssemblyVersion>34.0.0.301</AssemblyVersion>
|
||||||
<Version>34.0.0.282</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user