I am looking to deploy OpenOffice for my company. We have a lot of computers that are all Windows 2000 sp4 and Windows XP sp2. I want to make a couple of customizations to the software upon install.
First, all installs should be automatic (no user interaction).
Next, I want to check if Microsoft Office is installed. If not, associate .doc, .xls, and .ppt with OpenOffice. To do this I have made this little AutoIT script.
Code: Select all
If FileExists(@ProgramFilesDir & "\Microsoft Office\") Then
RunWait("msiexec /qr /norestart /i openofficeorg23.msi")
Else
RunWait("msiexec /qr /norestart /i openofficeorg23.msi SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1")
EndIf
Code: Select all
$location = @ProgramFilesDir & "\OpenOffice.org 2.3\share\registry\modules\org\openoffice\Setup\"
FileCopy("Setup-calc.xcu", $location)
FileCopy("Setup-impress.xcu", $location)
FileCopy("Setup-writer.xcu", $location)
Code: Select all
#NoTrayIcon
If FileExists(@AppDataDir & "\OpenOffice.org2\user\registry\data\org\openoffice\Setup.xcu") Then
Exit
Else
WinWaitActive ("Welcome to OpenOffice.org 2.3")
Send("!n");next
Send("!{w 50}");scroll down
Send("!a");accept
Send("!n");next
Send("!r");I do not want to register
Send("!f");finish
EndIf