#region - OpenOffice install script - (Nullsoft) #include <Common_Functions.au3> Opt('TrayIconDebug', 1) Break(False) ; Installer. $executable = 'OpenOffice 2.2.exe' ; Default group folder in startmenu. $group = 'OpenOffice.org 2.2' ; Installation folder in Program Files. $directory = ''; OpenOffice.org 2.2 ; Run the installer. $pid = _Nullsoft() WinWait('OpenOffice.org', '', 5) If WinActive('OpenOffice.org') Then WinSetState('OpenOffice.org', '', @SW_MINIMIZE) EndIf ProcessWaitClose($pid) ; Remove shortcuts. If _Programs('OpenOffice.org Base.lnk') Then DirCopy($group, 'Editors', 1) DirRemove($group, 1) FileChangeDir('Editors') If FileExists('OpenOffice') Then DirRemove('OpenOffice', 1) FileMove('OpenOffice.org Base.lnk', 'OpenOffice Base.lnk', 1) FileMove('OpenOffice.org Calc.lnk', 'OpenOffice Calc.lnk', 1) FileMove('OpenOffice.org Draw.lnk', 'OpenOffice Draw.lnk', 1) FileMove('OpenOffice.org Impress.lnk', 'OpenOffice Impress.lnk', 1) FileMove('OpenOffice.org Math.lnk', 'OpenOffice Math.lnk', 1) FileMove('OpenOffice.org Writer.lnk', 'OpenOffice Writer.lnk', 1) EndIf Exit #endregion