;CONSTANTS !define OFFICE_VERSION "3.2.1" !define OFFICE_NAME "3.2.1noinetCD" ;NSIS Modern User Interface #Copyright 2007 Jim Michaels, portions taken from examples probably #Copyright 1999-2007 by Justin Frankel, Amir Szekely, Joost Verburg, #Robert Rainwater, Dave Laundon, Ximon Eighteen, Ramon (aka Ramon18), #nnop@newmail.ru, Ryan Geiss, Andras Varga, Drew Davidson, Peter #Windridge, Yaroslav Faybishenko, Jeff Doozan, Nike (nike@sendmail.ru), #Diego Pedroso, Shengalts Aleksander, Stuart Welch, David Weiss. #Although the examples have not shown a copyright notice, I have included #a copyright notice nonetheless. # # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # # #Author: Jim Michaels (jmichae3@yahoo.com), Joost Verburg #Creation date: Aug 28, 2007 #Current date: Sept 24, 2009 #Version: 3.6 #Abstract: this is a wraparound installer for installers of OpenOffice.org # given the existing distributed installers from OOo. #This is set up for OOo 3.2.0. you will need to do search and replaces #to make changes for other versions, etc. #you will also need to test installation of OOo to see where it installs to. #I am just a beginner at NSIS. This isn't the prettiest thing in the world, #but I think it meets OOo's requirements for distributing community software. #it displays a disclaimer at the start. #you can obtain the NSIS compiler at http://nsis.sourceforge.net/Main_Page # it generates *very* small code. 130k. #don't worry about the warnings. only errors. ;derived from Welcome/Finish Page Example Script by Joost Verburg ;-----Note: ooop does not belong here anymore. ;----- it has become a monolithic OOo installation. ;----- so I am putting it on its own cd with autorun file. ;-------------------------------- ;Include Modern UI RequestExecutionLevel admin ;for windows vista/7. I think this is necessary for this installer only because we write into HKLM and because we expect to write into $PROGRAMFILES ;for some reason, this does not work in .onInit ;Reduce application does not have a manifest I don't think. It was not built with Microsoft Visual Studio. !include "MUI.nsh" !include "LogicLib.nsh" !include "x64.nsh" !include "Sections.nsh" !include "WinMessages.nsh" !include "WordFunc.nsh" ;-------------------------------- ;General ;Name and file Name "OpenOffice.org 3.2.0" OutFile "setup.exe" Var INSTALL_JAVA_FLAG Var JAVA_INSTALLED_FLAG Var INSTALL_DOTNET_FLAG Var DOTNET_INSTALLED_FLAG Var DOTNET35SP1_INSTALLED_FLAG Var EXIT_CODE Var WINVER Var WINDOWSSERVICEPACK Var IS3264 ;Default installation folder. we don't actually use this. ; InstallDir "$PROGRAMFILES\OpenOffice.org 3" ;Get installation folder from registry if available ; InstallDirRegKey HKCU "Software\Modern UI Test" "" ;-------------------------------- ;Interface Settings !define MUI_ABORTWARNING ;-------------------------------- ;Pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_LICENSE "license.txt" !insertmacro MUI_PAGE_COMPONENTS ; !insertmacro MUI_PAGE_DIRECTORY ; !insertmacro MUI_PAGE_STARTMENU ID VAR !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH ; !insertmacro MUI_UNPAGE_WELCOME ; !insertmacro MUI_UNPAGE_CONFIRM ; !insertmacro MUI_UNPAGE_INSTFILES ; !insertmacro MUI_UNPAGE_FINISH ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English" !macro ExecWaitJob _exec /* 0=ErrChk+JOBOBJECTASSOCIATE*+PROCESS_INFO 1=hPort 2=hJob 3=ErrChk+hProcess+ioX 4=STARTINFO+hThread+ioOLAP*/ StrCpy $9 0 System::Call 'kernel32::CreateIoCompletionPort(i -1,i0,i0,i0)i.r1' ${IfThen} $1 != 0 ${|} IntOp $9 $9 + 1 ${|} System::Call 'kernel32::CreateJobObject(i0,i0)i.r2' ${IfThen} $2 != 0 ${|} IntOp $9 $9 + 1 ${|} System::Call '*(i 0,i $1)i.r0' System::Call 'kernel32::SetInformationJobObject(i $2,i 7,i $0,i 8)i.r3' ${IfThen} $3 != 0 ${|} IntOp $9 $9 + 1 ${|} System::Free $0 System::Call '*(i,i,i,i)i.r0' System::Alloc 72 pop $4 System::Call "*$4(i 72)" System::Call 'kernel32::CreateProcess(i0,t "${_exec}",i0,i0,i0,i 4,i0,i0,i $4,i $0)i.r3' ${IfThen} $3 != 0 ${|} IntOp $9 $9 + 1 ${|} System::Free $4 System::Call "*$0(i.r3,i.r4,i,i)" System::Free $0 System::Call 'kernel32::AssignProcessToJobObject(i $2,i $3)i.r0' ${IfThen} $0 != 0 ${|} IntOp $9 $9 + 1 ${|} System::Call 'kernel32::ResumeThread(i $4)i.r0' ${IfThen} $0 != -1 ${|} IntOp $9 $9 + 1 ${|} System::Call 'kernel32::CloseHandle(i $3)' System::Call 'kernel32::CloseHandle(i $4)' ioportwait: System::Call 'kernel32::GetQueuedCompletionStatus(i $1,*i.r3,*i,*i.r4,i -1)i.r0' ${IfThen} $0 = 0 ${|} StrCpy $9 0 ${|} ${IfThen} $3 != 4 ${|} goto ioportwait ${|} System::Call 'kernel32::CloseHandle(i $2)' System::Call 'kernel32::CloseHandle(i $1)' ${IfThen} $9 < 6 ${|} MessageBox mb_iconstop `ExecWaitJob "${_exec}" failed!` ${|} !macroend ;--------version detection SetDateSave on SetDatablockOptimize on CRCCheck on XPStyle On Function .onInit #prevent multiple instances of the installer running System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutexOOo3.2.0sn") i .r1 ?e' Pop $R0 StrCmp $R0 0 +3 MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running." Abort ; SetOutPath "." ; File /oname=$PLUGINSDIR\welcome.bmp "${NSISDIR}\Contrib\Graphics\Wizard\orange-nsis.bmp" ; File "setup.ini" GetDlgItem $0 $HWNDPARENT 1 CreateFont $1 "$(^Font)" "14" "700" ;culprit. worked in older versions. what do I do now? got this from the forums. ; CreateFont $HEADLINE_FONT "$(^Font)" "14" "700" InitPluginsDir SetOutPath "$PLUGINSDIR" StrCpy $INSTALL_JAVA_FLAG 0 StrCpy $JAVA_INSTALLED_FLAG 0 StrCpy $INSTALL_DOTNET_FLAG 0 StrCpy $DOTNET_INSTALLED_FLAG 0 StrCpy $DOTNET35SP1_INSTALLED_FLAG 0 GetVersion::WindowsName DetailPrint "WindowsName:" DetailPrint " $R0" Pop $R0 StrCpy $WINVER $R0 GetVersion::WindowsServicePack Pop $R0 DetailPrint "WindowsServicePack:" DetailPrint " $R0" StrCpy $WINDOWSSERVICEPACK $R0 GetVersion::WindowsPlatformArchitecture Pop $R0 DetailPrint "WindowsPlatformArchitecture:" DetailPrint " $R0" StrCpy $IS3264 $R0 SetShellVarContext all !insertmacro MUI_LANGDLL_DISPLAY FunctionEnd Function GetDotNETVersion Push $0 Push $1 System::Call "mscoree::GetCORVersion(w .r0, i ${NSIS_MAX_STRLEN}, *i) i .r1 ?u" StrCmp $1 "error" 0 +2 StrCpy $0 "not found" Pop $1 Exch $0 FunctionEnd ;-------------------------------- ;Installer Sections ;Section "Dummy Section" SecDummy ; ; SetOutPath "$INSTDIR" ; ; ;ADD YOUR OWN FILES HERE... ; ; ;Store installation folder ; WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR ; ; ;Create uninstaller ; WriteUninstaller "$INSTDIR\Uninstall.exe" ; ;SectionEnd Section "Sun Java" Sec_jre Win32s: StrCmp $WINVER "Win32s" +1 chk95 DetailPrint 'install JRE 1.5.0_09 for windows Win32s' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" Goto over chk95: StrCmp $WINVER "95" +1 chk95osr2 DetailPrint 'install JRE 1.5.0_09 for windows 95' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" Goto over chk95osr2: StrCmp $WINVER "95 OSR2" +1 chk98 DetailPrint 'install JRE 1.5.0_09 for windows 95 OSR2' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" Goto over chk98: StrCmp $WINVER "98" +1 chk98se DetailPrint 'install JRE 1.5.0_09 for windows 98' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" Goto over chk98se: StrCmp $WINVER "98 SE" +1 chkme DetailPrint 'install JRE 1.5.0_09 for windows 98 SE' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" Goto over chkme: StrCmp $WINVER "ME" +1 chknt DetailPrint 'install JRE 1.5.0_09 for windows me' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" Goto over chknt: StrCmp $WINVER "NT" +1 chk2000 DetailPrint 'install JRE 1.5.0_09 for nt' ExecWait "$EXEDIR\jre-1_5_0_09-windows-i586-p.exe" ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chk2000: StrCmp $WINVER "2000" +1 chkxp DetailPrint 'install 6u19 for 2000' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chkxp: StrCmp $WINVER "XP" +1 chkxpx64 DetailPrint 'install latest java for xp' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chkxpx64: StrCmp $WINVER "XP x64" +1 chk2003 DetailPrint 'install latest java for xp x64' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chk2003: StrCmp $WINVER "Server 2003" +1 chk2003r2 DetailPrint 'install latest java for 2003' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chk2003r2: StrCmp $WINVER "Server 2003 R2" +1 chkvista DetailPrint 'install latest java for 2003' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chkvista: StrCmp $WINVER "Vista" +1 chklonghorn DetailPrint 'install latest java for vista' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chklonghorn: StrCmp $WINVER "Server 2008" +1 chk7 DetailPrint 'install latest java for vista' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over chk7: StrCmp $WINVER "7" +1 unknownOS DetailPrint 'install latest java for 7' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over unknownOS: DetailPrint 'install latest java for unknown OS' ExecWait "$EXEDIR\jre-6u20-windows-i586-s.exe" Goto over over: StrCpy $JAVA_INSTALLED_FLAG 1 SectionEnd ;java ;Section "Sun Java 6u10 (for 2k/xp/vista)" Sec_jre6u4 ; StrCpy $INSTALL_JAVA_FLAG 1 ;SectionEnd ;Section "-OpenOffice.org 3.2.0 (recommended)" Sec_ooo ; ${If} $INSTALL_JAVA_FLAG == 0 ;; MessageBox MB_OK "jre=$INSTALL_JAVA_FLAG" ; ExecWait "$EXEDIR\OOo_3.2.0_Win32Intel_install_en-US.exe" ; ${Else} ;; MessageBox MB_OK "jre=$INSTALL_JAVA_FLAG" ; ExecWait "$EXEDIR\OOo_3.2.0_Win32Intel_install_wJRE_en-US.exe" ; ${EndIf} ; ;;wait until setup.exe appears ;!insertmacro ExecWaitJob "setup.exe" ;; let's hope they never press cancel or we're in for an infinite loop! ;SectionEnd SectionGroup "Office" Section "OpenOffice.org ${OFFICE_VERSION}" Sec_ooo ; ${If} $INSTALL_JAVA_FLAG == 0 ; MessageBox MB_OK "jre=$INSTALL_JAVA_FLAG" ; ExecWait "$EXEDIR\OOo_3.2.1_Win_x86_install_en-US.exe" $EXIT_CODE ; ${Else} ; MessageBox MB_OK "jre=$INSTALL_JAVA_FLAG" ExecWait "$EXEDIR\OOo_3.2.1_Win_x86_install-wJRE_en-US.exe" $EXIT_CODE ; ${EndIf} ;;wait until setup.exe appears ;!insertmacro ExecWaitJob "setup.exe" ;; let's hope they never press cancel or we're in for an infinite loop! ${If} $EXIT_CODE == 0 StrCpy $JAVA_INSTALLED_FLAG 1 CreateDirectory "$PROGRAMFILES\OpenOffice.org 3\Docs" CreateDirectory "$PROGRAMFILES\OpenOffice.org 3\Docs\Calc" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\SETUP_GUIDE.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\SETUP_GUIDE.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\0100GS3-GettingStartedOOo3.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\0100GS3-GettingStartedOOo3.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\0200WG3-WriterGuide.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\0200WG3-WriterGuide.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\0500IG3-ImpressGuideOOo3.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\0500IG3-ImpressGuideOOo3.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\conceptual_guide_OOo_3_ebook.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\conceptual_guide_OOo_3_ebook.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\DevelopersGuide.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\DevelopersGuide.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\Migration_Overview.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Migration_Overview.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\OOo 3 User Guides Wiki.url" "$PROGRAMFILES\OpenOffice.org 3\docs\OOo 3 User Guides Wiki.url" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\OOo Docs.url" "$PROGRAMFILES\OpenOffice.org 3\docs\OOo Docs.url" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\OpenOffice.org 3.x Conceptual Guides.url" "$PROGRAMFILES\OpenOffice.org 3\docs\OpenOffice.org 3.x Conceptual Guides.url" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\Samples, Templates and Clipart.url" "$PROGRAMFILES\OpenOffice.org 3\docs\Samples, Templates and Clipart.url" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\SETUP_GUIDE_A4.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\SETUP_GUIDE_A4.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0301CG3-IntroducingCalc.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0301CG3-IntroducingCalc.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0302CG3-EnterEditFormatData.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0302CG3-EnterEditFormatData.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0303CG3-ChartsAndGraphs.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0303CG3-ChartsAndGraphs.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0304CG3-StylesAndTemplates.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0304CG3-StylesAndTemplates.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0305CG3-UsingGraphicsInCalc.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0305CG3-UsingGraphicsInCalc.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0306CG3-PrintingExportingEmailing.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0306CG3-PrintingExportingEmailing.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0307CG3-FunctionsAndFormulas.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0307CG3-FunctionsAndFormulas.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0308CG3-DataPilot.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0308CG3-DataPilot.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0309CG3-DataAnalysis.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0309CG3-DataAnalysis.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0310CG3-LinkingCalcData.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0310CG3-LinkingCalcData.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0311CG3-SharingAndReviewing.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0311CG3-SharingAndReviewing.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0312CG3-CalcMacros.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0312CG3-CalcMacros.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0313CG3-CalcAsASimpleDatabase.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0313CG3-CalcAsASimpleDatabase.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0314CG3-CustomizingCalc.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0314CG3-CustomizingCalc.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0315CG3-KeyboardShortcuts.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0315CG3-KeyboardShortcuts.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0316CG3-CalcFunctions.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0316CG3-CalcFunctions.pdf" CopyFiles "$EXEDIR\OOo-docs\3.0-docs\calc-guide\0317CG3-CalcErrorCodes.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0317CG3-CalcErrorCodes.pdf" ;CopyFiles "$EXEDIR\DevelopersGuide.pdf" "$PROGRAMFILES\OpenOffice.org 3\docs\DevelopersGuide.pdf" SetShellVarContext all CreateDirectory "$SMPROGRAMS\OpenOffice.org 3.0\docs" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\SETUP Guide.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\SETUP_GUIDE.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0100-Getting Started.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\0100GS3-GettingStartedOOo3.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0200-Writer Guide.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\0200WG3-WriterGuide.pdf" CreateDirectory "$SMPROGRAMS\OpenOffice.org 3.0\docs\Calc" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0301CG3-IntroducingCalc.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0301CG3-IntroducingCalc.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0302CG3-EnterEditFormatData.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0302CG3-EnterEditFormatData.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0303CG3-ChartsAndGraphs.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0303CG3-ChartsAndGraphs.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0304CG3-StylesAndTemplates.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0304CG3-StylesAndTemplates.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0305CG3-UsingGraphicsInCalc.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0305CG3-UsingGraphicsInCalc.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0306CG3-PrintingExportingEmailing.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0306CG3-PrintingExportingEmailing.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0307CG3-FunctionsAndFormulas.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0307CG3-FunctionsAndFormulas.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0308CG3-DataPilot.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0308CG3-DataPilot.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0309CG3-DataAnalysis.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0309CG3-DataAnalysis.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0310CG3-LinkingCalcData.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0310CG3-LinkingCalcData.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0311CG3-SharingAndReviewing.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0311CG3-SharingAndReviewing.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0312CG3-CalcMacros.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0312CG3-CalcMacros.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0313CG3-CalcAsASimpleDatabase.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0313CG3-CalcAsASimpleDatabase.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0314CG3-CustomizingCalc.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0314CG3-CustomizingCalc.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0315CG3-KeyboardShortcuts.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0315CG3-KeyboardShortcuts.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0316CG3-Calc Functions.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0316CG3-CalcFunctions.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0317CG3-Calc Error Codes.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Calc\0317CG3-CalcErrorCodes.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\0500-Impress Guide.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\0500IG-ImpressGuide.pdf" ; CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\Developer's Guide.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\DevelopersGuide.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\DevelopersGuide.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\DevelopersGuide.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\Migration_Overview.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Migration_Overview.pdf" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\OOo 3 User Guides Wiki.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\OOo 3 User Guides Wiki.url" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\OOo Docs.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\OOo Docs.url" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\OpenOffice.org 3.x Conceptual Guides.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\OpenOffice.org 3.x Conceptual Guides.url" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\Samples, Templates and Clipart.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\Samples, Templates and Clipart.url" CreateShortcut "$SMPROGRAMS\OpenOffice.org 3.0\docs\SETUP_GUIDE_A4.lnk" "$PROGRAMFILES\OpenOffice.org 3\docs\SETUP_GUIDE_A4.pdf" ${EndIf} SectionEnd Section "OOo Language Pack ${OFFICE_VERSION}" Sec_ooolang ExecWait "$EXEDIR\OOo_3.2.1_Win_x86_langpack_en-US.exe" ;;wait until setup.exe appears ;!insertmacro ExecWaitJob "setup.exe" ;; let's hope they never press cancel or we're in for an infinite loop! SectionEnd ;Section "OOExtras/templates (recommended)" Sec_ooextras ;; ExecWait '$EXEDIR\extras.exe x -y -o"$PROGRAMFILES\OpenOffice.org 3\share\$\"' ; ExecWait '$EXEDIR\extras.exe x -y -o"$APPDATA\OpenOffice.org\3\user\template\$\"' ;;-----for some reason, OpenOffice.org 2.4.1doesn't have things set up so templates are visible from APPDATA! ;;-----they fixed it in version 3.0.1. templates should now go in appdata. ;;-----don't know what's going to happen on a Vista box! (c:/users/appdata/local/, c:/users/appdata/roaming/ but it is dangerous to write directly to those) ;SectionEnd Section "OpenClipart 2.0 (recommended)" Sec_openclipart ExecWait '$EXEDIR\clipart.exe x -y -o"$PROGRAMFILES\Open Clip Art Library\$\"' ; ExecWait '$EXEDIR\clipart.exe x -y -o"$PICTURES\OpenClipart0.18\$\"' ; ExecWait '$EXEDIR\clipart.exe x -y -o"$PROGRAMFILES\OpenClipart0.18\$\"' ; ExecWait '$EXEDIR\clipart.exe x -y -o"$APPDATA\OpenOffice.org\3\user\gallery\OpenClipart0.18\$\"' ; ExecWait '$EXEDIR\clipart.exe x -y -o"$PROGRAMFILES\OpenOffice.org 3\share\gallery\OpenClipart0.18\$\"' SectionEnd SectionGroup "Developer Tools/SDK's" Section "OpenOffice.org SDK ${OFFICE_VERSION}" Sec_sdk ExecWait '$EXEDIR\OOo-SDK_3.2.1_Win_x86_install_en-US.exe' ;;wait until setup.exe appears ;!insertmacro ExecWaitJob "setup.exe" ;; let's hope they never press cancel or we're in for an infinite loop! SectionEnd ;URE is incorporated into 3.x Openoffice.org installer ;Section "OpenOffice.org URE 1.3" Sec_ure ; ExecWait '$EXEDIR\OOo-URE_1.3_Win32_install_en-US.exe' ; ${If} $0 == 0 ;;;wait until setup.exe appears ;!insertmacro ExecWaitJob "setup.exe" ; ${EndIf} ;;; let's hope they never press cancel or we're in for an infinite loop! ;SectionEnd SectionGroupEnd SectionGroupEnd /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ /*Section "" Sec_ ${If} ${RunningX64} ExecWait '$EXEDIR\' ${Else} ExecWait '$EXEDIR\' ${Endif} SectionEnd */ ; CreateDirectory "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-accessories-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ;I discovereed this is not how you install extensions! ;Section "OxygenOffice2.4.0.4 ext" Sec_ooop ;;create directory tree for ; ;this will be redundant if office is installed. ; CreateDirectory "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; ;;take care of ooop directory ; ; CopyFiles $EXEDIR\ooop\OOOP-accessories-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-accessories-nonfree-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-nonfree-separated-all-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-nonfree-separated-en-US-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-nonfree-separated-hu-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-nonfree-unified-en-US-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-nonfree-unified-hu-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-all-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-de-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-en-US-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-es-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-fi-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-fr-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-hu-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-it-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-ja-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-ka-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-nl-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-pl-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-pt-BR-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-sv-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-tr-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-separated-zh-CN-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-de-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-en-US-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-es-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-fi-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-fr-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-hu-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-it-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-ja-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-ka-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-nl-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-pl-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-pt-BR-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-sv-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-tr-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; CopyFiles $EXEDIR\ooop\OOOP-templates-unified-zh-CN-2.4.0.4.oxt "$PROGRAMFILES\OpenOffice.org 3\share\extension\install" ; ;;;wait until setup.exe appears ;;findloop3: ;; FindProcDLL::FindProc "setup.exe" ;; StrCmp $R0 0 findloop3 ;; ;;;...and disappears ;;findloop4: ;; FindProcDLL::FindProc "setup.exe" ;; StrCmp $R0 1 findloop4 ;;; let's hope they never press cancel or we're in for an infinite loop! ;SectionEnd ;-------------------------------- ;Uninstaller Section ;Section "Uninstall" ; ; ;ADD YOUR OWN FILES HERE... ; ; Delete "$INSTDIR\Uninstall.exe" ; ; RMDir "$INSTDIR" ; ; DeleteRegKey /ifempty HKCU "Software\Modern UI Test" ; ;SectionEnd ;-------------------------------- ;Descriptions ;Language strings LangString DESC_Sec_jre ${LANG_ENGLISH} "Installs Sun Java JRE 1.5_09 OR latest version (required). If you already have it, you don't need it. If yours is old, you need yours updated. 1.5_09 is the last version known to work with Win9x/ME." ;LangString DESC_Sec_jre6u4 ${LANG_ENGLISH} "Installs Sun Java 6u4 (JRE) (required) along with OpenOffice.org. JRE is required. If you already have it, you don't need it. If yours is older, you need yours updated. If yours is newer, you don't need Java installed. Win2000/XP/Vista/7" ;OpenOffice.org LangString DESC_Sec_ooo ${LANG_ENGLISH} "OpenOffice.org Office Suite (Word Processor, Database, Spreadsheet, Presentation, Math editor, Draw)." LangString DESC_Sec_ooolang ${LANG_ENGLISH} "OpenOffice.org Language Pack." ;LangString DESC_Sec_ooextras ${LANG_ENGLISH} "A collection of templates. installs into $INSTDIR\share" LangString DESC_Sec_openclipart ${LANG_ENGLISH} "This will be installed in C:\Program Files\Open Clip Art Library\" LangString DESC_Sec_sdk ${LANG_ENGLISH} "The OpenOffice.org SDK is a developer toolkit." ;LangString DESC_Sec_ooop ${LANG_ENGLISH} "Web site not clear about this, but OxygenOffice Pro has templates, cliparts, samples, fonts and VBA support. Hopefully these extensions do also." ;Assign language strings to sections !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${Sec_jre} $(DESC_Sec_jre) ;!insertmacro MUI_DESCRIPTION_TEXT ${Sec_jre6u4} $(DESC_Sec_jre6u4) ;OpenOffice.org !insertmacro MUI_DESCRIPTION_TEXT ${Sec_ooo} $(DESC_Sec_ooo) !insertmacro MUI_DESCRIPTION_TEXT ${Sec_sdk} $(DESC_Sec_sdk) !insertmacro MUI_DESCRIPTION_TEXT ${Sec_ooolang} $(DESC_Sec_ooolang) ;!insertmacro MUI_DESCRIPTION_TEXT ${Sec_ooextras} $(DESC_Sec_ooextras) !insertmacro MUI_DESCRIPTION_TEXT ${Sec_openclipart} $(DESC_Sec_openclipart) ;!insertmacro MUI_DESCRIPTION_TEXT ${Sec_ooop} $(DESC_Sec_ooop) !insertmacro MUI_FUNCTION_DESCRIPTION_END ;Function un.onInit ; SetShellVarContext all ;FunctionEnd