Skip to content

Commit 3b601f8

Browse files
Minor QoL improvements
Added extra layer of protection against deleting user data, made internet check a lot more reliable.
1 parent 2bad853 commit 3b601f8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

BEE2_Installer.ahk

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ If (A_Args[1])
2525
; Check for internet access
2626
SetWorkingDir %A_Temp%
2727
FileDelete, internet_check.tmp
28-
UrlDownloadToFile, https://www.example.com/, internet_check.tmp
28+
UrlDownloadToFile, https://github.com/programmer2514/BEE2.4-Installer-Automatic/blob/master/internet_check.tmp?raw=true, internet_check.tmp
2929

3030
If ((ErrorLevel = 1) && (installFlag != 1))
3131
{
32-
MsgBox, 0x10, Better Extended Editor for Portal 2, No internet connection!`nCould not check for updates
32+
MsgBox, 0x10, BEE2 Installer - No internet connection!, The installer was unable to check for updates.`nPlease check your internet connection and try again.
3333

3434
if (installFlag = 3)
3535
{
@@ -375,8 +375,12 @@ UninstallBEE2:
375375
}
376376
IfMsgBox Yes
377377
{
378-
SetWorkingDir, %A_AppData%
379-
FileRemoveDir, BEEMOD2, 1
378+
MsgBox, 0x123, BEE2 Uninstaller, Are you sure you would like to remove ALL USER DATA?`nThis action cannot be undone.
379+
IfMsgBox Yes
380+
{
381+
SetWorkingDir, %A_AppData%
382+
FileRemoveDir, BEEMOD2, 1
383+
}
380384
}
381385

382386
; Remove application/packages

0 commit comments

Comments
 (0)