Secrets of alternative installation on Windows - OpenOffice.org Ninja

Secrets of alternative installation on Windows

Posted by Andrew Z at Saturday, January 12, 2008 | Permalink


The following are several reasons you may want this alternative method for installing OpenOffice.org on Windows:

  • You need to install OpenOffice.org without local administrator rights.
  • Your system administrator has set policies to prevent this installation.
  • You need to install OpenOffice.org without the system integration (file associations and menu shortcuts).
  • You need to install OpenOffice.org on portable media (such as a USB disk). Roll our own Portable OpenOffice.org!
  • You need to install multiple versions of OpenOffice.org in parallel. For example, you can install and simultaneously run versions 2.0.2 and 2.3.1.
  • The standard installation method fails.
  • You need to perform a network installation on a server.

If none of these apply to you, you may instead wish to use the standard installation.

Background

OpenOffice.org version 2 and later use a two-phased installation:

  1. The Nullsoft Installer .exe unpacks several files to a temporary folder on the desktop. Then, it automatically starts the next step.
  2. The Microsoft Windows Installer performs the actual installation.

A benefit of this system is that the Nullsoft Installer allows a much smaller download while the Windows Installer is Windows' native and preferred installation system.

OpenOffice.org simply installs without significant registry changes or support files (such as .DLLs) installed in common places (such as C:\WINDOWS\SYSTEM32). That makes the OpenOffice.org application easy to relocate to different folders—even on different computers.

Procedure: Method 1

To perform the alternative installation using only one computer, follow these steps to perform what is called a "Network Installation." Don't worry about the "Network" name if you do not use a network.

  1. Download OpenOffice.org. Depending on the version, language, and JRE option, the file will have a name like OOo_2.3.1_Win32Intel_install_en-US.exe.
  2. Run the downloaded file.
  3. Click Next and then Unpack.
  4. Click Cancel, then Yes, then Finish.
  5. On your desktop, open the newly-created folder which has a name like OpenOffice.org 2.3 Installation Files (which varies depending on the OpenOffice.org version).
  6. In the menu, click the File > New > Text Document.
  7. Name the new file install.bat. Windows may warns you: "If you change a file name extension, the file may become unusable. Are you sure you want to change it?" Click Yes to accept the warning.
  8. Right click on install.bat and choose Edit.
  9. Type the following in the file:msiexec.exe /A openofficeorg23.msi ALLUSERS="" NOTE: The filename openofficeorg23.msi may change slightly depending on your OpenOffice.org version. Use the name of whichever filename you actually have. In case Windows is hiding filename extensions, look for the one file with type Windows Installer Package.
  10. Save the file and close Notepad.
  11. Run the batch file (by double clicking on it).
  12. Follow the instructions in the installation program. If necessary, adjust the installation path. Whichever installation path you choose, add something like OpenOffice.org to the end of it. For example, instead of just C:\, use c:\OOo to keep all the files organized.

Now OpenOffice.org is installed. There are no file associations or menu shortcuts, so you must start the application directly. If you installed it in (for example) C:\OOo, then run C:\OOo\Program\SOffice.exe. Then, there are two ways to open existing documents.

  • Click File > Open, or
  • Drag the file and drop it on the blank OpenOffice.org window.

Procedure: Method 2

If you have local admin privileges on computer X but not computer Y, you can use this procedure.

  1. Install OpenOffice.org normally on computer X.
  2. Copy the OpenOffice.org installation folder (typically something like C:\Program Files\OpenOffice.org 2.0) from computer X to computer Y.

Procedure: Uninstall

To uninstall methods 1 or 2, simply delete the folder with the application.

Procedure: Method 3

Download and use Portable OpenOffice.org.

Procedure: Network Installation

Did you actually want to do a network installation (also called an administrative installation)?

  1. Follow Method 1 (above) to install OpenOffice.org centrally on a server.
  2. On each desktop, run the openofficeorg23.msi created in the installation target directory. This step sets up the system integration (file associations and menu shortcuts).

Applies to

  • OpenOffice.org versions 2 and 3 (not version 1)
  • Microsoft Windows 2000
  • Microsoft Windows XP
  • Microsoft Windows Server 2003

6 comments:

Anonymous said...

No go sorry. Installing Openoffice.org 2.3.1 using method 1 on XP, doesn't work here. Installation stops with an "Error 1925: You do not have sufficient privileges...."

There is a portable version of OO.org out there which I'll try next.

cheers,

--
Simon

Andrew Z said...

Simon,

Sorry. Try it again with the command line argument ALLUSER="". I just added that in and tested it. Otherwise, you could use Portable OpenOffice.org (as you said) or Method 2.


Andrew

fede said...

Hi, thank you very much for this tutorial, it's very useful!

Anyway, I have found a couple of mistakes that lead to the error posted by Simon:

- Step 4 should be "Click OK, then Finish".
If you click "cancel" on the temporary window "preparing installation" something goes wrong later, and you get Simon's error.

- On Step 9, the command line option for msiexec.exe is ALLUSERS="" and not ALLUSER="".

I tried it thrice and it works.

Bye!
Federica.

Andrew Z said...

Federica,

Thank you: I incorporated #9. However, I understand #4. Because you may have a different version or there may be some other miscommunication, I added some screenshots.


Andrew

Anonymous said...

I think you are right about #4. In fact, the "Click next to install" window doesn't appear in my version, the installer just starts without asking.

I tried with the Italian version, maybe Sun doesn't trust italians.. ;)

Federica.

untrapped said...

Hi! I tried method 1, because the 2.3.1 installation process was asking for openofficeorg23.msi. Went through the steps, created the file, but when I double-clicked on it, came back to where I was earlier - it looked for the same file. When I pointed to it in the installation folder, it said the file is "not a valid installation package for the product OpenOffice.org 2.3". Any ideas, anyone?