#region - Meazure install script - (Inno Setup)
#include <Common_Functions.au3>
Opt('TrayIconDebug', 1)
Break(False)

; Installer.
$executable = 'Meazure 2.0.exe'
; Default group folder in startmenu.
$group = 'General'
; Installation folder in Program Files.
$directory = 'Meazure'
; Components to install.
$components = 'core,help,profiles'
; Specify language.
$language = ''

; Run the installer.
$pid = _InnoSetup()
ProcessWaitClose($pid)

; Remove shortcuts.
If _Programs('Meazure.lnk') Then
    FileChangeDir($group)
    FileDelete('Meazure Help.lnk')
    FileDelete('Meazure License.lnk')
    FileDelete('Meazure Readme.lnk')
    FileDelete('Uninstall Meazure.lnk')
EndIf
_Desktop('Meazure.lnk')

Exit
#endregion