|
|
|
@ -221,7 +221,7 @@ if(InStr(PassedInArgument1_Filepath,ScriptName) and InStr(PassedInArgument1_File
|
|
|
|
|
; move old version to backups folder, overwrite if name conflict
|
|
|
|
|
FileDelete, %PassedInArgument1_Filepath%
|
|
|
|
|
if(ErrorLevel){ ; most likely because the old version hasn't finished exiting yet
|
|
|
|
|
SaveOrPostProgress(Message:="Moving Old Version to Backups",PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar")
|
|
|
|
|
SaveOrPostProgress(Message:="Failed to Delete Old Program Version",PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar")
|
|
|
|
|
sleep, 2000
|
|
|
|
|
FileDelete, %PassedInArgument1_Filepath%
|
|
|
|
|
if(ErrorLevel){
|
|
|
|
@ -403,10 +403,10 @@ if(FileExist(VideoLinksIniFile)){
|
|
|
|
|
; Misc Info
|
|
|
|
|
; ------------------------------------------------
|
|
|
|
|
IniRead, ErrorLoggingFilePath, %VideoLinksIniFile%, Misc, ErrorLoggingFilePath, %A_Space%
|
|
|
|
|
; Double check that the file/directory exists and create if not
|
|
|
|
|
SplitPath, ErrorLoggingFilePath,, ErrorLogDir
|
|
|
|
|
if(!FileExist(ErrorLogDir)){
|
|
|
|
|
FileCreateDir, %ErrorLogDir%
|
|
|
|
|
|
|
|
|
|
; Double check that the file still exists on the system. if set var to blank so new file can be generated
|
|
|
|
|
if(!FileExist(ErrorLoggingFilePath)){
|
|
|
|
|
ErrorLoggingFilePath :=
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|