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

; Installer.
$executable = 'Shareaza 2.2.5.0.exe'
; Default group folder in startmenu.
$group = 'Internet'
; Installation folder in Program Files.
$directory = 'Shareaza'
; Components to install.
$components = ''
; Specify language.
$language = ''

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

; Remove shortcuts.
If _Programs('Shareaza.lnk') Then
    FileChangeDir($group)
    DirRemove('Gui Mode', 1)
    FileDelete('Downloads.lnk')
    FileDelete('License.lnk')
    FileDelete('Uninstall.lnk')
EndIf
_Desktop('Shareaza.lnk')
_QuickLaunch('Shareaza.lnk')

Exit
#endregion