mirror of
https://github.com/theitaliandeveloper/Perfect11.git
synced 2025-12-06 17:12:04 +00:00
Compare commits
12 Commits
v1.0-beta.
...
09b00a5f85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09b00a5f85 | ||
|
|
3601baea19 | ||
| 47cff5e7f6 | |||
| 393ef60c82 | |||
| c27646dfa0 | |||
| 8f851ef9fe | |||
| e762247a2a | |||
| 3493a61317 | |||
| d74f0ed94b | |||
| 0cbd073d9e | |||
| c03146f094 | |||
| 71a925e002 |
@@ -15,6 +15,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.DisableAds"
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.Spotlight", "tweaks\Perfect11.Inbox.Spotlight\Perfect11.Inbox.Spotlight.csproj", "{77376E26-3164-4ED7-9F85-02B3AEBFC751}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.Spotlight", "tweaks\Perfect11.Inbox.Spotlight\Perfect11.Inbox.Spotlight.csproj", "{77376E26-3164-4ED7-9F85-02B3AEBFC751}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.RemoveWindowsAI", "tweaks\Perfect11.Inbox.RemoveWindowsAI\Perfect11.Inbox.RemoveWindowsAI.csproj", "{BC3A0BBD-E076-426E-88C9-C36E1F6D3326}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.Widgets", "tweaks\Perfect11.Inbox.Widgets\Perfect11.Inbox.Widgets.csproj", "{F77922A2-B913-400E-8789-4867FD1BB351}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.UninstallEdge", "tweaks\Perfect11.Inbox.UninstallEdge\Perfect11.Inbox.UninstallEdge.csproj", "{A33DF785-C123-48E2-B21E-A229FC8FFB55}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perfect11.Inbox.DisableVBS", "tweaks\Perfect11.Inbox.DisableVBS\Perfect11.Inbox.DisableVBS.csproj", "{998241DA-25C9-4CB6-B893-7158A387C030}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -45,6 +53,22 @@ Global
|
|||||||
{77376E26-3164-4ED7-9F85-02B3AEBFC751}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{77376E26-3164-4ED7-9F85-02B3AEBFC751}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{77376E26-3164-4ED7-9F85-02B3AEBFC751}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{77376E26-3164-4ED7-9F85-02B3AEBFC751}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{77376E26-3164-4ED7-9F85-02B3AEBFC751}.Release|Any CPU.Build.0 = Release|Any CPU
|
{77376E26-3164-4ED7-9F85-02B3AEBFC751}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{BC3A0BBD-E076-426E-88C9-C36E1F6D3326}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{BC3A0BBD-E076-426E-88C9-C36E1F6D3326}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{BC3A0BBD-E076-426E-88C9-C36E1F6D3326}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{BC3A0BBD-E076-426E-88C9-C36E1F6D3326}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{F77922A2-B913-400E-8789-4867FD1BB351}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F77922A2-B913-400E-8789-4867FD1BB351}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F77922A2-B913-400E-8789-4867FD1BB351}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{F77922A2-B913-400E-8789-4867FD1BB351}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{A33DF785-C123-48E2-B21E-A229FC8FFB55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{A33DF785-C123-48E2-B21E-A229FC8FFB55}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{A33DF785-C123-48E2-B21E-A229FC8FFB55}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{A33DF785-C123-48E2-B21E-A229FC8FFB55}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{998241DA-25C9-4CB6-B893-7158A387C030}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{998241DA-25C9-4CB6-B893-7158A387C030}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{998241DA-25C9-4CB6-B893-7158A387C030}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{998241DA-25C9-4CB6-B893-7158A387C030}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||||
</startup>
|
</startup>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="lzo.net" publicKeyToken="7c3b11b873e0cbca" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-0.0.6.0" newVersion="0.0.6.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
256
Perfect11/Form1.Designer.cs
generated
256
Perfect11/Form1.Designer.cs
generated
@@ -30,13 +30,25 @@
|
|||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||||
this.theme = new ReaLTaiizor.Forms.FormTheme();
|
this.theme = new ReaLTaiizor.Forms.FormTheme();
|
||||||
|
this.githubLink = new ReaLTaiizor.Controls.PoisonLinkLabel();
|
||||||
this.controlBoxEdit1 = new ReaLTaiizor.Controls.ControlBoxEdit();
|
this.controlBoxEdit1 = new ReaLTaiizor.Controls.ControlBoxEdit();
|
||||||
this.pages = new ReaLTaiizor.Controls.PoisonTabControl();
|
this.pages = new ReaLTaiizor.Controls.PoisonTabControl();
|
||||||
this.welcomePage = new ReaLTaiizor.Controls.PoisonTabPage();
|
this.welcomePage = new ReaLTaiizor.Controls.PoisonTabPage();
|
||||||
this.editionLabel = new ReaLTaiizor.Controls.PoisonLabel();
|
|
||||||
this.poisonLabel2 = new ReaLTaiizor.Controls.PoisonLabel();
|
this.poisonLabel2 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
this.poisonLabel1 = new ReaLTaiizor.Controls.PoisonLabel();
|
this.poisonLabel1 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
|
this.upgradePage = new ReaLTaiizor.Controls.PoisonTabPage();
|
||||||
|
this.statusLabel = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
|
this.installProgress = new ReaLTaiizor.Controls.PoisonProgressBar();
|
||||||
|
this.poisonLabel6 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
|
this.poisonLabel7 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
|
this.upgradeButton = new ReaLTaiizor.Controls.PoisonButton();
|
||||||
|
this.automateOOBECheck = new ReaLTaiizor.Controls.PoisonCheckBox();
|
||||||
|
this.bypassWin11RequirementsCheck = new ReaLTaiizor.Controls.PoisonCheckBox();
|
||||||
|
this.poisonLabel5 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
|
this.upgradeMethod = new ReaLTaiizor.Controls.PoisonComboBox();
|
||||||
|
this.poisonLabel3 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
|
this.poisonLabel4 = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
this.debloatPage = new ReaLTaiizor.Controls.PoisonTabPage();
|
this.debloatPage = new ReaLTaiizor.Controls.PoisonTabPage();
|
||||||
this.BtnRunUninstaller = new ReaLTaiizor.Controls.PoisonButton();
|
this.BtnRunUninstaller = new ReaLTaiizor.Controls.PoisonButton();
|
||||||
this.LblRemoveCount = new ReaLTaiizor.Controls.PoisonLabel();
|
this.LblRemoveCount = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
@@ -51,11 +63,12 @@
|
|||||||
this.tweaksPage = new ReaLTaiizor.Controls.PoisonTabPage();
|
this.tweaksPage = new ReaLTaiizor.Controls.PoisonTabPage();
|
||||||
this.runTweaks = new ReaLTaiizor.Controls.PoisonButton();
|
this.runTweaks = new ReaLTaiizor.Controls.PoisonButton();
|
||||||
this.tweaksList = new ReaLTaiizor.Controls.PoisonListView();
|
this.tweaksList = new ReaLTaiizor.Controls.PoisonListView();
|
||||||
this.githubLink = new ReaLTaiizor.Controls.PoisonLinkLabel();
|
this.editionLabel = new ReaLTaiizor.Controls.PoisonLabel();
|
||||||
this.theme.SuspendLayout();
|
this.theme.SuspendLayout();
|
||||||
this.pages.SuspendLayout();
|
this.pages.SuspendLayout();
|
||||||
this.welcomePage.SuspendLayout();
|
this.welcomePage.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.upgradePage.SuspendLayout();
|
||||||
this.debloatPage.SuspendLayout();
|
this.debloatPage.SuspendLayout();
|
||||||
this.tweaksPage.SuspendLayout();
|
this.tweaksPage.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
@@ -80,6 +93,21 @@
|
|||||||
this.theme.TabIndex = 0;
|
this.theme.TabIndex = 0;
|
||||||
this.theme.Text = "Perfect11";
|
this.theme.Text = "Perfect11";
|
||||||
//
|
//
|
||||||
|
// githubLink
|
||||||
|
//
|
||||||
|
this.githubLink.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.githubLink.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.githubLink.Location = new System.Drawing.Point(1275, 762);
|
||||||
|
this.githubLink.Name = "githubLink";
|
||||||
|
this.githubLink.Size = new System.Drawing.Size(48, 26);
|
||||||
|
this.githubLink.TabIndex = 5;
|
||||||
|
this.githubLink.Text = "GitHub";
|
||||||
|
this.githubLink.UseCustomBackColor = true;
|
||||||
|
this.githubLink.UseCustomForeColor = true;
|
||||||
|
this.githubLink.UseSelectable = true;
|
||||||
|
this.githubLink.UseStyleColors = true;
|
||||||
|
this.githubLink.Click += new System.EventHandler(this.githubLink_Click);
|
||||||
|
//
|
||||||
// controlBoxEdit1
|
// controlBoxEdit1
|
||||||
//
|
//
|
||||||
this.controlBoxEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.controlBoxEdit1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
@@ -95,6 +123,7 @@
|
|||||||
// pages
|
// pages
|
||||||
//
|
//
|
||||||
this.pages.Controls.Add(this.welcomePage);
|
this.pages.Controls.Add(this.welcomePage);
|
||||||
|
this.pages.Controls.Add(this.upgradePage);
|
||||||
this.pages.Controls.Add(this.debloatPage);
|
this.pages.Controls.Add(this.debloatPage);
|
||||||
this.pages.Controls.Add(this.tweaksPage);
|
this.pages.Controls.Add(this.tweaksPage);
|
||||||
this.pages.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.pages.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@@ -104,6 +133,7 @@
|
|||||||
this.pages.Size = new System.Drawing.Size(1323, 732);
|
this.pages.Size = new System.Drawing.Size(1323, 732);
|
||||||
this.pages.TabIndex = 1;
|
this.pages.TabIndex = 1;
|
||||||
this.pages.UseSelectable = true;
|
this.pages.UseSelectable = true;
|
||||||
|
this.pages.SelectedIndexChanged += new System.EventHandler(this.pages_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// welcomePage
|
// welcomePage
|
||||||
//
|
//
|
||||||
@@ -124,22 +154,14 @@
|
|||||||
this.welcomePage.VerticalScrollbarHighlightOnWheel = false;
|
this.welcomePage.VerticalScrollbarHighlightOnWheel = false;
|
||||||
this.welcomePage.VerticalScrollbarSize = 51;
|
this.welcomePage.VerticalScrollbarSize = 51;
|
||||||
//
|
//
|
||||||
// editionLabel
|
|
||||||
//
|
|
||||||
this.editionLabel.AutoSize = true;
|
|
||||||
this.editionLabel.BackColor = System.Drawing.Color.Transparent;
|
|
||||||
this.editionLabel.Location = new System.Drawing.Point(12, 763);
|
|
||||||
this.editionLabel.Name = "editionLabel";
|
|
||||||
this.editionLabel.Size = new System.Drawing.Size(175, 19);
|
|
||||||
this.editionLabel.TabIndex = 4;
|
|
||||||
this.editionLabel.Text = "Perfect11 Community Edition";
|
|
||||||
this.editionLabel.UseCustomBackColor = true;
|
|
||||||
//
|
|
||||||
// poisonLabel2
|
// poisonLabel2
|
||||||
//
|
//
|
||||||
|
this.poisonLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.poisonLabel2.AutoSize = true;
|
this.poisonLabel2.AutoSize = true;
|
||||||
this.poisonLabel2.BackColor = System.Drawing.Color.Transparent;
|
this.poisonLabel2.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.poisonLabel2.Location = new System.Drawing.Point(416, 379);
|
this.poisonLabel2.Location = new System.Drawing.Point(422, 362);
|
||||||
this.poisonLabel2.Name = "poisonLabel2";
|
this.poisonLabel2.Name = "poisonLabel2";
|
||||||
this.poisonLabel2.Size = new System.Drawing.Size(459, 38);
|
this.poisonLabel2.Size = new System.Drawing.Size(459, 38);
|
||||||
this.poisonLabel2.TabIndex = 3;
|
this.poisonLabel2.TabIndex = 3;
|
||||||
@@ -147,11 +169,12 @@
|
|||||||
"stalls apps, remove bloatware, tweak the system and even more.";
|
"stalls apps, remove bloatware, tweak the system and even more.";
|
||||||
this.poisonLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
this.poisonLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
this.poisonLabel2.UseCustomBackColor = true;
|
this.poisonLabel2.UseCustomBackColor = true;
|
||||||
|
this.poisonLabel2.UseCustomForeColor = true;
|
||||||
//
|
//
|
||||||
// pictureBox1
|
// pictureBox1
|
||||||
//
|
//
|
||||||
this.pictureBox1.Image = global::Perfect11.Properties.Resources.win11logo;
|
this.pictureBox1.Image = global::Perfect11.Properties.Resources.win11logo;
|
||||||
this.pictureBox1.Location = new System.Drawing.Point(559, 156);
|
this.pictureBox1.Location = new System.Drawing.Point(563, 152);
|
||||||
this.pictureBox1.Name = "pictureBox1";
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
this.pictureBox1.Size = new System.Drawing.Size(163, 160);
|
this.pictureBox1.Size = new System.Drawing.Size(163, 160);
|
||||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||||
@@ -160,16 +183,178 @@
|
|||||||
//
|
//
|
||||||
// poisonLabel1
|
// poisonLabel1
|
||||||
//
|
//
|
||||||
|
this.poisonLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.poisonLabel1.AutoSize = true;
|
this.poisonLabel1.AutoSize = true;
|
||||||
this.poisonLabel1.BackColor = System.Drawing.Color.Transparent;
|
this.poisonLabel1.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.poisonLabel1.FontSize = ReaLTaiizor.Extension.Poison.PoisonLabelSize.Tall;
|
this.poisonLabel1.FontSize = ReaLTaiizor.Extension.Poison.PoisonLabelSize.Tall;
|
||||||
this.poisonLabel1.Location = new System.Drawing.Point(374, 336);
|
this.poisonLabel1.Location = new System.Drawing.Point(384, 326);
|
||||||
this.poisonLabel1.Name = "poisonLabel1";
|
this.poisonLabel1.Name = "poisonLabel1";
|
||||||
this.poisonLabel1.Size = new System.Drawing.Size(533, 25);
|
this.poisonLabel1.Size = new System.Drawing.Size(533, 25);
|
||||||
this.poisonLabel1.TabIndex = 2;
|
this.poisonLabel1.TabIndex = 2;
|
||||||
this.poisonLabel1.Text = "Welcome to Perfect11, the tool that makes Windows 11 almost perfect.";
|
this.poisonLabel1.Text = "Welcome to Perfect11, the tool that makes Windows 11 almost perfect.";
|
||||||
this.poisonLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
this.poisonLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
this.poisonLabel1.UseCustomBackColor = true;
|
this.poisonLabel1.UseCustomBackColor = true;
|
||||||
|
this.poisonLabel1.UseCustomForeColor = true;
|
||||||
|
//
|
||||||
|
// upgradePage
|
||||||
|
//
|
||||||
|
this.upgradePage.Controls.Add(this.statusLabel);
|
||||||
|
this.upgradePage.Controls.Add(this.installProgress);
|
||||||
|
this.upgradePage.Controls.Add(this.poisonLabel6);
|
||||||
|
this.upgradePage.Controls.Add(this.poisonLabel7);
|
||||||
|
this.upgradePage.Controls.Add(this.upgradeButton);
|
||||||
|
this.upgradePage.Controls.Add(this.automateOOBECheck);
|
||||||
|
this.upgradePage.Controls.Add(this.bypassWin11RequirementsCheck);
|
||||||
|
this.upgradePage.Controls.Add(this.poisonLabel5);
|
||||||
|
this.upgradePage.Controls.Add(this.upgradeMethod);
|
||||||
|
this.upgradePage.Controls.Add(this.poisonLabel3);
|
||||||
|
this.upgradePage.Controls.Add(this.poisonLabel4);
|
||||||
|
this.upgradePage.HorizontalScrollbarBarColor = true;
|
||||||
|
this.upgradePage.HorizontalScrollbarHighlightOnWheel = false;
|
||||||
|
this.upgradePage.HorizontalScrollbarSize = 10;
|
||||||
|
this.upgradePage.Location = new System.Drawing.Point(4, 38);
|
||||||
|
this.upgradePage.Name = "upgradePage";
|
||||||
|
this.upgradePage.Size = new System.Drawing.Size(1315, 690);
|
||||||
|
this.upgradePage.TabIndex = 3;
|
||||||
|
this.upgradePage.Text = "Upgrade";
|
||||||
|
this.upgradePage.VerticalScrollbarBarColor = true;
|
||||||
|
this.upgradePage.VerticalScrollbarHighlightOnWheel = false;
|
||||||
|
this.upgradePage.VerticalScrollbarSize = 10;
|
||||||
|
//
|
||||||
|
// statusLabel
|
||||||
|
//
|
||||||
|
this.statusLabel.AutoSize = true;
|
||||||
|
this.statusLabel.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.statusLabel.Location = new System.Drawing.Point(516, 638);
|
||||||
|
this.statusLabel.Name = "statusLabel";
|
||||||
|
this.statusLabel.Size = new System.Drawing.Size(48, 19);
|
||||||
|
this.statusLabel.TabIndex = 14;
|
||||||
|
this.statusLabel.Text = "$status";
|
||||||
|
this.statusLabel.UseCustomBackColor = true;
|
||||||
|
//
|
||||||
|
// installProgress
|
||||||
|
//
|
||||||
|
this.installProgress.Location = new System.Drawing.Point(5, 660);
|
||||||
|
this.installProgress.Name = "installProgress";
|
||||||
|
this.installProgress.Size = new System.Drawing.Size(1045, 27);
|
||||||
|
this.installProgress.TabIndex = 13;
|
||||||
|
//
|
||||||
|
// poisonLabel6
|
||||||
|
//
|
||||||
|
this.poisonLabel6.AutoSize = true;
|
||||||
|
this.poisonLabel6.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.poisonLabel6.Location = new System.Drawing.Point(5, 247);
|
||||||
|
this.poisonLabel6.Name = "poisonLabel6";
|
||||||
|
this.poisonLabel6.Size = new System.Drawing.Size(436, 114);
|
||||||
|
this.poisonLabel6.TabIndex = 12;
|
||||||
|
this.poisonLabel6.Text = resources.GetString("poisonLabel6.Text");
|
||||||
|
this.poisonLabel6.UseCustomBackColor = true;
|
||||||
|
//
|
||||||
|
// poisonLabel7
|
||||||
|
//
|
||||||
|
this.poisonLabel7.AutoSize = true;
|
||||||
|
this.poisonLabel7.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.poisonLabel7.FontSize = ReaLTaiizor.Extension.Poison.PoisonLabelSize.Tall;
|
||||||
|
this.poisonLabel7.Location = new System.Drawing.Point(5, 210);
|
||||||
|
this.poisonLabel7.Name = "poisonLabel7";
|
||||||
|
this.poisonLabel7.Size = new System.Drawing.Size(218, 25);
|
||||||
|
this.poisonLabel7.TabIndex = 11;
|
||||||
|
this.poisonLabel7.Text = "Reasons to get Windows 11:";
|
||||||
|
this.poisonLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.poisonLabel7.UseCustomBackColor = true;
|
||||||
|
//
|
||||||
|
// upgradeButton
|
||||||
|
//
|
||||||
|
this.upgradeButton.Enabled = false;
|
||||||
|
this.upgradeButton.FontSize = ReaLTaiizor.Extension.Poison.PoisonButtonSize.Medium;
|
||||||
|
this.upgradeButton.Location = new System.Drawing.Point(1198, 645);
|
||||||
|
this.upgradeButton.Name = "upgradeButton";
|
||||||
|
this.upgradeButton.Size = new System.Drawing.Size(112, 42);
|
||||||
|
this.upgradeButton.TabIndex = 10;
|
||||||
|
this.upgradeButton.Text = "Install";
|
||||||
|
this.upgradeButton.UseSelectable = true;
|
||||||
|
this.upgradeButton.Click += new System.EventHandler(this.upgradeButton_Click);
|
||||||
|
//
|
||||||
|
// automateOOBECheck
|
||||||
|
//
|
||||||
|
this.automateOOBECheck.AutoSize = true;
|
||||||
|
this.automateOOBECheck.Enabled = false;
|
||||||
|
this.automateOOBECheck.Location = new System.Drawing.Point(5, 164);
|
||||||
|
this.automateOOBECheck.Name = "automateOOBECheck";
|
||||||
|
this.automateOOBECheck.Size = new System.Drawing.Size(353, 15);
|
||||||
|
this.automateOOBECheck.TabIndex = 9;
|
||||||
|
this.automateOOBECheck.Text = "Automate OOBE (skips parts of the OOBE, useful if reinstalling)";
|
||||||
|
this.automateOOBECheck.UseSelectable = true;
|
||||||
|
//
|
||||||
|
// bypassWin11RequirementsCheck
|
||||||
|
//
|
||||||
|
this.bypassWin11RequirementsCheck.AutoSize = true;
|
||||||
|
this.bypassWin11RequirementsCheck.Checked = true;
|
||||||
|
this.bypassWin11RequirementsCheck.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.bypassWin11RequirementsCheck.Enabled = false;
|
||||||
|
this.bypassWin11RequirementsCheck.Location = new System.Drawing.Point(5, 131);
|
||||||
|
this.bypassWin11RequirementsCheck.Name = "bypassWin11RequirementsCheck";
|
||||||
|
this.bypassWin11RequirementsCheck.Size = new System.Drawing.Size(418, 15);
|
||||||
|
this.bypassWin11RequirementsCheck.TabIndex = 8;
|
||||||
|
this.bypassWin11RequirementsCheck.Text = "Bypass Windows 11 requirements (including RAM, CPU, TPM, Secure Boot)";
|
||||||
|
this.bypassWin11RequirementsCheck.UseSelectable = true;
|
||||||
|
//
|
||||||
|
// poisonLabel5
|
||||||
|
//
|
||||||
|
this.poisonLabel5.AutoSize = true;
|
||||||
|
this.poisonLabel5.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.poisonLabel5.Location = new System.Drawing.Point(5, 87);
|
||||||
|
this.poisonLabel5.Name = "poisonLabel5";
|
||||||
|
this.poisonLabel5.Size = new System.Drawing.Size(114, 19);
|
||||||
|
this.poisonLabel5.TabIndex = 7;
|
||||||
|
this.poisonLabel5.Text = "Upgrade method:";
|
||||||
|
this.poisonLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.poisonLabel5.UseCustomBackColor = true;
|
||||||
|
//
|
||||||
|
// upgradeMethod
|
||||||
|
//
|
||||||
|
this.upgradeMethod.FormattingEnabled = true;
|
||||||
|
this.upgradeMethod.ItemHeight = 23;
|
||||||
|
this.upgradeMethod.Items.AddRange(new object[] {
|
||||||
|
"Upgrade to Windows 11 (recommended, all languages)",
|
||||||
|
"Install Windows 11 IoT Enterprise LTSC (English US only)",
|
||||||
|
"Install Mini11 LTS (English UK only)",
|
||||||
|
"Use a custom image (for advanced users)"});
|
||||||
|
this.upgradeMethod.Location = new System.Drawing.Point(143, 87);
|
||||||
|
this.upgradeMethod.Name = "upgradeMethod";
|
||||||
|
this.upgradeMethod.PromptText = "--Please select--";
|
||||||
|
this.upgradeMethod.Size = new System.Drawing.Size(1067, 29);
|
||||||
|
this.upgradeMethod.TabIndex = 6;
|
||||||
|
this.upgradeMethod.UseSelectable = true;
|
||||||
|
this.upgradeMethod.SelectedIndexChanged += new System.EventHandler(this.poisonComboBox1_SelectedIndexChanged);
|
||||||
|
//
|
||||||
|
// poisonLabel3
|
||||||
|
//
|
||||||
|
this.poisonLabel3.AutoSize = true;
|
||||||
|
this.poisonLabel3.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.poisonLabel3.Location = new System.Drawing.Point(5, 54);
|
||||||
|
this.poisonLabel3.Name = "poisonLabel3";
|
||||||
|
this.poisonLabel3.Size = new System.Drawing.Size(760, 19);
|
||||||
|
this.poisonLabel3.TabIndex = 5;
|
||||||
|
this.poisonLabel3.Text = "In this page, we\'ll get you on Windows 11 as Windows 10 is now end of life. This " +
|
||||||
|
"process can take some time, so please be patient!";
|
||||||
|
this.poisonLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.poisonLabel3.UseCustomBackColor = true;
|
||||||
|
//
|
||||||
|
// poisonLabel4
|
||||||
|
//
|
||||||
|
this.poisonLabel4.AutoSize = true;
|
||||||
|
this.poisonLabel4.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.poisonLabel4.FontSize = ReaLTaiizor.Extension.Poison.PoisonLabelSize.Tall;
|
||||||
|
this.poisonLabel4.Location = new System.Drawing.Point(5, 17);
|
||||||
|
this.poisonLabel4.Name = "poisonLabel4";
|
||||||
|
this.poisonLabel4.Size = new System.Drawing.Size(227, 25);
|
||||||
|
this.poisonLabel4.TabIndex = 4;
|
||||||
|
this.poisonLabel4.Text = "Let\'s get you on Windows 11!";
|
||||||
|
this.poisonLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.poisonLabel4.UseCustomBackColor = true;
|
||||||
//
|
//
|
||||||
// debloatPage
|
// debloatPage
|
||||||
//
|
//
|
||||||
@@ -360,20 +545,18 @@
|
|||||||
this.tweaksList.UseStyleColors = true;
|
this.tweaksList.UseStyleColors = true;
|
||||||
this.tweaksList.Resize += new System.EventHandler(this.tweaksList_Resize);
|
this.tweaksList.Resize += new System.EventHandler(this.tweaksList_Resize);
|
||||||
//
|
//
|
||||||
// githubLink
|
// editionLabel
|
||||||
//
|
//
|
||||||
this.githubLink.BackColor = System.Drawing.Color.Transparent;
|
this.editionLabel.AutoSize = true;
|
||||||
this.githubLink.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.editionLabel.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.githubLink.Location = new System.Drawing.Point(1275, 762);
|
this.editionLabel.Location = new System.Drawing.Point(12, 767);
|
||||||
this.githubLink.Name = "githubLink";
|
this.editionLabel.Name = "editionLabel";
|
||||||
this.githubLink.Size = new System.Drawing.Size(48, 26);
|
this.editionLabel.Size = new System.Drawing.Size(213, 21);
|
||||||
this.githubLink.TabIndex = 5;
|
this.editionLabel.TabIndex = 4;
|
||||||
this.githubLink.Text = "GitHub";
|
this.editionLabel.Text = "Perfect11 Community Edition";
|
||||||
this.githubLink.UseCustomBackColor = true;
|
this.editionLabel.UseCustomBackColor = true;
|
||||||
this.githubLink.UseCustomForeColor = true;
|
this.editionLabel.UseCustomFont = true;
|
||||||
this.githubLink.UseSelectable = true;
|
this.editionLabel.UseCustomForeColor = true;
|
||||||
this.githubLink.UseStyleColors = true;
|
|
||||||
this.githubLink.Click += new System.EventHandler(this.githubLink_Click);
|
|
||||||
//
|
//
|
||||||
// Form1
|
// Form1
|
||||||
//
|
//
|
||||||
@@ -390,6 +573,7 @@
|
|||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "Perfect11";
|
this.Text = "Perfect11";
|
||||||
this.TransparencyKey = System.Drawing.Color.Fuchsia;
|
this.TransparencyKey = System.Drawing.Color.Fuchsia;
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
||||||
this.Load += new System.EventHandler(this.Form1_Load);
|
this.Load += new System.EventHandler(this.Form1_Load);
|
||||||
this.theme.ResumeLayout(false);
|
this.theme.ResumeLayout(false);
|
||||||
this.theme.PerformLayout();
|
this.theme.PerformLayout();
|
||||||
@@ -397,6 +581,8 @@
|
|||||||
this.welcomePage.ResumeLayout(false);
|
this.welcomePage.ResumeLayout(false);
|
||||||
this.welcomePage.PerformLayout();
|
this.welcomePage.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.upgradePage.ResumeLayout(false);
|
||||||
|
this.upgradePage.PerformLayout();
|
||||||
this.debloatPage.ResumeLayout(false);
|
this.debloatPage.ResumeLayout(false);
|
||||||
this.debloatPage.PerformLayout();
|
this.debloatPage.PerformLayout();
|
||||||
this.tweaksPage.ResumeLayout(false);
|
this.tweaksPage.ResumeLayout(false);
|
||||||
@@ -429,6 +615,18 @@
|
|||||||
private ReaLTaiizor.Controls.PoisonButton runTweaks;
|
private ReaLTaiizor.Controls.PoisonButton runTweaks;
|
||||||
private ReaLTaiizor.Controls.PoisonLabel editionLabel;
|
private ReaLTaiizor.Controls.PoisonLabel editionLabel;
|
||||||
private ReaLTaiizor.Controls.PoisonLinkLabel githubLink;
|
private ReaLTaiizor.Controls.PoisonLinkLabel githubLink;
|
||||||
|
private ReaLTaiizor.Controls.PoisonTabPage upgradePage;
|
||||||
|
private ReaLTaiizor.Controls.PoisonLabel poisonLabel3;
|
||||||
|
private ReaLTaiizor.Controls.PoisonLabel poisonLabel4;
|
||||||
|
private ReaLTaiizor.Controls.PoisonLabel poisonLabel5;
|
||||||
|
private ReaLTaiizor.Controls.PoisonComboBox upgradeMethod;
|
||||||
|
private ReaLTaiizor.Controls.PoisonCheckBox bypassWin11RequirementsCheck;
|
||||||
|
private ReaLTaiizor.Controls.PoisonCheckBox automateOOBECheck;
|
||||||
|
private ReaLTaiizor.Controls.PoisonLabel poisonLabel6;
|
||||||
|
private ReaLTaiizor.Controls.PoisonLabel poisonLabel7;
|
||||||
|
private ReaLTaiizor.Controls.PoisonButton upgradeButton;
|
||||||
|
private ReaLTaiizor.Controls.PoisonLabel statusLabel;
|
||||||
|
private ReaLTaiizor.Controls.PoisonProgressBar installProgress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,12 @@ using System.Diagnostics;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net.Http;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
|
||||||
|
|
||||||
namespace Perfect11
|
namespace Perfect11
|
||||||
{
|
{
|
||||||
@@ -19,7 +22,13 @@ namespace Perfect11
|
|||||||
{
|
{
|
||||||
private List<string> _listSystemApps = new List<string>();
|
private List<string> _listSystemApps = new List<string>();
|
||||||
private List<IPlugin> _tweaks = new List<IPlugin>();
|
private List<IPlugin> _tweaks = new List<IPlugin>();
|
||||||
private static string AppEdition = "Perfect11 Community Edition";
|
private CancellationTokenSource _cts;
|
||||||
|
private CancellationTokenSource _cts2;
|
||||||
|
private CancellationTokenSource _cts3;
|
||||||
|
private bool _isDownloading = false;
|
||||||
|
string url = $"https://software-.download.prss.microsoft.com/dbazure/888969d5-f34g-4e03-ac9d-1f9786c66749/26200.6584.250915-1905.25h2_ge_release_svc_refresh_CLIENT_CONSUMER_{Utilities.GetSystemArchitecture()}FRE_{Utilities.GetLanguageCode()}.iso";
|
||||||
|
string destination = Path.Combine(@"C:\Temp", @"windows.iso");
|
||||||
|
private string AppEdition = "Perfect11 Community Edition";
|
||||||
public Form1()
|
public Form1()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@@ -36,7 +45,9 @@ namespace Perfect11
|
|||||||
welcomePage.Theme = ThemeStyle.Dark;
|
welcomePage.Theme = ThemeStyle.Dark;
|
||||||
debloatPage.Theme = ThemeStyle.Dark;
|
debloatPage.Theme = ThemeStyle.Dark;
|
||||||
poisonLabel1.Theme = ThemeStyle.Dark;
|
poisonLabel1.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel1.ForeColor = Color.FromArgb(255,255,255);
|
||||||
poisonLabel2.Theme = ThemeStyle.Dark;
|
poisonLabel2.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel2.ForeColor = Color.FromArgb(255, 255, 255);
|
||||||
LblInstalledCount.Theme = ThemeStyle.Dark;
|
LblInstalledCount.Theme = ThemeStyle.Dark;
|
||||||
LblRemoveCount.Theme = ThemeStyle.Dark;
|
LblRemoveCount.Theme = ThemeStyle.Dark;
|
||||||
LstUWP.Theme = ThemeStyle.Dark;
|
LstUWP.Theme = ThemeStyle.Dark;
|
||||||
@@ -55,9 +66,19 @@ namespace Perfect11
|
|||||||
LstUWP.BackColor = Color.FromArgb(17, 17, 17);
|
LstUWP.BackColor = Color.FromArgb(17, 17, 17);
|
||||||
LstUWPRemove.BackColor = Color.FromArgb(17, 17, 17);
|
LstUWPRemove.BackColor = Color.FromArgb(17, 17, 17);
|
||||||
tweaksList.BackColor = Color.FromArgb(17, 17, 17);
|
tweaksList.BackColor = Color.FromArgb(17, 17, 17);
|
||||||
poisonLabel1.ForeColor = Color.FromArgb(255, 255, 255);
|
|
||||||
poisonLabel2.ForeColor = Color.FromArgb(255, 255, 255);
|
|
||||||
githubLink.Theme = ThemeStyle.Dark;
|
githubLink.Theme = ThemeStyle.Dark;
|
||||||
|
upgradePage.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel3.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel4.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel5.Theme = ThemeStyle.Dark;
|
||||||
|
upgradeMethod.Theme = ThemeStyle.Dark;
|
||||||
|
bypassWin11RequirementsCheck.Theme = ThemeStyle.Dark;
|
||||||
|
automateOOBECheck.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel6.Theme = ThemeStyle.Dark;
|
||||||
|
poisonLabel7.Theme = ThemeStyle.Dark;
|
||||||
|
upgradeButton.Theme = ThemeStyle.Dark;
|
||||||
|
statusLabel.Theme = ThemeStyle.Dark;
|
||||||
|
installProgress.Theme = ThemeStyle.Dark;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -65,7 +86,9 @@ namespace Perfect11
|
|||||||
welcomePage.Theme = ThemeStyle.Light;
|
welcomePage.Theme = ThemeStyle.Light;
|
||||||
debloatPage.Theme = ThemeStyle.Light;
|
debloatPage.Theme = ThemeStyle.Light;
|
||||||
poisonLabel1.Theme = ThemeStyle.Light;
|
poisonLabel1.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel1.ForeColor = Color.FromArgb(255, 255, 255);
|
||||||
poisonLabel2.Theme = ThemeStyle.Light;
|
poisonLabel2.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel2.ForeColor = Color.FromArgb(255, 255, 255);
|
||||||
LblInstalledCount.Theme = ThemeStyle.Light;
|
LblInstalledCount.Theme = ThemeStyle.Light;
|
||||||
LblRemoveCount.Theme = ThemeStyle.Light;
|
LblRemoveCount.Theme = ThemeStyle.Light;
|
||||||
LstUWP.Theme = ThemeStyle.Light;
|
LstUWP.Theme = ThemeStyle.Light;
|
||||||
@@ -85,6 +108,18 @@ namespace Perfect11
|
|||||||
LstUWPRemove.BackColor = Color.FromArgb(255,255,255);
|
LstUWPRemove.BackColor = Color.FromArgb(255,255,255);
|
||||||
tweaksList.BackColor = Color.FromArgb(255,255,255);
|
tweaksList.BackColor = Color.FromArgb(255,255,255);
|
||||||
githubLink.Theme = ThemeStyle.Light;
|
githubLink.Theme = ThemeStyle.Light;
|
||||||
|
upgradePage.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel3.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel4.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel5.Theme = ThemeStyle.Light;
|
||||||
|
upgradeMethod.Theme = ThemeStyle.Light;
|
||||||
|
bypassWin11RequirementsCheck.Theme = ThemeStyle.Light;
|
||||||
|
automateOOBECheck.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel6.Theme = ThemeStyle.Light;
|
||||||
|
poisonLabel7.Theme = ThemeStyle.Light;
|
||||||
|
upgradeButton.Theme = ThemeStyle.Light;
|
||||||
|
statusLabel.Theme = ThemeStyle.Light;
|
||||||
|
installProgress.Theme = ThemeStyle.Light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void Form1_Load(object sender, EventArgs e)
|
private void Form1_Load(object sender, EventArgs e)
|
||||||
@@ -102,6 +137,8 @@ namespace Perfect11
|
|||||||
int totalWidth2 = LstUWPRemove.ClientSize.Width;
|
int totalWidth2 = LstUWPRemove.ClientSize.Width;
|
||||||
LstUWP.Columns[0].Width = totalWidth1;
|
LstUWP.Columns[0].Width = totalWidth1;
|
||||||
LstUWPRemove.Columns[0].Width = totalWidth2;
|
LstUWPRemove.Columns[0].Width = totalWidth2;
|
||||||
|
statusLabel.Visible = false;
|
||||||
|
installProgress.Visible = false;
|
||||||
}
|
}
|
||||||
private void GetUWP()
|
private void GetUWP()
|
||||||
{
|
{
|
||||||
@@ -246,19 +283,15 @@ namespace Perfect11
|
|||||||
if (LstUWPRemove.SelectedItems.Count > 0)
|
if (LstUWPRemove.SelectedItems.Count > 0)
|
||||||
{
|
{
|
||||||
List<ListViewItem> selectedItems = new List<ListViewItem>();
|
List<ListViewItem> selectedItems = new List<ListViewItem>();
|
||||||
|
|
||||||
foreach (ListViewItem selectedItem in LstUWPRemove.SelectedItems)
|
foreach (ListViewItem selectedItem in LstUWPRemove.SelectedItems)
|
||||||
{
|
{
|
||||||
selectedItems.Add(selectedItem);
|
selectedItems.Add(selectedItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move each selected item
|
|
||||||
foreach (ListViewItem item in selectedItems)
|
foreach (ListViewItem item in selectedItems)
|
||||||
{
|
{
|
||||||
LstUWP.Items.Add((ListViewItem)item.Clone());
|
LstUWP.Items.Add((ListViewItem)item.Clone());
|
||||||
LstUWPRemove.Items.Remove(item);
|
LstUWPRemove.Items.Remove(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
RefreshUWP();
|
RefreshUWP();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -280,43 +313,37 @@ namespace Perfect11
|
|||||||
if (LstUWPRemove.Items.Count == 0) { MessageBox.Show("No items were selected for removal.","Perfect11", MessageBoxButtons.OK,MessageBoxIcon.Information); }
|
if (LstUWPRemove.Items.Count == 0) { MessageBox.Show("No items were selected for removal.","Perfect11", MessageBoxButtons.OK,MessageBoxIcon.Information); }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Enabled = false;
|
_cts3 = new CancellationTokenSource();
|
||||||
|
BtnRunUninstaller.Enabled = false;
|
||||||
|
addAllButton.Enabled = false;
|
||||||
|
addButton.Enabled = false;
|
||||||
|
removeButton.Enabled = false;
|
||||||
|
removeAllButton.Enabled = false;
|
||||||
MessageBox.Show(RemoveUWP(),"Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
MessageBox.Show(RemoveUWP(),"Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||||
LstUWPRemove.Items.Clear();
|
LstUWPRemove.Items.Clear();
|
||||||
GetUWP();
|
GetUWP();
|
||||||
Enabled = true;
|
_cts3 = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void InitializeTweaks()
|
private void InitializeTweaks()
|
||||||
{
|
{
|
||||||
const string tweaksFolder = "Tweaks";
|
const string tweaksFolder = "Tweaks";
|
||||||
const string interfaceDll = "Perfect11.TweaksInterface.dll";
|
const string interfaceDll = "Perfect11.TweaksInterface.dll";
|
||||||
|
|
||||||
// Ensure folder exists and remove old interface DLL
|
|
||||||
if (!Directory.Exists(tweaksFolder))
|
if (!Directory.Exists(tweaksFolder))
|
||||||
Directory.CreateDirectory(tweaksFolder);
|
Directory.CreateDirectory(tweaksFolder);
|
||||||
|
|
||||||
string interfacePath = Path.Combine(tweaksFolder, interfaceDll);
|
string interfacePath = Path.Combine(tweaksFolder, interfaceDll);
|
||||||
if (File.Exists(interfacePath))
|
if (File.Exists(interfacePath))
|
||||||
File.Delete(interfacePath);
|
File.Delete(interfacePath);
|
||||||
|
|
||||||
// Load categorized plugins
|
|
||||||
var categorizedPlugins = Utilities.LoadTweaks(tweaksFolder);
|
var categorizedPlugins = Utilities.LoadTweaks(tweaksFolder);
|
||||||
|
|
||||||
// Setup ListView
|
|
||||||
tweaksList.View = View.Details;
|
tweaksList.View = View.Details;
|
||||||
tweaksList.FullRowSelect = true;
|
tweaksList.FullRowSelect = true;
|
||||||
tweaksList.ShowGroups = true;
|
tweaksList.ShowGroups = true;
|
||||||
tweaksList.Items.Clear();
|
tweaksList.Items.Clear();
|
||||||
tweaksList.Groups.Clear();
|
tweaksList.Groups.Clear();
|
||||||
|
|
||||||
// Setup columns
|
|
||||||
tweaksList.Columns.Clear();
|
tweaksList.Columns.Clear();
|
||||||
tweaksList.Columns.Add("Tweak");
|
tweaksList.Columns.Add("Tweak");
|
||||||
tweaksList.Columns.Add("Description");
|
tweaksList.Columns.Add("Description");
|
||||||
AdjustListViewColumns();
|
AdjustListViewColumns();
|
||||||
|
|
||||||
// Add groups and items
|
|
||||||
foreach (var category in categorizedPlugins.OrderBy(c => c.Key))
|
foreach (var category in categorizedPlugins.OrderBy(c => c.Key))
|
||||||
{
|
{
|
||||||
var group = new ListViewGroup(category.Key);
|
var group = new ListViewGroup(category.Key);
|
||||||
@@ -333,16 +360,11 @@ namespace Perfect11
|
|||||||
tweaksList.Items.Add(item);
|
tweaksList.Items.Add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable or disable run button
|
|
||||||
runTweaks.Enabled = tweaksList.Items.Count > 0;
|
runTweaks.Enabled = tweaksList.Items.Count > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust column widths dynamically based on ListView client width
|
|
||||||
private void AdjustListViewColumns()
|
private void AdjustListViewColumns()
|
||||||
{
|
{
|
||||||
if (tweaksList.Columns.Count < 2) return;
|
if (tweaksList.Columns.Count < 2) return;
|
||||||
|
|
||||||
int totalWidth = tweaksList.ClientSize.Width;
|
int totalWidth = tweaksList.ClientSize.Width;
|
||||||
tweaksList.Columns[0].Width = (int)(totalWidth * 0.3); // Tweak column
|
tweaksList.Columns[0].Width = (int)(totalWidth * 0.3); // Tweak column
|
||||||
tweaksList.Columns[1].Width = (int)(totalWidth * 0.7); // Description column
|
tweaksList.Columns[1].Width = (int)(totalWidth * 0.7); // Description column
|
||||||
@@ -366,8 +388,8 @@ namespace Perfect11
|
|||||||
MessageBox.Show("Select one or more plugins to run.","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
MessageBox.Show("Select one or more plugins to run.","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
runTweaks.Enabled = false;
|
||||||
Enabled = false; // prevent multiple clicks
|
_cts2 = new CancellationTokenSource();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (ListViewItem item in tweaksList.SelectedItems)
|
foreach (ListViewItem item in tweaksList.SelectedItems)
|
||||||
@@ -385,7 +407,8 @@ namespace Perfect11
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
Enabled = true;
|
_cts2 = null;
|
||||||
|
runTweaks.Enabled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -405,5 +428,329 @@ namespace Perfect11
|
|||||||
MessageBox.Show("Looks like your browser is not available, please copy the link below and paste it in your browser's address bar:\n\nhttps://github.com/theitaliandeveloper/Perfect11/","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
MessageBox.Show("Looks like your browser is not available, please copy the link below and paste it in your browser's address bar:\n\nhttps://github.com/theitaliandeveloper/Perfect11/","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void pages_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
#if !DEBUG // For UI Testing do not prevent using pages if not 11
|
||||||
|
if (pages.SelectedTab != upgradePage && _cts != null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Upgrade to Windows 11 is in progress, cannot change tab.", "Perfect11", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
pages.SelectedTab = upgradePage;
|
||||||
|
}
|
||||||
|
else if (pages.SelectedTab != tweaksPage && _cts2 != null)
|
||||||
|
{
|
||||||
|
pages.SelectedTab = tweaksPage;
|
||||||
|
}
|
||||||
|
else if (pages.SelectedTab != debloatPage && _cts3 != null)
|
||||||
|
{
|
||||||
|
pages.SelectedTab = tweaksPage;
|
||||||
|
}
|
||||||
|
if ((pages.SelectedTab == debloatPage || pages.SelectedTab == tweaksPage) && !Utilities.IsWindows11())
|
||||||
|
{
|
||||||
|
MessageBox.Show("In order to use these features you need to upgrade to Windows 11.", "Perfect11", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
pages.SelectedTab = upgradePage;
|
||||||
|
}
|
||||||
|
else if (pages.SelectedTab == upgradePage && Utilities.IsWindows11())
|
||||||
|
{
|
||||||
|
if (MessageBox.Show("You're already using Windows 11, there's no need to upgrade. However, this page might be useful as well for reinstallation. Are you sure to continue?", "Perfect11", MessageBoxButtons.YesNo, MessageBoxIcon.Information, MessageBoxDefaultButton.Button2) == DialogResult.No)
|
||||||
|
{
|
||||||
|
pages.SelectedTab = welcomePage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
private void poisonComboBox1_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Utilities.GetSystemArchitecture().ToLower() == "a64" && upgradeMethod.SelectedIndex != 0 && upgradeMethod.SelectedIndex != 3)
|
||||||
|
{
|
||||||
|
upgradeMethod.SelectedIndex = 0;
|
||||||
|
MessageBox.Show("You're running Windows on ARM, some options are not available.", "Perfect11", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
|
}
|
||||||
|
statusLabel.Text = "Ready.";
|
||||||
|
installProgress.Value = 0;
|
||||||
|
upgradeButton.Enabled = true;
|
||||||
|
statusLabel.Visible = true;
|
||||||
|
installProgress.Visible = true;
|
||||||
|
if (upgradeMethod.SelectedIndex == 3)
|
||||||
|
{
|
||||||
|
OpenFileDialog ofd = new OpenFileDialog
|
||||||
|
{
|
||||||
|
Filter = "Disc Image File|*.iso",
|
||||||
|
Title = "Select custom ISO",
|
||||||
|
Multiselect = false
|
||||||
|
};
|
||||||
|
if (ofd.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
foreach (string fileName in ofd.FileNames)
|
||||||
|
{
|
||||||
|
destination = fileName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
upgradeMethod.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (upgradeMethod.SelectedIndex == 3 || upgradeMethod.SelectedIndex == 2) // Both Mini11 and custom ISO
|
||||||
|
{
|
||||||
|
automateOOBECheck.Enabled = false;
|
||||||
|
automateOOBECheck.Checked = false;
|
||||||
|
bypassWin11RequirementsCheck.Enabled = false;
|
||||||
|
bypassWin11RequirementsCheck.Checked = false;
|
||||||
|
}
|
||||||
|
if (upgradeMethod.SelectedIndex != 0 && upgradeMethod.SelectedIndex != 1) // if not normal installation
|
||||||
|
{
|
||||||
|
bypassWin11RequirementsCheck.Enabled = false;
|
||||||
|
bypassWin11RequirementsCheck.Checked = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
automateOOBECheck.Enabled = true;
|
||||||
|
bypassWin11RequirementsCheck.Enabled = true;
|
||||||
|
bypassWin11RequirementsCheck.Checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void upgradeButton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (upgradeMethod.SelectedIndex == 1)
|
||||||
|
{
|
||||||
|
url = "https://oemsoc.download.prss.microsoft.com/dbazure/X23-81951_26100.1742.240906-0331.ge_release_svc_refresh_CLIENT_ENTERPRISES_OEM_x64FRE_en-us.iso_640de540-87c4-427f-be87-e6d53a3a60b4?t=2c3b664b-b119-4088-9db1-ccff72c6d22e&P1=102816950270&P2=601&P3=2&P4=OC448onxqdmdUsBUApAiE8pj1FZ%2bEPTU3%2bC6Quq29MVwMyyDUtR%2fsbiy7RdVoZOHaZRndvzeOOnIwJZ2x3%2bmP6YK9cjJSP41Lvs0SulF4SVyL5C0DdDmiWqh2QW%2bcDPj2Xp%2bMrI9NOeElSBS5kkOWP8Eiyf2VkkQFM3g5vIk3HJVvu5sWo6pFKpFv4lML%2bHaIiTSuwbPMs5xwEQTfScuTKfigNlUZPdHRMp1B3uKLgIA3r0IbRpZgHYMXEwXQ%2fSLMdDNQthpqQvz1PThVkx7ObD55CXgt0GNSAWRfjdURWb8ywWk1gT7ozAgpP%2fKNm56U5nh33WZSuMZIuO1SBM2vw%3d%3d";
|
||||||
|
}
|
||||||
|
else if (upgradeMethod.SelectedIndex == 2)
|
||||||
|
{
|
||||||
|
url = "https://archive.org/download/mini11-24h2/Mini11%20LTS%2024H2%20AIO%20v1%20Triton.iso";
|
||||||
|
}
|
||||||
|
// Se stiamo già scaricando → annulla
|
||||||
|
if (_isDownloading)
|
||||||
|
{
|
||||||
|
if (_cts != null && !_cts.IsCancellationRequested)
|
||||||
|
{
|
||||||
|
_cts.Cancel();
|
||||||
|
statusLabel.Text = "Canceling...";
|
||||||
|
upgradeButton.Enabled = false;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
upgradeMethod.Enabled = false;
|
||||||
|
bypassWin11RequirementsCheck.Enabled = false;
|
||||||
|
automateOOBECheck.Enabled = false;
|
||||||
|
string setupArguments = "";
|
||||||
|
installProgress.Value = 0;
|
||||||
|
upgradeButton.Text = "Cancel";
|
||||||
|
_isDownloading = true;
|
||||||
|
_cts = new CancellationTokenSource();
|
||||||
|
if (!Directory.Exists("C:\\Temp"))
|
||||||
|
Directory.CreateDirectory("C:\\Temp");
|
||||||
|
if (Directory.Exists("C:\\Temp\\Perfect11_W11_TMP"))
|
||||||
|
Directory.Delete("C:\\Temp\\Perfect11_W11_TMP",true);
|
||||||
|
if (File.Exists("C:\\Temp\\windows.iso"))
|
||||||
|
File.Delete("C:\\Temp\\windows.iso");
|
||||||
|
if (upgradeMethod.SelectedIndex != 3)
|
||||||
|
{
|
||||||
|
destination = Path.Combine(@"C:\Temp", @"windows.iso");
|
||||||
|
statusLabel.Text = "Downloading ISO...";
|
||||||
|
await DownloadFileAsync(url, destination, _cts.Token);
|
||||||
|
statusLabel.Text = "Download completed!";
|
||||||
|
}
|
||||||
|
Thread.Sleep(1000);
|
||||||
|
statusLabel.Text = "Extracting...";
|
||||||
|
await Task.Run(() => ExtractIsoWithProgress(destination, @"C:\Temp\Perfect11_W11_TMP", _cts.Token));
|
||||||
|
statusLabel.Text = "Extraction complete!";
|
||||||
|
#if !DEBUG
|
||||||
|
if (File.Exists(destination) && upgradeMethod.SelectedIndex != 3)
|
||||||
|
File.Delete(destination);
|
||||||
|
#endif
|
||||||
|
if (!File.Exists(@"C:\Temp\Perfect11_W11_TMP\sources\EI.cfg"))
|
||||||
|
{
|
||||||
|
File.WriteAllText(@"C:\Temp\Perfect11_W11_TMP\sources\EI.CFG",Resources.EI_CFG);
|
||||||
|
}
|
||||||
|
Thread.Sleep(1000);
|
||||||
|
if (automateOOBECheck.Checked)
|
||||||
|
{
|
||||||
|
statusLabel.Text = "Applying OOBE automation tweak...";
|
||||||
|
if (File.Exists(@"C:\Temp\Perfect11_W11_TMP\autounattend.xml"))
|
||||||
|
{
|
||||||
|
File.Delete(@"C:\Temp\Perfect11_W11_TMP\autounattend.xml");
|
||||||
|
}
|
||||||
|
File.WriteAllText(@"C:\Temp\Perfect11_W11_TMP\autounattend.xml",Resources.unattend_OOBEAutomate);
|
||||||
|
}
|
||||||
|
statusLabel.Text = "Running Windows 11 Setup...";
|
||||||
|
if (bypassWin11RequirementsCheck.Checked)
|
||||||
|
{
|
||||||
|
setupArguments += "/Product Server";
|
||||||
|
}
|
||||||
|
if (upgradeMethod.SelectedIndex == 1)
|
||||||
|
{
|
||||||
|
setupArguments += " /pkey KBN8V-HFGQ4-MGXVD-347P6-PDQGT";
|
||||||
|
}
|
||||||
|
setupArguments += " /Compat IgnoreWarning /Telemetry disable /eula accept";
|
||||||
|
if (upgradeMethod.SelectedIndex == 2)
|
||||||
|
{
|
||||||
|
setupArguments += " /dynamicupdate disable";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
setupArguments += " /dynamicupdate enable";
|
||||||
|
}
|
||||||
|
ProcessStartInfo info = new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = @"C:\Temp\Perfect11_W11_TMP\sources\setupprep.exe",
|
||||||
|
Arguments = setupArguments
|
||||||
|
};
|
||||||
|
Process.Start(info);
|
||||||
|
_cts = null;
|
||||||
|
MessageBox.Show("Almost done! Now follow the prompts to continue the Windows 11 installation! Perfect11 will now close.","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Information);
|
||||||
|
Application.Exit();
|
||||||
|
}
|
||||||
|
catch (OperationCanceledException)
|
||||||
|
{
|
||||||
|
statusLabel.Text = "Installation aborted!";
|
||||||
|
try
|
||||||
|
{
|
||||||
|
#if !DEBUG
|
||||||
|
if (File.Exists(destination) && upgradeMethod.SelectedIndex != 3)
|
||||||
|
File.Delete(destination);
|
||||||
|
if (Directory.Exists(Path.Combine(@"C:\Temp", "Perfect11_W11_TMP")))
|
||||||
|
Directory.Delete(Path.Combine(@"C:\Temp", "Perfect11_W11_TMP"), true);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
statusLabel.Text = "Error: " + ex.Message;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
#if !DEBUG
|
||||||
|
if (File.Exists(destination) && upgradeMethod.SelectedIndex != 3)
|
||||||
|
File.Delete(destination);
|
||||||
|
if (Directory.Exists(Path.Combine(@"C:\Temp", "Perfect11_W11_TMP")))
|
||||||
|
Directory.Delete(Path.Combine(@"C:\Temp", "Perfect11_W11_TMP"), true);
|
||||||
|
#endif
|
||||||
|
} catch { }
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
_isDownloading = false;
|
||||||
|
upgradeButton.Text = "Install";
|
||||||
|
upgradeButton.Enabled = true;
|
||||||
|
upgradeMethod.Enabled = true;
|
||||||
|
if (upgradeMethod.SelectedIndex == 3 || upgradeMethod.SelectedIndex == 2) // Both Mini11 and custom ISO
|
||||||
|
{
|
||||||
|
automateOOBECheck.Enabled = false;
|
||||||
|
automateOOBECheck.Checked = false;
|
||||||
|
bypassWin11RequirementsCheck.Enabled = false;
|
||||||
|
bypassWin11RequirementsCheck.Checked = false;
|
||||||
|
}
|
||||||
|
if (upgradeMethod.SelectedIndex != 0 && upgradeMethod.SelectedIndex != 1) // if not normal installation
|
||||||
|
{
|
||||||
|
bypassWin11RequirementsCheck.Enabled = false;
|
||||||
|
bypassWin11RequirementsCheck.Checked = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
automateOOBECheck.Enabled = true;
|
||||||
|
bypassWin11RequirementsCheck.Enabled = true;
|
||||||
|
bypassWin11RequirementsCheck.Checked = true;
|
||||||
|
}
|
||||||
|
_cts = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public async Task DownloadFileAsync(string url, string destinationPath, CancellationToken token)
|
||||||
|
{
|
||||||
|
using (HttpClient client = new HttpClient { Timeout = TimeSpan.FromHours(2) })
|
||||||
|
using (HttpResponseMessage response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token))
|
||||||
|
using (Stream contentStream = await response.Content.ReadAsStreamAsync())
|
||||||
|
using (FileStream fileStream = new FileStream(destinationPath, FileMode.Create, FileAccess.Write, FileShare.None, 8192, true))
|
||||||
|
{
|
||||||
|
long? totalBytes = response.Content.Headers.ContentLength;
|
||||||
|
long totalRead = 0;
|
||||||
|
byte[] buffer = new byte[8192];
|
||||||
|
int bytesRead;
|
||||||
|
DateTime lastUpdate = DateTime.Now;
|
||||||
|
while ((bytesRead = await contentStream.ReadAsync(buffer, 0, buffer.Length, token)) > 0)
|
||||||
|
{
|
||||||
|
await fileStream.WriteAsync(buffer, 0, bytesRead, token);
|
||||||
|
totalRead += bytesRead;
|
||||||
|
if (totalBytes.HasValue)
|
||||||
|
{
|
||||||
|
int progress = (int)((totalRead * 100L) / totalBytes.Value);
|
||||||
|
if (progress > 100) progress = 100;
|
||||||
|
installProgress.Value = progress;
|
||||||
|
statusLabel.Text = $"ISO Download Progress: {progress}%";
|
||||||
|
if ((DateTime.Now - lastUpdate).TotalMilliseconds > 200)
|
||||||
|
{
|
||||||
|
Application.DoEvents();
|
||||||
|
lastUpdate = DateTime.Now;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task ExtractIsoWithProgress(string isoPath, string extractPath, CancellationToken token)
|
||||||
|
{
|
||||||
|
string sevenZipPath = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), @"Tools\7z.exe");
|
||||||
|
if (!File.Exists(sevenZipPath))
|
||||||
|
throw new FileNotFoundException("7-Zip not found.");
|
||||||
|
ProcessStartInfo psi = new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = sevenZipPath,
|
||||||
|
Arguments = $"x -o\"{extractPath}\" -y -bsp1 -bso1 \"{isoPath}\"",
|
||||||
|
RedirectStandardOutput = true,
|
||||||
|
UseShellExecute = false,
|
||||||
|
CreateNoWindow = true
|
||||||
|
};
|
||||||
|
using (Process proc = new Process { StartInfo = psi })
|
||||||
|
{
|
||||||
|
proc.Start();
|
||||||
|
string line;
|
||||||
|
int lastPercent = 0;
|
||||||
|
var regex = new Regex(@"(\d+)%");
|
||||||
|
Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
installProgress.Value = 0;
|
||||||
|
statusLabel.Text = "Extracting files...";
|
||||||
|
}));
|
||||||
|
await Task.Run(() =>
|
||||||
|
{
|
||||||
|
while (!proc.HasExited)
|
||||||
|
{
|
||||||
|
token.ThrowIfCancellationRequested();
|
||||||
|
line = proc.StandardOutput.ReadLine();
|
||||||
|
if (line == null)
|
||||||
|
continue;
|
||||||
|
var match = regex.Match(line);
|
||||||
|
if (match.Success)
|
||||||
|
{
|
||||||
|
int percent = int.Parse(match.Groups[1].Value);
|
||||||
|
if (percent != lastPercent)
|
||||||
|
{
|
||||||
|
lastPercent = percent;
|
||||||
|
Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
installProgress.Value = percent;
|
||||||
|
statusLabel.Text = $"Extracting... {percent}%";
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, token);
|
||||||
|
proc.WaitForExit();
|
||||||
|
if (proc.ExitCode != 0)
|
||||||
|
throw new Exception($"7-Zip exited with code {proc.ExitCode}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
if (_cts != null || _cts2 != null || _cts3 != null)
|
||||||
|
e.Cancel = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,6 +120,14 @@
|
|||||||
<metadata name="controlBoxEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="controlBoxEdit1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<data name="poisonLabel6.Text" xml:space="preserve">
|
||||||
|
<value>1. It's completely free and you can revert to Windows 10 if you don't like it
|
||||||
|
2. Better security
|
||||||
|
3. A new UI
|
||||||
|
4. Better productivity
|
||||||
|
5. Features for developers: Sudo and Dev Drives
|
||||||
|
6. Compatible with all apps running on Windows 10</value>
|
||||||
|
</data>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|||||||
@@ -1,14 +1,23 @@
|
|||||||
using Microsoft.Win32;
|
using System;
|
||||||
using Perfect11.TweaksInterface;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
|
||||||
namespace Perfect11.Library
|
namespace Perfect11.Library
|
||||||
{
|
{
|
||||||
|
public class AppInfo
|
||||||
|
{
|
||||||
|
public string Name { get; set; }
|
||||||
|
public string Id { get; set; }
|
||||||
|
public bool Install { get; set; }
|
||||||
|
}
|
||||||
public class Utilities
|
public class Utilities
|
||||||
{
|
{
|
||||||
public static bool IsWindows11()
|
public static bool IsWindows11()
|
||||||
@@ -60,26 +69,19 @@ namespace Perfect11.Library
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Use your PowerShell.Execute helper
|
|
||||||
string packageFullName = PowerShell.Execute(
|
string packageFullName = PowerShell.Execute(
|
||||||
"Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*" + app +"*' } | Select-Object -ExpandProperty PackageFullName"
|
"Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*" + app +"*' } | Select-Object -ExpandProperty PackageFullName"
|
||||||
);
|
);
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(packageFullName))
|
if (string.IsNullOrWhiteSpace(packageFullName))
|
||||||
{
|
{
|
||||||
return "Sticky Notes package not found.";
|
return "Sticky Notes package not found.";
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine($"Found package: {packageFullName}");
|
Console.WriteLine($"Found package: {packageFullName}");
|
||||||
|
|
||||||
// Get current user SID
|
|
||||||
string userSid = WindowsIdentity.GetCurrent().User?.Value;
|
string userSid = WindowsIdentity.GetCurrent().User?.Value;
|
||||||
if (string.IsNullOrEmpty(userSid))
|
if (string.IsNullOrEmpty(userSid))
|
||||||
{
|
{
|
||||||
return "Unable to get current user SID.";
|
return "Unable to get current user SID.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Registry base path
|
|
||||||
string basePath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore";
|
string basePath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore";
|
||||||
string[] subKeys =
|
string[] subKeys =
|
||||||
{
|
{
|
||||||
@@ -87,7 +89,6 @@ namespace Perfect11.Library
|
|||||||
$@"EndOfLife\S-1-5-18\{packageFullName}",
|
$@"EndOfLife\S-1-5-18\{packageFullName}",
|
||||||
$@"Deprovisioned\{packageFullName}"
|
$@"Deprovisioned\{packageFullName}"
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var subKey in subKeys)
|
foreach (var subKey in subKeys)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -106,5 +107,51 @@ namespace Perfect11.Library
|
|||||||
return $"Error: {ex.Message}";
|
return $"Error: {ex.Message}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static string GetLanguageCode()
|
||||||
|
{
|
||||||
|
string languageCode = CultureInfo.CurrentUICulture.Name;
|
||||||
|
return languageCode.ToLower();
|
||||||
|
}
|
||||||
|
public static List<AppInfo> LoadApps(string resourceName)
|
||||||
|
{
|
||||||
|
var assembly = Assembly.GetExecutingAssembly();
|
||||||
|
|
||||||
|
using (Stream stream = assembly.GetManifestResourceStream(resourceName))
|
||||||
|
{
|
||||||
|
if (stream == null)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Resource not found: " + resourceName);
|
||||||
|
return new List<AppInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
using (StreamReader reader = new StreamReader(stream))
|
||||||
|
{
|
||||||
|
string json = reader.ReadToEnd();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var apps = JsonConvert.DeserializeObject<List<AppInfo>>(json);
|
||||||
|
return apps ?? new List<AppInfo>();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine("Error parsing JSON: " + ex.Message);
|
||||||
|
return new List<AppInfo>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static string GetSystemArchitecture()
|
||||||
|
{
|
||||||
|
string arch = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
|
||||||
|
string archWow64 = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432");
|
||||||
|
string osArch;
|
||||||
|
if (!string.IsNullOrEmpty(archWow64))
|
||||||
|
osArch = archWow64; // 64-bit OS, 32-bit process
|
||||||
|
else
|
||||||
|
osArch = arch;
|
||||||
|
if (osArch.ToLower() == "arm64")
|
||||||
|
osArch = "A64";
|
||||||
|
return osArch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
<NuGetPackageImportStamp>
|
||||||
|
</NuGetPackageImportStamp>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
@@ -56,10 +58,14 @@
|
|||||||
<ApplicationIcon>Simpleicons-Team-Simple-Windows-11.ico</ApplicationIcon>
|
<ApplicationIcon>Simpleicons-Team-Simple-Windows-11.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<StartupObject />
|
<StartupObject>
|
||||||
|
</StartupObject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Microsoft.VisualBasic" />
|
<Reference Include="Microsoft.VisualBasic" />
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Newtonsoft.Json.13.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="ReaLTaiizor, Version=3.8.1.3, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="ReaLTaiizor, Version=3.8.1.3, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\ReaLTaiizor.3.8.1.3\lib\net48\ReaLTaiizor.dll</HintPath>
|
<HintPath>..\packages\ReaLTaiizor.3.8.1.3\lib\net48\ReaLTaiizor.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -111,6 +117,12 @@
|
|||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<None Include="Tools\7z.sfx">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Tools\7zCon.sfx">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
@@ -131,6 +143,20 @@
|
|||||||
</BootstrapperPackage>
|
</BootstrapperPackage>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="Tools\license.txt">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Tools\7-zip.dll">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Tools\7z.dll">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Tools\7z.exe">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Resources\unattend-OOBEAutomate.xml" />
|
||||||
|
<None Include="Resources\EI.CFG.txt" />
|
||||||
<Content Include="Resources\UWPSystemAppList.txt" />
|
<Content Include="Resources\UWPSystemAppList.txt" />
|
||||||
<Content Include="Simpleicons-Team-Simple-Windows-11.ico" />
|
<Content Include="Simpleicons-Team-Simple-Windows-11.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using Perfect11.Library;
|
|||||||
|
|
||||||
namespace Perfect11
|
namespace Perfect11
|
||||||
{
|
{
|
||||||
internal static class Program
|
internal class Program
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
@@ -15,20 +15,26 @@ namespace Perfect11
|
|||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
|
||||||
// Check if the system is Windows 11
|
|
||||||
if (!Utilities.IsWindows11())
|
|
||||||
{
|
|
||||||
MessageBox.Show("This tool requires Windows 11!","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Error);
|
|
||||||
}
|
|
||||||
// Hide exception window because of some nags with the library.
|
// Hide exception window because of some nags with the library.
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Application.ThreadException += (s, e) =>
|
Application.ThreadException += (s, e) =>
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Errore: {e.Exception.Message}\n{e.Exception.StackTrace}");
|
Console.WriteLine($"Error: {e.Exception.Message}\n{e.Exception.StackTrace}");
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
Application.ThreadException += (s, e) => { };
|
Application.ThreadException += (s, e) => { };
|
||||||
#endif
|
#endif
|
||||||
|
if (Utilities.GetSystemArchitecture().ToLower() == "x86")
|
||||||
|
{
|
||||||
|
MessageBox.Show("You're running on Windows 32 bits, this program requires Windows 64 bits.","Perfect11",MessageBoxButtons.OK,MessageBoxIcon.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (Utilities.GetSystemArchitecture().ToLower() == "a64")
|
||||||
|
{
|
||||||
|
var dialog = MessageBox.Show("You're running Windows on ARM. ARM64 support for this tool is experimental, and not everything will work fine. Are you sure to continue?","Perfect11",MessageBoxButtons.YesNo,MessageBoxIcon.Warning,MessageBoxDefaultButton.Button2);
|
||||||
|
if (dialog == DialogResult.No)
|
||||||
|
return;
|
||||||
|
}
|
||||||
Application.Run(new Form1());
|
Application.Run(new Form1());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
47
Perfect11/Properties/Resources.Designer.cs
generated
47
Perfect11/Properties/Resources.Designer.cs
generated
@@ -61,7 +61,52 @@ namespace Perfect11.Properties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to .
|
/// Looks up a localized string similar to [Channel]
|
||||||
|
///OEM
|
||||||
|
///[VL]
|
||||||
|
///0.
|
||||||
|
/// </summary>
|
||||||
|
internal static string EI_CFG {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("EI_CFG", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?>
|
||||||
|
///<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||||
|
/// <settings pass="oobeSystem">
|
||||||
|
/// <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
/// <OOBE>
|
||||||
|
/// <HideEULAPage>true</HideEULAPage>
|
||||||
|
/// <HideOEMRegistrat [rest of string was truncated]";.
|
||||||
|
/// </summary>
|
||||||
|
internal static string unattend_OOBEAutomate {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("unattend_OOBEAutomate", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to 1527c705-839a-4832-9118-54d4Bd6a0c89
|
||||||
|
///c5e2524a-ea46-4f67-841f-6a9465d9d515
|
||||||
|
///E2A4F912-2574-4A75-9BB0-0D023378592B
|
||||||
|
///F46D4000-FD22-4DB4-AC8E-4E1DDDE828FE
|
||||||
|
///InputApp
|
||||||
|
///Microsoft.AAD.BrokerPlugin
|
||||||
|
///Microsoft.AccountsControl
|
||||||
|
///Microsoft.Advertising.Xaml
|
||||||
|
///Microsoft.AsyncTextService
|
||||||
|
///Microsoft.BioEnrollment
|
||||||
|
///Microsoft.CredDialogHost
|
||||||
|
///Microsoft.ECApp
|
||||||
|
///Microsoft.LockApp
|
||||||
|
///Microsoft.MicrosoftEdge
|
||||||
|
///Microsoft.MicrosoftEdgeDevToolsClient
|
||||||
|
///Microsoft.NET
|
||||||
|
///Microsoft.PPIProjection
|
||||||
|
///Microsoft.Services.Store.Engagement
|
||||||
|
///Microsoft.V [rest of string was truncated]";.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string UWPSystemAppList {
|
internal static string UWPSystemAppList {
|
||||||
get {
|
get {
|
||||||
|
|||||||
@@ -118,8 +118,17 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="EI_CFG" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\EI.CFG.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||||
|
<comment>EI.CFG for Windows</comment>
|
||||||
|
</data>
|
||||||
|
<data name="unattend_OOBEAutomate" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\unattend-OOBEAutomate.xml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||||
|
<comment>Unattend.xml for OOBE automation</comment>
|
||||||
|
</data>
|
||||||
<data name="UWPSystemAppList" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="UWPSystemAppList" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\UWPSystemAppList.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
<value>..\Resources\UWPSystemAppList.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||||
|
<comment>List of UWP System Apps</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="win11logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="win11logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Images\win11logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Images\win11logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
|||||||
4
Perfect11/Properties/Settings.Designer.cs
generated
4
Perfect11/Properties/Settings.Designer.cs
generated
@@ -15,9 +15,9 @@ namespace Perfect11.Properties {
|
|||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|
||||||
public static Settings Default {
|
public Settings Default {
|
||||||
get {
|
get {
|
||||||
return defaultInstance;
|
return defaultInstance;
|
||||||
}
|
}
|
||||||
|
|||||||
4
Perfect11/Resources/EI.CFG.txt
Normal file
4
Perfect11/Resources/EI.CFG.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
[Channel]
|
||||||
|
OEM
|
||||||
|
[VL]
|
||||||
|
0
|
||||||
14
Perfect11/Resources/unattend-OOBEAutomate.xml
Normal file
14
Perfect11/Resources/unattend-OOBEAutomate.xml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||||
|
<settings pass="oobeSystem">
|
||||||
|
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<OOBE>
|
||||||
|
<HideEULAPage>true</HideEULAPage>
|
||||||
|
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
|
||||||
|
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
|
||||||
|
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
||||||
|
<ProtectYourPC>3</ProtectYourPC>
|
||||||
|
</OOBE>
|
||||||
|
</component>
|
||||||
|
</settings>
|
||||||
|
</unattend>
|
||||||
BIN
Perfect11/Tools/7-zip.dll
Normal file
BIN
Perfect11/Tools/7-zip.dll
Normal file
Binary file not shown.
BIN
Perfect11/Tools/7z.dll
Normal file
BIN
Perfect11/Tools/7z.dll
Normal file
Binary file not shown.
BIN
Perfect11/Tools/7z.exe
Normal file
BIN
Perfect11/Tools/7z.exe
Normal file
Binary file not shown.
BIN
Perfect11/Tools/7z.sfx
Normal file
BIN
Perfect11/Tools/7z.sfx
Normal file
Binary file not shown.
BIN
Perfect11/Tools/7zCon.sfx
Normal file
BIN
Perfect11/Tools/7zCon.sfx
Normal file
Binary file not shown.
146
Perfect11/Tools/license.txt
Normal file
146
Perfect11/Tools/license.txt
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
7-Zip
|
||||||
|
~~~~~
|
||||||
|
License for use and distribution
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
7-Zip Copyright (C) 1999-2025 Igor Pavlov.
|
||||||
|
|
||||||
|
The licenses for files are:
|
||||||
|
|
||||||
|
- 7z.dll:
|
||||||
|
- The "GNU LGPL" as main license for most of the code
|
||||||
|
- The "GNU LGPL" with "unRAR license restriction" for some code
|
||||||
|
- The "BSD 3-clause License" for some code
|
||||||
|
- The "BSD 2-clause License" for some code
|
||||||
|
- All other files: the "GNU LGPL".
|
||||||
|
|
||||||
|
Redistributions in binary form must reproduce related license information from this file.
|
||||||
|
|
||||||
|
Note:
|
||||||
|
You can use 7-Zip on any computer, including a computer in a commercial
|
||||||
|
organization. You don't need to register or pay for 7-Zip.
|
||||||
|
|
||||||
|
|
||||||
|
GNU LGPL information
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You can receive a copy of the GNU Lesser General Public License from
|
||||||
|
http://www.gnu.org/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BSD 3-clause License in 7-Zip code
|
||||||
|
----------------------------------
|
||||||
|
|
||||||
|
The "BSD 3-clause License" is used for the following code in 7z.dll
|
||||||
|
1) LZFSE data decompression.
|
||||||
|
That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
|
||||||
|
that also uses the "BSD 3-clause License".
|
||||||
|
2) ZSTD data decompression.
|
||||||
|
that code was developed using original zstd decoder code as reference code.
|
||||||
|
The original zstd decoder code was developed by Facebook Inc,
|
||||||
|
that also uses the "BSD 3-clause License".
|
||||||
|
|
||||||
|
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
|
||||||
|
Copyright (c) Facebook, Inc. All rights reserved.
|
||||||
|
Copyright (c) 2023-2025 Igor Pavlov.
|
||||||
|
|
||||||
|
Text of the "BSD 3-clause License"
|
||||||
|
----------------------------------
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the copyright holder nor the names of its contributors may
|
||||||
|
be used to endorse or promote products derived from this software without
|
||||||
|
specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BSD 2-clause License in 7-Zip code
|
||||||
|
----------------------------------
|
||||||
|
|
||||||
|
The "BSD 2-clause License" is used for the XXH64 code in 7-Zip.
|
||||||
|
|
||||||
|
XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet.
|
||||||
|
|
||||||
|
Copyright (c) 2012-2021 Yann Collet.
|
||||||
|
Copyright (c) 2023-2025 Igor Pavlov.
|
||||||
|
|
||||||
|
Text of the "BSD 2-clause License"
|
||||||
|
----------------------------------
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
unRAR license restriction
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
The decompression engine for RAR archives was developed using source
|
||||||
|
code of unRAR program.
|
||||||
|
All copyrights to original unRAR code are owned by Alexander Roshal.
|
||||||
|
|
||||||
|
The license for original unRAR code has the following restriction:
|
||||||
|
|
||||||
|
The unRAR sources cannot be used to re-create the RAR compression algorithm,
|
||||||
|
which is proprietary. Distribution of modified unRAR sources in separate form
|
||||||
|
or as a part of other software is permitted, provided that it is clearly
|
||||||
|
stated in the documentation and source comments that the code may
|
||||||
|
not be used to develop a RAR (WinRAR) compatible archiver.
|
||||||
|
|
||||||
|
--
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
|
<package id="Newtonsoft.Json" version="13.0.4" targetFramework="net48" />
|
||||||
<package id="ReaLTaiizor" version="3.8.1.3" targetFramework="net48" />
|
<package id="ReaLTaiizor" version="3.8.1.3" targetFramework="net48" />
|
||||||
</packages>
|
</packages>
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{0BCF623D-B134-4824-9167-2F0A39532BDD}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Perfect11.Inbox.DisableAds</RootNamespace>
|
||||||
|
<AssemblyName>Perfect11.Inbox.DisableAds</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Tweak.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Perfect11.TweaksInterface\Perfect11.TweaksInterface.csproj">
|
||||||
|
<Project>{b3f8761a-b4b2-4378-9fe8-06bbfc39fce6}</Project>
|
||||||
|
<Name>Perfect11.TweaksInterface</Name>
|
||||||
|
<Private>False</Private>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
33
tweaks/Perfect11.Inbox.DisableAds/Properties/AssemblyInfo.cs
Normal file
33
tweaks/Perfect11.Inbox.DisableAds/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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("Perfect11 Inbox Tweaks")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
[assembly: AssemblyProduct("Perfect11")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
|
||||||
|
[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("0bcf623d-b134-4824-9167-2f0a39532bdd")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
57
tweaks/Perfect11.Inbox.DisableAds/Tweak.cs
Normal file
57
tweaks/Perfect11.Inbox.DisableAds/Tweak.cs
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Perfect11.Inbox.DisableAds
|
||||||
|
{
|
||||||
|
public class Tweak : IPlugin
|
||||||
|
{
|
||||||
|
public string Name => "Disable ADs";
|
||||||
|
public string Description => "Disables ADs and promotions in Windows.";
|
||||||
|
public string Category => "Annoyances";
|
||||||
|
public string Execute()
|
||||||
|
{
|
||||||
|
// 1️ ContentDeliveryManager
|
||||||
|
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"))
|
||||||
|
{
|
||||||
|
key?.SetValue("SubscribedContent-338393Enabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("RotatingLockScreenEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("RotatingLockScreenOverlayEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("SubscribedContent-338387Enabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("SilentInstalledAppsEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("SoftLandingEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2️ AdvertisingInfo
|
||||||
|
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo"))
|
||||||
|
{
|
||||||
|
key?.SetValue("Enabled", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3️ Privacy
|
||||||
|
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Privacy"))
|
||||||
|
{
|
||||||
|
key?.SetValue("TailoredExperiencesWithDiagnosticDataEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 4️ Explorer
|
||||||
|
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"))
|
||||||
|
{
|
||||||
|
key?.SetValue("Start_IrisRecommendations", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("ShowSyncProviderNotifications", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 5️ UserProfileEngagement
|
||||||
|
using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement"))
|
||||||
|
{
|
||||||
|
key?.SetValue("ScoobeSystemSettingEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
return "ADs disabled successfully.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{998241DA-25C9-4CB6-B893-7158A387C030}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Perfect11.Inbox.DisableVBS</RootNamespace>
|
||||||
|
<AssemblyName>Perfect11.Inbox.DisableVBS</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Tweak.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Perfect11.TweaksInterface\Perfect11.TweaksInterface.csproj">
|
||||||
|
<Project>{b3f8761a-b4b2-4378-9fe8-06bbfc39fce6}</Project>
|
||||||
|
<Name>Perfect11.TweaksInterface</Name>
|
||||||
|
<Private>False</Private>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
33
tweaks/Perfect11.Inbox.DisableVBS/Properties/AssemblyInfo.cs
Normal file
33
tweaks/Perfect11.Inbox.DisableVBS/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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("Perfect11 Inbox Tweaks")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
[assembly: AssemblyProduct("Perfect11")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
|
||||||
|
[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("998241da-25c9-4cb6-b893-7158a387c030")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
70
tweaks/Perfect11.Inbox.DisableVBS/Tweak.cs
Normal file
70
tweaks/Perfect11.Inbox.DisableVBS/Tweak.cs
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace Perfect11.Inbox.DisableVBS
|
||||||
|
{
|
||||||
|
public class Tweak : IPlugin
|
||||||
|
{
|
||||||
|
public string Name => "Disable VBS";
|
||||||
|
public string Description => "Disables Virtualization Based Security and Credential Guard (requires additional steps)";
|
||||||
|
public string Category => "Annoyances";
|
||||||
|
public string Execute()
|
||||||
|
{
|
||||||
|
void RunCommand(string command)
|
||||||
|
{
|
||||||
|
var psi = new ProcessStartInfo("cmd.exe", "/c " + command)
|
||||||
|
{
|
||||||
|
RedirectStandardOutput = true,
|
||||||
|
RedirectStandardError = true,
|
||||||
|
UseShellExecute = false,
|
||||||
|
CreateNoWindow = true,
|
||||||
|
//Verb = "runas"
|
||||||
|
};
|
||||||
|
|
||||||
|
using (var process = Process.Start(psi))
|
||||||
|
{
|
||||||
|
process.WaitForExit();
|
||||||
|
if (process.ExitCode != 0)
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException($"Comando fallito: {command}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Registry.SetValue(
|
||||||
|
@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa",
|
||||||
|
"LsaCfgFlags",
|
||||||
|
0,
|
||||||
|
RegistryValueKind.DWord
|
||||||
|
);
|
||||||
|
Registry.SetValue(
|
||||||
|
@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard",
|
||||||
|
"LsaCfgFlags",
|
||||||
|
0,
|
||||||
|
RegistryValueKind.DWord
|
||||||
|
);
|
||||||
|
RunCommand("mountvol X: /s");
|
||||||
|
string windowsDir = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
|
||||||
|
string source = Path.Combine(windowsDir, @"System32\SecConfig.efi");
|
||||||
|
string dest = @"X:\EFI\Microsoft\Boot\SecConfig.efi";
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(dest));
|
||||||
|
File.Copy(source, dest, true);
|
||||||
|
RunCommand(@"bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d ""DebugTool"" /application osloader");
|
||||||
|
RunCommand(@"bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path ""\EFI\Microsoft\Boot\SecConfig.efi""");
|
||||||
|
RunCommand(@"bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}");
|
||||||
|
RunCommand(@"bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS");
|
||||||
|
RunCommand(@"bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:");
|
||||||
|
RunCommand("mountvol X: /d");
|
||||||
|
return "Disabling Credential Guard is almost done!\r\nNow, restart your system and when asked, press F3 or the Windows key to disable both credential guard and virtualization based security.\r\nAfter reboot, you might need to set up your PIN again.";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new Exception("Error: " + ex.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{BC3A0BBD-E076-426E-88C9-C36E1F6D3326}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Perfect11.Inbox.RemoveWindowsAI</RootNamespace>
|
||||||
|
<AssemblyName>Perfect11.Inbox.RemoveWindowsAI</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Tweak.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Perfect11.TweaksInterface\Perfect11.TweaksInterface.csproj">
|
||||||
|
<Project>{b3f8761a-b4b2-4378-9fe8-06bbfc39fce6}</Project>
|
||||||
|
<Name>Perfect11.TweaksInterface</Name>
|
||||||
|
<Private>False</Private>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
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("Perfect11 Inbox Tweaks")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
[assembly: AssemblyProduct("Perfect11")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
|
||||||
|
[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("bc3a0bbd-e076-426e-88c9-c36e1f6d3326")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
45
tweaks/Perfect11.Inbox.RemoveWindowsAI/Tweak.cs
Normal file
45
tweaks/Perfect11.Inbox.RemoveWindowsAI/Tweak.cs
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Perfect11.Inbox.RemoveWindowsAI
|
||||||
|
{
|
||||||
|
public class Tweak : IPlugin
|
||||||
|
{
|
||||||
|
public string Name => "Remove Windows AI";
|
||||||
|
public string Description => "Remove AI components in Windows (PowerShell script by zoicware)";
|
||||||
|
public string Category => "Privacy";
|
||||||
|
public string Execute()
|
||||||
|
{
|
||||||
|
if (MessageBox.Show("To use this tweak, you need to agree with the following additional license terms:\r\n\r\n" +
|
||||||
|
"MIT License\r\n\r\nCopyright (c) 2024 zoicware\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE." +
|
||||||
|
"\r\n\r\n\r\nAgree?","Perfect11",MessageBoxButtons.YesNo,MessageBoxIcon.Information,MessageBoxDefaultButton.Button2) == DialogResult.Yes)
|
||||||
|
{
|
||||||
|
string PowerShell(string command)
|
||||||
|
{
|
||||||
|
ProcessStartInfo psi = new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = "powershell.exe",
|
||||||
|
Arguments = $"-NoProfile -ExecutionPolicy Bypass -Command \"{command}\"",
|
||||||
|
RedirectStandardOutput = true,
|
||||||
|
RedirectStandardError = true,
|
||||||
|
UseShellExecute = false,
|
||||||
|
CreateNoWindow = true
|
||||||
|
};
|
||||||
|
using (Process process = Process.Start(psi))
|
||||||
|
{
|
||||||
|
string output = process.StandardOutput.ReadToEnd();
|
||||||
|
process.WaitForExit();
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return PowerShell("& ([scriptblock]::Create((irm 'https://git.vichingo455.freeddns.org/Vichingo455/RemoveWindowsAI/raw/branch/main/RemoveWindowsAi.ps1')))");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new Exception("Operation aborted by user.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{77376E26-3164-4ED7-9F85-02B3AEBFC751}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Perfect11.Inbox.Spotlight</RootNamespace>
|
||||||
|
<AssemblyName>Perfect11.Inbox.Spotlight</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Tweak.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Perfect11.TweaksInterface\Perfect11.TweaksInterface.csproj">
|
||||||
|
<Project>{b3f8761a-b4b2-4378-9fe8-06bbfc39fce6}</Project>
|
||||||
|
<Name>Perfect11.TweaksInterface</Name>
|
||||||
|
<Private>False</Private>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
33
tweaks/Perfect11.Inbox.Spotlight/Properties/AssemblyInfo.cs
Normal file
33
tweaks/Perfect11.Inbox.Spotlight/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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("Perfect11 Inbox Tweaks")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
[assembly: AssemblyProduct("Perfect11")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
|
||||||
|
[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("77376e26-3164-4ed7-9f85-02b3aebfc751")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
108
tweaks/Perfect11.Inbox.Spotlight/Tweak.cs
Normal file
108
tweaks/Perfect11.Inbox.Spotlight/Tweak.cs
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
|
||||||
|
namespace Perfect11.Inbox.Spotlight
|
||||||
|
{
|
||||||
|
public class Tweak : IPlugin
|
||||||
|
{
|
||||||
|
public string Name => "Enable/Disable Windows Spotlight";
|
||||||
|
public string Description => "Enable or Disable Windows Spotlight feature";
|
||||||
|
public string Category => "Annoyances";
|
||||||
|
public string Execute()
|
||||||
|
{
|
||||||
|
bool IsNotWindowsSpotlight()
|
||||||
|
{
|
||||||
|
const string keyPath = @"SOFTWARE\Policies\Microsoft\Windows\CloudContent";
|
||||||
|
const string valueName = "DisableWindowsSpotlightFeatures";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(keyPath))
|
||||||
|
{
|
||||||
|
if (key == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
object value = key.GetValue(valueName);
|
||||||
|
if (value == null)
|
||||||
|
return false;
|
||||||
|
if (value is int intValue)
|
||||||
|
return intValue == 1;
|
||||||
|
|
||||||
|
string stringValue = value.ToString();
|
||||||
|
if (int.TryParse(stringValue, out int parsed))
|
||||||
|
return parsed == 1;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!IsNotWindowsSpotlight())
|
||||||
|
{
|
||||||
|
using (var key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Policies\Microsoft\Windows\CloudContent"))
|
||||||
|
{
|
||||||
|
key?.SetValue("DisableCloudOptimizedContent", 1, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Policies\Microsoft\Windows\CloudContent"))
|
||||||
|
{
|
||||||
|
key?.SetValue("DisableWindowsSpotlightFeatures", 1, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("DisableWindowsSpotlightWindowsWelcomeExperience", 1, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("DisableWindowsSpotlightOnActionCenter", 1, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("DisableWindowsSpotlightOnSettings", 1, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("DisableThirdPartySuggestions", 1, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"))
|
||||||
|
{
|
||||||
|
key?.SetValue("ContentDeliveryAllowed", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("FeatureManagementEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("SubscribedContentEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("SubscribedContent-338387Enabled", 0, RegistryValueKind.DWord);
|
||||||
|
key?.SetValue("RotatingLockScreenOverlayEnabled", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"))
|
||||||
|
{
|
||||||
|
key?.SetValue("{2cc5ca98-6485-489a-920e-b3e88a6ccce3}", 1, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
return "Spotlight was disabled successfully.";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
using (var key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Policies\Microsoft\Windows\CloudContent"))
|
||||||
|
{
|
||||||
|
key.DeleteValue("DisableCloudOptimizedContent", false);
|
||||||
|
}
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Policies\Microsoft\Windows\CloudContent"))
|
||||||
|
{
|
||||||
|
key.DeleteValue("DisableWindowsSpotlightFeatures", false);
|
||||||
|
key.DeleteValue("DisableWindowsSpotlightWindowsWelcomeExperience", false);
|
||||||
|
key.DeleteValue("DisableWindowsSpotlightOnActionCenter", false);
|
||||||
|
key.DeleteValue("DisableWindowsSpotlightOnSettings", false);
|
||||||
|
key.DeleteValue("DisableThirdPartySuggestions", false);
|
||||||
|
}
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"))
|
||||||
|
{
|
||||||
|
key.DeleteValue("ContentDeliveryAllowed", false);
|
||||||
|
key.DeleteValue("FeatureManagementEnabled", false);
|
||||||
|
key.DeleteValue("SubscribedContentEnabled", false);
|
||||||
|
key.DeleteValue("SubscribedContent-338387Enabled", false);
|
||||||
|
key.DeleteValue("RotatingLockScreenOverlayEnabled", false);
|
||||||
|
}
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"))
|
||||||
|
{
|
||||||
|
key.DeleteValue("{2cc5ca98-6485-489a-920e-b3e88a6ccce3}", false);
|
||||||
|
}
|
||||||
|
return "Spotlight was enabled successfully.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{A33DF785-C123-48E2-B21E-A229FC8FFB55}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Perfect11.Inbox.UninstallEdge</RootNamespace>
|
||||||
|
<AssemblyName>Perfect11.Inbox.UninstallEdge</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Tweak.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Perfect11.TweaksInterface\Perfect11.TweaksInterface.csproj">
|
||||||
|
<Project>{b3f8761a-b4b2-4378-9fe8-06bbfc39fce6}</Project>
|
||||||
|
<Name>Perfect11.TweaksInterface</Name>
|
||||||
|
<Private>False</Private>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
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("Perfect11 Inbox Tweaks")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
[assembly: AssemblyProduct("Perfect11")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
|
||||||
|
[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("a33df785-c123-48e2-b21e-a229fc8ffb55")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
322
tweaks/Perfect11.Inbox.UninstallEdge/Tweak.cs
Normal file
322
tweaks/Perfect11.Inbox.UninstallEdge/Tweak.cs
Normal file
@@ -0,0 +1,322 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Security.Principal;
|
||||||
|
|
||||||
|
namespace Perfect11.Inbox.UninstallEdge
|
||||||
|
{
|
||||||
|
public class Tweak : IPlugin
|
||||||
|
{
|
||||||
|
public string Name => "Uninstall Microsoft Edge";
|
||||||
|
public string Description => "Remove Microsoft Edge from the system.";
|
||||||
|
public string Category => "Apps";
|
||||||
|
public string Execute()
|
||||||
|
{
|
||||||
|
void KillProcessIfRunning(string name)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
foreach (var p in Process.GetProcessesByName(name))
|
||||||
|
{
|
||||||
|
try { p.Kill(); } catch { }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
void RunHidden(string fileName, string args)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var psi = new ProcessStartInfo(fileName, args)
|
||||||
|
{
|
||||||
|
CreateNoWindow = true,
|
||||||
|
UseShellExecute = false,
|
||||||
|
RedirectStandardOutput = false,
|
||||||
|
RedirectStandardError = false
|
||||||
|
};
|
||||||
|
var p = Process.Start(psi);
|
||||||
|
p?.WaitForExit();
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryDeleteRegistryKey(RegistryKey hive, string subKey)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
hive.DeleteSubKeyTree(subKey, throwOnMissingSubKey: false);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryDeleteRegistryValue(RegistryKey hive, string subKey, string valueName)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (var key = hive.OpenSubKey(subKey, writable: true))
|
||||||
|
{
|
||||||
|
key?.DeleteValue(valueName, throwOnMissingValue: false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryCreateSetValue(RegistryKey hive, string subKey, string valueName, int dwordValue, bool createIfMissing = true)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (createIfMissing)
|
||||||
|
{
|
||||||
|
using (var key = hive.CreateSubKey(subKey))
|
||||||
|
{
|
||||||
|
key?.SetValue(valueName, dwordValue, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
using (var key = hive.OpenSubKey(subKey, writable: true))
|
||||||
|
{
|
||||||
|
key?.SetValue(valueName, dwordValue, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryDeleteDirectory(string path)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (Directory.Exists(path))
|
||||||
|
Directory.Delete(path, recursive: true);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
TryTakeOwnershipAndDelete(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryTakeOwnershipAndDelete(string path)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (File.Exists(path) || Directory.Exists(path))
|
||||||
|
{
|
||||||
|
RunHidden("takeown", $"/f \"{path}\" /a /r /d y");
|
||||||
|
RunHidden("icacls", $"\"{path}\" /grant Everyone:F /t /c");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (File.Exists(path)) File.Delete(path);
|
||||||
|
else if (Directory.Exists(path)) Directory.Delete(path, true);
|
||||||
|
}
|
||||||
|
catch {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
void TryDeleteIfExists(string file)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (File.Exists(file))
|
||||||
|
File.Delete(file);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
|
|
||||||
|
string GetCurrentUserSid()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var nt = WindowsIdentity.GetCurrent();
|
||||||
|
return nt?.User?.Value ?? "";
|
||||||
|
}
|
||||||
|
catch { return ""; }
|
||||||
|
}
|
||||||
|
|
||||||
|
string[] RunPowerShellAndGetLines(string command)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var psi = new ProcessStartInfo("powershell", "-NoProfile -Command " + WrapForPowerShell(command))
|
||||||
|
{
|
||||||
|
CreateNoWindow = true,
|
||||||
|
UseShellExecute = false,
|
||||||
|
RedirectStandardOutput = true,
|
||||||
|
RedirectStandardError = true
|
||||||
|
};
|
||||||
|
var p = Process.Start(psi);
|
||||||
|
string output = p.StandardOutput.ReadToEnd();
|
||||||
|
p.WaitForExit();
|
||||||
|
return output.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return new string[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
string WrapForPowerShell(string cmd)
|
||||||
|
{
|
||||||
|
return "\"" + cmd.Replace("\"", "\\\"") + "\"";
|
||||||
|
}
|
||||||
|
|
||||||
|
string pf = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
|
||||||
|
string pf86 = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
|
||||||
|
|
||||||
|
bool existsInPf = Directory.Exists(Path.Combine(pf, "Microsoft\\Edge"));
|
||||||
|
bool existsInPf86 = Directory.Exists(Path.Combine(pf86, "Microsoft\\Edge"));
|
||||||
|
|
||||||
|
if (!existsInPf && !existsInPf86)
|
||||||
|
{
|
||||||
|
throw new Exception("Microsoft Edge not found.");
|
||||||
|
}
|
||||||
|
if (existsInPf86)
|
||||||
|
{
|
||||||
|
KillProcessIfRunning("msedge");
|
||||||
|
KillProcessIfRunning("MicrosoftEdgeUpdate");
|
||||||
|
KillProcessIfRunning("msedgewebview2");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Edge");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\EdgeIntegration");
|
||||||
|
RunHidden("net", "stop MicrosoftEdgeElevationService");
|
||||||
|
RunHidden("sc", "delete MicrosoftEdgeElevationService");
|
||||||
|
RunHidden("net", "stop edgeupdate");
|
||||||
|
RunHidden("sc", "delete edgeupdate");
|
||||||
|
RunHidden("net", "stop edgeupdatem");
|
||||||
|
RunHidden("sc", "delete edgeupdatem");
|
||||||
|
TryDeleteDirectory(Path.Combine(pf86, "Microsoft\\Edge"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf86, "Microsoft\\EdgeCore"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf86, "Microsoft\\EdgeUpdate"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf86, "Microsoft\\EdgeWebView"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf86, "Microsoft\\Temp"));
|
||||||
|
TryDeleteDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Microsoft\\EdgeUpdate"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\Edge"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\EdgeCore"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\EdgeUpdate"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\EdgeWebView"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\Temp"));
|
||||||
|
TryCreateSetValue(Registry.LocalMachine, @"Software\Microsoft\EdgeUpdate", "DoNotUpdateToEdgeWithChromium", 1);
|
||||||
|
TryCreateSetValue(Registry.LocalMachine, @"Software\WOW6432Node\Microsoft\EdgeUpdate", "DoNotUpdateToEdgeWithChromium", 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
KillProcessIfRunning("msedge");
|
||||||
|
KillProcessIfRunning("MicrosoftEdgeUpdate");
|
||||||
|
KillProcessIfRunning("msedgewebview2");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Edge");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Microsoft\Internet Explorer\EdgeIntegration");
|
||||||
|
RunHidden("net", "stop MicrosoftEdgeElevationService");
|
||||||
|
RunHidden("sc", "delete MicrosoftEdgeElevationService");
|
||||||
|
RunHidden("net", "stop edgeupdate");
|
||||||
|
RunHidden("sc", "delete edgeupdate");
|
||||||
|
RunHidden("net", "stop edgeupdatem");
|
||||||
|
RunHidden("sc", "delete edgeupdatem");
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\Edge"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\EdgeCore"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\EdgeUpdate"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\EdgeWebView"));
|
||||||
|
TryDeleteDirectory(Path.Combine(pf, "Microsoft\\Temp"));
|
||||||
|
TryCreateSetValue(Registry.LocalMachine, @"Software\Microsoft\EdgeUpdate", "DoNotUpdateToEdgeWithChromium", 1);
|
||||||
|
}
|
||||||
|
TryDeleteIfExists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Microsoft Edge.lnk"));
|
||||||
|
TryDeleteIfExists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory), "Microsoft Edge.lnk"));
|
||||||
|
TryDeleteIfExists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu), "Programs\\Microsoft Edge.lnk"));
|
||||||
|
TryDeleteIfExists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs\\Microsoft Edge.lnk"));
|
||||||
|
TryDeleteIfExists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar\\Microsoft Edge.lnk"));
|
||||||
|
var systemTasksPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "System32", "Tasks");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
foreach (var f in Directory.EnumerateFiles(systemTasksPath, "*MicrosoftEdge*", SearchOption.AllDirectories))
|
||||||
|
{
|
||||||
|
TryTakeOwnershipAndDelete(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {}
|
||||||
|
string userSid = GetCurrentUserSid();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string psListCmd = "Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*microsoftedge*' } | Select-Object -ExpandProperty PackageFullName";
|
||||||
|
var edgePackages = RunPowerShellAndGetLines(psListCmd);
|
||||||
|
|
||||||
|
foreach (var pkg in edgePackages)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(pkg)) continue;
|
||||||
|
string packageName = pkg.Trim();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(userSid))
|
||||||
|
{
|
||||||
|
TryCreateSetValue(Registry.LocalMachine, $@"SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\{userSid}\{packageName}", "", 0, createIfMissing: true);
|
||||||
|
TryCreateSetValue(Registry.LocalMachine, $@"SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\S-1-5-18\{packageName}", "", 0, createIfMissing: true);
|
||||||
|
TryCreateSetValue(Registry.LocalMachine, $@"SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\{packageName}", "", 0, createIfMissing: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
RunHidden("powershell", $"-Command \"Remove-AppxPackage -Package '{packageName}'\" 2>$null");
|
||||||
|
RunHidden("powershell", $"-Command \"Remove-AppxPackage -Package '{packageName}' -AllUsers\" 2>$null");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {}
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var sysRoot = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
|
||||||
|
foreach (var f in Directory.EnumerateFiles(sysRoot, "Microsoft.MicrosoftEdge*", SearchOption.AllDirectories))
|
||||||
|
{
|
||||||
|
TryTakeOwnershipAndDelete(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
foreach (var f in Directory.EnumerateFiles(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "System32"), "MicrosoftEdge*.exe", SearchOption.AllDirectories))
|
||||||
|
{
|
||||||
|
TryTakeOwnershipAndDelete(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
foreach (var f in Directory.EnumerateFiles(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "SysWOW64"), "MicrosoftEdge*.exe", SearchOption.AllDirectories))
|
||||||
|
{
|
||||||
|
TryTakeOwnershipAndDelete(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\Clients\StartMenuInternet\Microsoft Edge");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\RegisteredApplications", "Microsoft Edge");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.htm\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.html\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.mht\OpenWithProgIds", "MSEdgeMHT");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.mhtml\OpenWithProgIds", "MSEdgeMHT");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.pdf\OpenWithProgIds", "MSEdgePDF");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.shtml\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.svg\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.webp\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.xht\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.xhtml\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\Classes\.xml\OpenWithProgIds", "MSEdgeHTM");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Microsoft Edge");
|
||||||
|
TryDeleteRegistryValue(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\RegisteredApplications", "Microsoft Edge");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Edge");
|
||||||
|
TryDeleteRegistryKey(Registry.LocalMachine, @"SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\EdgeIntegration");
|
||||||
|
return "Microsoft Edge should now be uninstalled.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
|||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("Perfect11 Inbox Plugins")]
|
[assembly: AssemblyTitle("Perfect11 Inbox Tweaks")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("Vichingo455")]
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Perfect11.Inbox.UninstallOneDrive
|
namespace Perfect11.Inbox.UninstallOneDrive
|
||||||
{
|
{
|
||||||
@@ -46,10 +47,13 @@ namespace Perfect11.Inbox.UninstallOneDrive
|
|||||||
{
|
{
|
||||||
string oneDrivePath = Path.Combine(dir, "OneDrive");
|
string oneDrivePath = Path.Combine(dir, "OneDrive");
|
||||||
if (Directory.Exists(oneDrivePath) && Directory.EnumerateFileSystemEntries(oneDrivePath).Any())
|
if (Directory.Exists(oneDrivePath) && Directory.EnumerateFileSystemEntries(oneDrivePath).Any())
|
||||||
|
{
|
||||||
|
if (MessageBox.Show("OneDrive files and/or folder was found, it might be empty or it might contain some files (who knows?). Are you sure to continue","Perfect11",MessageBoxButtons.YesNo,MessageBoxIcon.Warning,MessageBoxDefaultButton.Button2) == DialogResult.No)
|
||||||
{
|
{
|
||||||
throw new Exception("OneDrive files found, cannot continue!");
|
throw new Exception("OneDrive files found, cannot continue!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// --- Step 2: Kill OneDrive process ---
|
// --- Step 2: Kill OneDrive process ---
|
||||||
foreach (var proc in Process.GetProcessesByName("OneDrive"))
|
foreach (var proc in Process.GetProcessesByName("OneDrive"))
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{F77922A2-B913-400E-8789-4867FD1BB351}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>Perfect11.Inbox.Widgets</RootNamespace>
|
||||||
|
<AssemblyName>Perfect11.Inbox.Widgets</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>none</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Tweak.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Perfect11.TweaksInterface\Perfect11.TweaksInterface.csproj">
|
||||||
|
<Project>{b3f8761a-b4b2-4378-9fe8-06bbfc39fce6}</Project>
|
||||||
|
<Name>Perfect11.TweaksInterface</Name>
|
||||||
|
<Private>False</Private>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
33
tweaks/Perfect11.Inbox.Widgets/Properties/AssemblyInfo.cs
Normal file
33
tweaks/Perfect11.Inbox.Widgets/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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("Perfect11 Inbox Tweaks")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("Vichingo455")]
|
||||||
|
[assembly: AssemblyProduct("Perfect11")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2025 Vichingo455")]
|
||||||
|
[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("f77922a2-b913-400e-8789-4867fd1bb351")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
71
tweaks/Perfect11.Inbox.Widgets/Tweak.cs
Normal file
71
tweaks/Perfect11.Inbox.Widgets/Tweak.cs
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
using Microsoft.Win32;
|
||||||
|
using Perfect11.TweaksInterface;
|
||||||
|
|
||||||
|
namespace Perfect11.Inbox.Widgets
|
||||||
|
{
|
||||||
|
public class Tweak : IPlugin
|
||||||
|
{
|
||||||
|
public string Name => "Enable/Disable Widgets";
|
||||||
|
public string Description => "Enable or Disable Windows 11 Widgets";
|
||||||
|
public string Category => "Annoyances";
|
||||||
|
|
||||||
|
public string Execute()
|
||||||
|
{
|
||||||
|
bool Enabled()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (var key = Registry.CurrentUser.OpenSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"))
|
||||||
|
{
|
||||||
|
object value = key?.GetValue("TaskbarDa");
|
||||||
|
if (value is int intValue)
|
||||||
|
return intValue == 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (Enabled())
|
||||||
|
{
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"))
|
||||||
|
{
|
||||||
|
key?.SetValue("TaskbarDa", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
using (var policyKey = Registry.LocalMachine.CreateSubKey(
|
||||||
|
@"SOFTWARE\Policies\Microsoft\Dsh"))
|
||||||
|
{
|
||||||
|
policyKey?.SetValue("AllowNewsAndInterests", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
using (var taskbarKey = Registry.CurrentUser.CreateSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Feeds"))
|
||||||
|
{
|
||||||
|
taskbarKey?.SetValue("ShellFeedsTaskbarViewMode", 2, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
return "Widgets have been disabled successfully! Please consider to restart File Explorer or log off and log back in for changes to apply.";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
using (var key = Registry.CurrentUser.CreateSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"))
|
||||||
|
{
|
||||||
|
key?.SetValue("TaskbarDa", 1, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
using (var policyKey = Registry.LocalMachine.CreateSubKey(
|
||||||
|
@"SOFTWARE\Policies\Microsoft\Dsh"))
|
||||||
|
{
|
||||||
|
policyKey?.SetValue("AllowNewsAndInterests", 1, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
|
||||||
|
using (var taskbarKey = Registry.CurrentUser.CreateSubKey(
|
||||||
|
@"Software\Microsoft\Windows\CurrentVersion\Feeds"))
|
||||||
|
{
|
||||||
|
taskbarKey?.SetValue("ShellFeedsTaskbarViewMode", 0, RegistryValueKind.DWord);
|
||||||
|
}
|
||||||
|
return "Widgets have been enabled successfully! Please consider to restart File Explorer or log off and log back in for changes to apply.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user