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

; Installer.
$executable = 'PatchWise Free 3.29.exe'
; Default group folder in startmenu.
$group = 'Compilers'
; Installation folder in Program Files.
$directory = 'Patchwise'
; Components to install.
$components = 'main,style,help'
; Specify language.
$language = ''

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

; Remove shortcuts.
If _Programs('PatchWise Free.lnk') Then
    FileChangeDir($group)
    FileDelete('PatchWise Free Help.lnk')
    FileDelete('PatchWise on the Web.lnk')
    FileDelete('Read Me!.lnk')
EndIf
_Desktop('PatchWise Free.lnk')

Exit
#endregion