Jump to content

Recommended Posts

Posted

I've been using this forum a whole lot while developing some installation discs for the network I help manage - it helps a lot!

I now have a question of my own, however:

I'm installing Open Office 2.4 using the following command

start /wait msiexec /qr /norestart /i openofficeorg24.msi

This installs perfectly and silently. However when I start Open Office for the first time, I have to accept the EULA and enter my name and all that good stuff. Does anyone know how to eliminate this from happening?

Thanks a bunch for the help and of course let me know if there are any questions about what I'm doing!


Posted

@ECHO OFF

SETLOCAL

:: Find registered Windows user and company name

FOR /F "tokens=*" %%A IN ('WMIC.EXE OS Get Organization^,RegisteredUser /Format:List') DO (

SET %%A>NUL

)

:: Move to the correct location; modify if this batch file is

:: not located in the same directory with the OpenOffice .MSI

PUSHD "%~dp0"

:: No user interface, no reboot, logging enabled

SET MSIArgs=/qn /norestart REBOOT=ReallySuppress /L OpenOffice.log

:: Install everything

SET MSIComp=INSTALLLOCATION=C:\Program Files\OxygenOffice

SET MSIComp=ADDLOCAL=ALL

:: Associate Writer with .DOC and Calc with .XLS extensions

SET MSIComp=%MSIComp% SELECT_WORD=1 SELECT_EXCEL=1

:: Do NOT associate Impress with .PPT

SET MSIComp=%MSIComp% SELECT_POWERPOINT=0

:: Use registered Windows user and company name, if defined

IF NOT "%RegisteredUser%"=="" SET MSIUser=USERNAME="%RegisteredUser%"

IF NOT "%Organization%"=="" SET MSIUser=%MSIUser% COMPANYNAME="%Organization%"

:: Run the installation

START /WAIT MSIEXEC.EXE /I openofficeorg24.msi %MSIArgs% %MSIComp% %MSIUser%

:: Done

POPD

ENDLOCAL

Posted (edited)

You can try:

start /wait msiexec /qr /norestart /i openofficeorg24.msi COMPANYNAME="something" USERNAME="something"

Just replace "something" with whatever you want. And include the quotes.

Edited by anonymous_user
Posted

Thanks for the replies!

hiro1,

How does that bypass the EULA? Yesterday after I posted this I edited my batch file execution to this:

start /wait msiexec /qr /norestart /i openofficeorg24.msi SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 COMPANYNAME="DSH" ADDLOCAL=ALL

which, if I'm not mistaken, does pretty much the same as your batch file? I'm still relatively new to network management so I'm probably missing something. Also anonymous_user, thanks for the input. I tried doing some things (like "EULA=1" and whatnot), but I still got the EULA and other business on first start.

Now I'm sort of answering my own question, but I did some further investigating and found the files that determine whether or not the EULA and settings are shown on start. They're located in the "Documents and Settings\<userprofile>\Application Data\OpenOffice.org2\user\registry\data\org\openoffice" directory. There are two files - Setup.xcu and UserProfile.xcu. These contain the settings and boolean checks which determine whether or not the FirstStartWizard is launched If you just replace these files with the following, it won't ask for anything on first launch.

Setup.xcu:

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Setup" oor:package="org.openoffice">
<node oor:name="L10N">
<prop oor:name="ooLocale" oor:type="xs:string">
<value>en-US</value>
</prop>
</node>
<node oor:name="Office">
<prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>
<prop oor:name="LicenseAcceptDate" oor:type="xs:string">
<value>2008-05-09T11:32:20</value>
</prop>
<prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>
<node oor:name="Factories">
<node oor:name="com.sun.star.text.TextDocument">
<prop oor:name="ooSetupFactoryWindowAttributes" oor:type="xs:string">
<value>331,62,952,702;1;0,0,0,0;</value>
</prop>
</node>
</node>
</node>
</oor:component-data>

and UserProfile.xcu:

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="UserProfile" oor:package="org.openoffice">
<node oor:name="Data">
<prop oor:name="givenname" oor:type="xs:string">
<value>DESIRED_FIRSTNAME</value>
</prop>
<prop oor:name="initials" oor:type="xs:string">
<value>DESIRED_INITIALS</value>
</prop>
<prop oor:name="sn" oor:type="xs:string">
<value>DESIRED_LASTNAME</value>
</prop>
</node>
</oor:component-data>

Just change around the variables to your liking and it'll work. Obviously you can also change the date when it thinks you accepted the EULA. With these settings, OpenOffice will never attempt to register, either. This worked for me, hopefully it works for others!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...