#region - Hostsman install script - (Inno Setup) #include <Common_Functions.au3> Opt('TrayIconDebug', 1) Break(False) ; Installer. $executable = 'Hostsman 3.0.0.1.exe'; beta1 ; Default group folder in startmenu. $group = 'Internet' ; Installation folder in Program Files. $directory = 'HostsMan' ; Components to install. $components = '' ; Specify language. $language = '' ;~ AdlibEnable('_Adlib') ; Run the installer. $pid = _InnoSetup() ProcessWaitClose($pid) ; Remove shortcuts. ;~ If _Programs('HostsMan.lnk') Then ;~ FileChangeDir($group) ;~ FileDelete('Uninstall HostsMan.lnk') ;~ FileDelete('Website.lnk') ;~ FileDelete("What's New.lnk") ;~ EndIf ;~ WinWait('HostsMan', 'DNS Client service is enabled', 5) ;~ WinClose('HostsMan') ;~ ProcessClose($pid) ;~ _RefreshSystemTray() ; Remove from startup ;RegDelete('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'HostsMan') Exit #endregion ;~ Func _Adlib() ;~ If WinExists('HostsMan', 'DNS Client service is enabled') Then ;~ ControlClick('HostsMan', 'DNS Client service is enabled', 'Button1') ;~ WinWaitClose('HostsMan', 'DNS Client service is enabled', 2) ;~ AdlibDisable() ;~ EndIf ;~ EndFunc