mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Cleanup Roblox folder on uninstallation
This commit is contained in:
parent
767783ae22
commit
bca6e3d21b
@ -670,6 +670,7 @@ namespace Bloxstrap
|
|||||||
SetStatus($"Uninstalling {App.ProjectName}...");
|
SetStatus($"Uninstalling {App.ProjectName}...");
|
||||||
|
|
||||||
App.ShouldSaveConfigs = false;
|
App.ShouldSaveConfigs = false;
|
||||||
|
bool robloxStillInstalled = true;
|
||||||
|
|
||||||
// check if stock bootstrapper is still installed
|
// check if stock bootstrapper is still installed
|
||||||
RegistryKey? bootstrapperKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\roblox-player");
|
RegistryKey? bootstrapperKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\roblox-player");
|
||||||
@ -677,6 +678,8 @@ namespace Bloxstrap
|
|||||||
{
|
{
|
||||||
ProtocolHandler.Unregister("roblox");
|
ProtocolHandler.Unregister("roblox");
|
||||||
ProtocolHandler.Unregister("roblox-player");
|
ProtocolHandler.Unregister("roblox-player");
|
||||||
|
|
||||||
|
robloxStillInstalled = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\roblox-studio") is not null;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -716,6 +719,11 @@ namespace Bloxstrap
|
|||||||
cleanupSequence.Add(() => Directory.Delete(Paths.Base, true));
|
cleanupSequence.Add(() => Directory.Delete(Paths.Base, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string robloxFolder = Path.Combine(Paths.LocalAppData, "Roblox");
|
||||||
|
|
||||||
|
if (!robloxStillInstalled && Directory.Exists(robloxFolder))
|
||||||
|
cleanupSequence.Add(() => Directory.Delete(robloxFolder, true));
|
||||||
|
|
||||||
foreach (var process in cleanupSequence)
|
foreach (var process in cleanupSequence)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user