#region - Firefox install script - (Special) #include <Common_Functions.au3> Opt('TrayIconDebug', 1) Break(False) ; Installer. $executable = 'Mozilla Firefox 2.0.0.3.exe' ; Default group folder in startmenu. $group = 'Mozilla Firefox' ; Installation folder in Program Files. $directory = 'Mozilla Firefox' ; Run the installer. $pid = _Install() ProcessWaitClose($pid) ; Remove shortcuts. If _Programs('Mozilla Firefox.lnk') Then FileMove($group & '\Mozilla Firefox.lnk', 'Internet\', 9) DirRemove($group, 1) EndIf _Desktop('Mozilla Firefox.lnk') ;~ _QuickLaunch('Mozilla Firefox.lnk') ; Install FlashPlayer $source = @ScriptDir & '\Files\Mozilla Firefox\install_flash_player.exe' If FileExists($source) Then RunWait('"' & $source & '" /S') EndIf Exit #endregion Func _Install($parameters = Default) ; Run a Nullsoft Installer with Default: -ms. Dim $directory If $parameters = Default Then $parameters = '-ms' If Not FileExists(@ScriptDir & '\' & $executable) Then Exit 1 Return Run('"' & @ScriptDir & '\' & $executable & '" ' & $parameters) EndFunc