mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -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}...");
|
||||
|
||||
App.ShouldSaveConfigs = false;
|
||||
bool robloxStillInstalled = true;
|
||||
|
||||
// check if stock bootstrapper is still installed
|
||||
RegistryKey? bootstrapperKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\roblox-player");
|
||||
@ -677,6 +678,8 @@ namespace Bloxstrap
|
||||
{
|
||||
ProtocolHandler.Unregister("roblox");
|
||||
ProtocolHandler.Unregister("roblox-player");
|
||||
|
||||
robloxStillInstalled = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\roblox-studio") is not null;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -716,6 +719,11 @@ namespace Bloxstrap
|
||||
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)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user