Skip to content

Portable Tool for an Ideal Windows Setup

-fixed & update images

Greedekscb27d1d72964
diff --git a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
index fbea2dd5..2848a4ad 100644
--- a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
+++ b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
@@ -149,31 +149,35 @@ namespace GTweak.Utilities.Tweaks
else
{
- using (Process process = new Process())
+ try
{
- process.StartInfo.UseShellExecute = false;
- process.StartInfo.CreateNoWindow = true;
- process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
- process.EnableRaisingEvents = true;
- process.StartInfo.FileName = "powershell.exe";
- process.StartInfo.Arguments = $"Get-AppxProvisionedPackage -online | where-object {{$_.PackageName -like '*{packageName}*'}} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
- process.Start();
-
- foreach (string getPackage in PackageScripts[packageName])
+ using (Process process = new Process())
{
- TrustedInstaller.CreateProcessAsTrustedInstaller(SettingsRepository.PID, $@"cmd.exe /c for /d %i in (""{pathPackage}\*{getPackage}*"") do rd /s /q ""%i""");
- process.StartInfo.Arguments = $"Get-AppxPackage -Name {getPackage} -AllUsers | Remove-AppxPackage";
+ process.StartInfo.UseShellExecute = false;
+ process.StartInfo.CreateNoWindow = true;
+ process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
+ process.EnableRaisingEvents = true;
+ process.StartInfo.FileName = "powershell.exe";
+ process.StartInfo.Arguments = $"Get-AppxProvisionedPackage -online | where-object {{$_.PackageName -like '*{packageName}*'}} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
process.Start();
- }
- if (PackageAliases.ContainsKey(packageName))
- {
- process.StartInfo.Arguments = $"Get-AppxProvisionedPackage -online | where-object {{$_.PackageName -like '*{PackageAliases[packageName]}*'}} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
- process.Start();
- }
+ foreach (string getPackage in PackageScripts[packageName])
+ {
+ TrustedInstaller.CreateProcessAsTrustedInstaller(SettingsRepository.PID, $@"cmd.exe /c for /d %i in (""{pathPackage}\*{getPackage}*"") do rd /s /q ""%i""");
+ process.StartInfo.Arguments = $"Get-AppxPackage -Name {getPackage} -AllUsers | Remove-AppxPackage";
+ process.Start();
+ }
+
+ if (PackageAliases.ContainsKey(packageName))
+ {
+ process.StartInfo.Arguments = $"Get-AppxProvisionedPackage -online | where-object {{$_.PackageName -like '*{PackageAliases[packageName]}*'}} | Remove-AppxProvisionedPackage -alluser -online –Verbose";
+ process.Start();
+ }
- process.WaitForExit(1000);
+ process.WaitForExit(1000);
+ }
}
+ catch (Exception ex) { Debug.WriteLine(ex); };
switch (packageName)
{
diff --git a/.github/Preview.gif b/.github/Preview.gif
index 0a6fcd9a..e555212b 100644
Binary files a/.github/Preview.gif and b/.github/Preview.gif differ
diff --git a/.github/en/More.png b/.github/en/More.png
index 548e7956..447540d9 100644
Binary files a/.github/en/More.png and b/.github/en/More.png differ
diff --git a/.github/ru/More.png b/.github/ru/More.png
index 03151aa9..2a4691b7 100644
Binary files a/.github/ru/More.png and b/.github/ru/More.png differ