mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix bug with first-time install checking
https://discord.com/channels/1099468797410283540/1147097708709040128
This commit is contained in:
parent
c810ae9571
commit
ddd053e8b6
@ -496,16 +496,19 @@ namespace Bloxstrap
|
|||||||
ProtocolHandler.Register("roblox", "Roblox", Paths.Application);
|
ProtocolHandler.Register("roblox", "Roblox", Paths.Application);
|
||||||
ProtocolHandler.Register("roblox-player", "Roblox", Paths.Application);
|
ProtocolHandler.Register("roblox-player", "Roblox", Paths.Application);
|
||||||
|
|
||||||
// in case the user is reinstalling
|
if (Environment.ProcessPath is not null && Environment.ProcessPath != Paths.Application)
|
||||||
if (File.Exists(Paths.Application) && App.IsFirstRun)
|
|
||||||
{
|
{
|
||||||
Filesystem.AssertReadOnly(Paths.Application);
|
// in case the user is reinstalling
|
||||||
File.Delete(Paths.Application);
|
if (File.Exists(Paths.Application) && App.IsFirstRun)
|
||||||
}
|
{
|
||||||
|
Filesystem.AssertReadOnly(Paths.Application);
|
||||||
|
File.Delete(Paths.Application);
|
||||||
|
}
|
||||||
|
|
||||||
// check to make sure bootstrapper is in the install folder
|
// check to make sure bootstrapper is in the install folder
|
||||||
if (!File.Exists(Paths.Application) && Environment.ProcessPath is not null)
|
if (!File.Exists(Paths.Application))
|
||||||
File.Copy(Environment.ProcessPath, Paths.Application);
|
File.Copy(Environment.ProcessPath, Paths.Application);
|
||||||
|
}
|
||||||
|
|
||||||
// this SHOULD go under Register(),
|
// this SHOULD go under Register(),
|
||||||
// but then people who have Bloxstrap v1.0.0 installed won't have this without a reinstall
|
// but then people who have Bloxstrap v1.0.0 installed won't have this without a reinstall
|
||||||
|
Loading…
Reference in New Issue
Block a user