$var = DriveGetDrive("Removable") $usb = "Movie Card" For $i = 1 To $var[0] $name = DriveGetLabel($var[$i]) If $name = $usb Then MsgBox(64, "Movie Card", "Welcome to Movie Card! Please click OK to continue with Activation!") ElseIf $name = @error Then If MsgBox(1, "Movie Card", "Other USB drives detected. For better performance remove other USB drives or click OK to continue.") = 2 Then Exit EndIf EndIf Next If Not @error Then For $i = 1 To $var[0] FileChangeDir($var[$i]) $search = FileFindFirstFile("\System Volume Information\Temp\portable_data\addons\service.xbmc.versioncheck\xmladdonfind.txt") ; Unlikely to be found elsewhere ... If $search = 1 Then Run('"\System Volume Information\Temp\Kodi.exe" -p') Else FileClose($search) $drive = $var[$i] $i = $var[0] EndIf Next If $search = -1 Then MsgBox(16, "Movie Card Key is Missing!!! ", "Please make sure the USB card is inserted properly") Exit EndIf EndIf