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

; Installer.
$executable = 'Wink 2.0.exe'
; Default group folder in startmenu.
$group = 'Debugmode\Wink'
; Installation folder in Program Files.
$directory = 'Wink'

; Run the installer.
$pid = _Nullsoft()
$title = 'DebugMode Wink™ Setup'
While ProcessExists($pid)
    Select
        Case WinExists($title, 'Create a Program Group')
            ControlClick($title, 'Create a Program Group', 'Button1')
        Case WinExists($title, 'View readme')
            ControlClick($title, 'View readme', 'Button2')
    EndSelect
    Sleep(250)
WEnd
ProcessWaitClose($pid)
Sleep(1000)

; Remove shortcuts.
If _Programs('Wink.lnk') Then
    FileMove($group & '\Wink.lnk', 'Compilers\', 9)
    DirRemove($group, 1)
EndIf

Exit
#endregion