Skip to content

Commit 76611d3

Browse files
author
BetaLeaf
authored
Add files via upload
1 parent 996e886 commit 76611d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

FPR.au3

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ Global $BannedExtensions = [".ADE", ".ADP", ".BAT", ".CHM", ".CMD", ".COM", ".CP
1414
startup()
1515
If $cmdlineraw = "-update" Then
1616
If MsgBox(BitOR($MB_YESNO, $MB_APPLMODAL, $MB_ICONWARNING), "False Positive Reporter", "This will overwrite the list of vendors with the latest known list. Are you sure you want to do this?") = $IDYES Then RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "ToAddress", "REG_SZ", $VendorList)
17-
Exit MsgBox($MB_APPLMODAL, "False Positive Reporter", "Done.")
17+
Exit MsgBox($MB_APPLMODAL, "False Positive Reporter", "Done.")
1818
EndIf
1919
If $cmdlineraw = "-config" Then
2020
setup() ; Run with -config flag to reconfigure.
2121
EndIf
22+
If $cmdlineraw = "" Then Exit MsgBox($MB_APPLMODAL, "False Positive Reporter", "You must drag & drop your file onto FPR.exe")
2223
OnAutoItExitRegister("_OnExit")
2324
FileInstall("7za.exe", @TempDir & "\7za.exe", 1)
2425
FileInstall("7za.dll", @TempDir & "\7za.dll", 1)
2526
FileInstall("7zxa.dll", @TempDir & "\7zxa.dll", 1)
27+
FileInstall("Config FPR.exe", "Config FPR.exe", 1)
28+
FileInstall("Update FPR.exe", "Update FPR.exe", 1)
2629
mail()
2730
Func setup()
2831
#Region ### START Koda GUI section ### Form=
@@ -107,7 +110,7 @@ Func setup()
107110
RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "FromAddress", "REG_SZ", $FromAddress)
108111
RegWrite("HKCU\SOFTWARE\BetaLeaf Software\FalsePositiveReporter", "ssl", "REG_SZ", $ssl)
109112
MsgBox("", "False Positive Reporter - Saved!", "To submit a false positive, simply drag & drop your files onto FPR.exe.")
110-
If MsgBox(BitOR($MB_YESNO, $MB_APPLMODAL), "False Positive Reporter", "Would you also like to add this to the Send To context menu?") = $IDYES Then FileCopy(@ScriptFullPath, @UserProfileDir & "\AppData\Roaming\Microsoft\Windows\SendTo\AV Vendors (for whitelisting).exe",1)
113+
If MsgBox(BitOR($MB_YESNO, $MB_APPLMODAL), "False Positive Reporter", "Would you also like to add this to the Send To context menu?") = $IDYES Then FileCreateShortcut(@ScriptFullPath, @UserProfileDir & "\AppData\Roaming\Microsoft\Windows\SendTo\AV Vendors (for whitelisting).lnk", @ScriptDir)
111114
Exit MsgBox($MB_APPLMODAL, "False Positive Reporter", "Done.")
112115
EndSwitch
113116
WEnd

0 commit comments

Comments
 (0)