~jagtalon/Ear-Transit

f9776f2328bab507cb5b49d3fb8d10a2aea4139a — Jag Talon a month ago fa260af
Consistent formatting across files
Tabs -> Spaces
1 files changed, 12 insertions(+), 12 deletions(-)

M utils/Create Start Menu.ahk
M utils/Create Start Menu.ahk => utils/Create Start Menu.ahk +12 -12
@@ 5,19 5,19 @@ SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

try {

	if FileExist("..\Ear Transit.exe") {
		; See if Ear Transit.exe exists in the first place.
		; We do this because FileCreateShortcut will create a link even if the .exe is not available.
		FileCreateShortcut, %A_ScriptDir%\..\Ear Transit.exe, %A_Programs%\Ear Transit.lnk
		MsgBox, ,Ear Transit, Successfully created a shortcut for Ear Transit in the Start Menu
  if FileExist("..\Ear Transit.exe") {
    ; See if Ear Transit.exe exists in the first place.
    ; We do this because FileCreateShortcut will create a link even if the .exe is not available.
    FileCreateShortcut, %A_ScriptDir%\..\Ear Transit.exe, %A_Programs%\Ear Transit.lnk
    MsgBox, ,Ear Transit, Successfully created a shortcut for Ear Transit in the Start Menu

	} else {
		; Show a message if Ear Transit.exe is not available.
		MsgBox, ,Ear Transit, Sorry, Ear Transit.exe seems to be missing.
	}
  } else {
    ; Show a message if Ear Transit.exe is not available.
    MsgBox, ,Ear Transit, Sorry, Ear Transit.exe seems to be missing.
  }

} catch e {
	; There might be permission errors when creating new files,
	; so let's show a message when that happens, too.
	MsgBox, ,Ear Transit, We ran into an issue while creating a shortcut. %e%
  ; There might be permission errors when creating new files,
  ; so let's show a message when that happens, too.
  MsgBox, ,Ear Transit, We ran into an issue while creating a shortcut. %e%
}
\ No newline at end of file