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

; Installer.
$executable = 'tinySpell 1.5.exe'
; Default group folder in startmenu.
$group = 'General'
; Installation folder in Program Files.
$directory = 'tinySpell'
; Components to install.
$components = ''
; Specify language.
$language = ''

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

; Remove shortcuts.
If _Programs('tinySpell.lnk') Then
    FileChangeDir($group)
    FileDelete('Help.lnk')
    FileDelete('tinySpell Help.lnk')
    FileDelete('tinySpell on the Web.lnk')
    FileDelete('Uninstall tinySpell.lnk')
EndIf
_Desktop('tinySpell.lnk')

Exit
#endregion