Difference between revisions of "Documentation/SL/How Tos/Samodejna namestitev v okolju Windows"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Downloading and Unpacking {{OOo}})
(Unattended (Automatic) Installation)
Line 37: Line 37:
 
Če bi nadaljevali namestitev, bi namestili {{OOo}} za enega uporabnika na tem računalniku. Namen tega KakOOojčka pa je ''tiha'' ali ''nenadzorovana'' namestitev {{OOo}} v omrežje. Po razširitvi lahko izbrišete preneseno datoteko exe.
 
Če bi nadaljevali namestitev, bi namestili {{OOo}} za enega uporabnika na tem računalniku. Namen tega KakOOojčka pa je ''tiha'' ali ''nenadzorovana'' namestitev {{OOo}} v omrežje. Po razširitvi lahko izbrišete preneseno datoteko exe.
  
== Unattended (Automatic) Installation ==
+
== Tiha (Samodejna) Namestitev ==
  
After unpacking, you will get a number of files, one of them being <tt>openofficeorg23.msi</tt> which is the central installation file. MSI files are installation programs that make use of the Windows Installer technology from Microsoft. There is a central installation utility called <tt>msiexec</tt> that manages the installation and can be controlled using parameters.
+
Po razširitvi boste dobili v mapi datoteke, ena od njih z imenom <tt>openofficeorg23.msi</tt>, ki je glavna namestitvena datoteka. Datoteke MSI so namestitveni programi, ki uporabljajo tehnologijo Windows Installer. Za to se uporablja orodje <tt>msiexec</tt>, ki skrbi za namestitev in se ga upravlja s parametri.
  
For a first test installation you should select a client that has no {{OOo}} installed:
+
Za prvo poskusno namestitev izberite računalnik, ki še nima nameščenega {{OOo}}:
  
{{Documentation/Note|The user who starts the installation process must have administrator privileges.}}
+
{{Documentation/Note|Uporabnik, ki požene namestitev, mora imeti administratorske pravice.}}
  
# Open a command window ('''Start''' > '''Programs''' > '''Accessories''' > '''Command Prompt''')
+
# Odprite ukazno okno ('''Start''' > '''Programi''' > '''Pripomočki''' > '''Ukazni poziv''')
# Change to the folder with the unpacked installation files, for instance<br><tt>cd C:\OOo_Install </tt>
+
# Postavite se v mapo z namestitvenimi datotekami, na primer <br><tt>cd C:\OOo_Install </tt>
# To start an installation that requires no user interaction, issue the following command:<br><tt>start /wait msiexec /qn /norestart /i openofficeorg23.msi</tt>
+
# Da začnete namestitev, ki ne zahteva sodelovanja uporabnika, vnesite sledeči ukaz:<br><tt>start /wait msiexec /qn /norestart /i openofficeorg23.msi</tt>
  
{{Documentation/Note|To view all parameters for <tt>msiexec</tt> issue the command: <tt>msiexec /?</tt>}}
+
{{Documentation/Note|Če želite videti vse parametre, ki jih podpira <tt>msiexec</tt>, poženite: <tt>msiexec /?</tt>}}
  
The parameters used above are:
+
Zgoraj uporabljeni parametri pomenijo:
  
;<tt>start /wait</tt>:Since installation will be performed in the background (no output on the screen) we do not know when the installation is completed and we can move on. By using <tt>start /wait</tt> in front of the <tt>msiexec</tt> command, the command line will pause any other task until the installation routine has finished. Then, the cursor will be visible again.
+
;<tt>start /wait</tt>: Ker se bo namestitev izvajala v ozadju (brez obvestil na zaslon), ne vemo kdaj se bo namestitev zaključila in gremo lahko naprej. Z uporabo <tt>start /wait</tt> pred <tt>msiexec</tt>, se bo ustavilo izvajanje vseh ostalih opravil, dokler ne bo namestitev dokončana. Takrat bo kazalka spet na voljo.
;<tt>msiexec</tt>:This is the Windows Installer utility
+
;<tt>msiexec</tt>: To je orodje Windows Installer
;<tt>/qn</tt>:This parameter specifies that no user interface will be displayed during the installation: no progress bar, no dialog boxes, but also no error messages! Variations of this parameter are<br><tt>/qb</tt> for a simple interface displaying only a progress bar in Windows Installer design<br><tt>/qr</tt> for a reduced interface displaying only a progress bar in {{OOo}} design
+
;<tt>/qn</tt>: Ta parameter določa, da med namestitvijo ne bo prikazano pogovorno okno: brez indikatorja napredka, pogovornih oken in brez obvestil o napakah! Ostale možnosti tega parametra so <br><tt>/qb</tt> za prikaz enostavnega uporabniškega vmesnika, ki prikazuje samo indikator napredka v načinu Windows Installer <br><tt>/qr</tt> za omejeni uporabniški vmesnik, ki prikazuje samo indikator napredka v načinu {{OOo}}
;<tt>/norestart</tt>:Some installation programs attempt to reboot the system automatically after installation. This parameter avoids that. However, after installing new software under Windows it is generally recommended to reboot the system at the earliest convenience.
+
;<tt>/norestart</tt>: Nekateri namestitveni programi poskušajo po zaključku namestitve ponovno zagnati sistem. Ta parameter to prepreči. Vendar je v splošnem dobro, da se po namestitvi novega programa v okolju Windows sistem ponovno zažene.
;<tt>/i</tt>:This is the parameter that starts the installation
+
;<tt>/i</tt>: Ta parameter začne namestitev
  
After calling the command you either see a progress bar or nothing (depending on the <tt>/q</tt> parameter used). After the installation has finished, the cursor will reappear on the command line. Depending on the system this may take several minutes. We have just successfully performed our first unattended installation of {{OOo}}.
+
Po klicu ukaza vidite indikator napredka ali nič (glede na uporabljen parameter <tt>/q</tt>). Po zaključku namestitve, se bo v ukaznem oknu ponovno prikazala kazalka. To lahko traja nekaj minut (odvisno od računalnika). S tem ste zaključili svojo prvo tiho namestitev {{OOo}}.
  
If you open the Windows start menu now, you will see an '''OpenOffice.org 2.0''' entry in the '''Programs''' section, and you are ready to start OpenOffice.org. This installation is for all users on that client. A separate user installation step is not required.
+
Če zdaj odprete meni Start, boste med '''Programi''' videli vnos '''OpenOffice.org 2.0''' in lahko začnete uporabljati OpenOffice.org. Namestitev je na voljo za vse uporabnike sistema in dodaten korak za uporabniško namestitev ni potreben.
  
To deinstall {{OOo}} at a later time use the following command:
+
Če želite odstraniti {{OOo}}, uporabite sledeči ukaz:
  
 
  start /wait msiexec /qn /norestart /x openofficeorg20.msi
 
  start /wait msiexec /qn /norestart /x openofficeorg20.msi
  
Using <tt>/x</tt> instead of <tt>/i</tt> starts the deinstallation process. After deinstallation you should reboot the system at the earliest convenience.
+
Z uporabo <tt>/x</tt> namesto <tt>/i</tt> se prične postopek odstranitve. Po odstranitvi morate ponovno zagnati sistem.
  
 
== MSI Properties ==
 
== MSI Properties ==

Revision as of 11:57, 22 September 2008

Template:Documentation/NeedsRework Template:Documentation/Banner Template:Documentation/AppliesToWindows


Uvod

Apache OpenOffice z lahkoto namestimo centralno v omrežju. Ta KakOOojček prikazuje kateri parametri in lastnosti namestitvenega programa se lahko uporabijo za sodelovanje z obstoječim programom za distribucijo programske opreme. Posebno pakiranje ni potrebno.

Template:Documentation/Note

Sistemske zahteve

Apache OpenOffice 2.x je opremljen z datotekami MSI za namestitev v okolju Windows z uporabo Windows Installer. Podprte različice so Windows 2000, Windows XP ali Vista. Priporočljivo je, da imate nameščen zadnji servisni popravek in vse posodobitve Windows pred začetkom namestitve.

Template:Documentation/Note Poleg tega je potreben program za distribucijo programske opreme za upravljanje programske opreme v poslovnem okolju. To presega namen tega KakOOojčka, ker so zahteve teh programov različne za vsakega od njih. Vse pa znajo distribuirati datoteke MSI po omrežju. Za to potrebni parametri so opisane v tem KakOOojčku.

Template:Documentation/Note

Prenos in razširjanje Apache OpenOffice

Prvi korak je prenos namestitvenih datotek za Apache OpenOffice. Brezplačno jih dobite na naslovu http://sl.openoffice.org/prenosi.html. Datoteko shranite v mapo po vaši izbiri. Dobili boste eno izvršno datoteko:

OOo_2.3.0_Win32Intel_install_sl.exe

Dejansko ime datoteke je lahko različno glede na jezik in različico programa.

Ta datoteka vsebuje namestitveni paket v kompresirani obliki. Najprej jo je potrebno razširiti:

  1. Dvokliknite ime datoteka v Raziskovalcu
  2. Kliknite Naprej >
  3. Izberite mapo, kamor naj se paket razširi, na primer [/C:/OOo_Install C:\OOo_Install]
  4. Kliknite Razširi
  5. Kliknite Prekliči, če želite prekiniti namestitev.

Če bi nadaljevali namestitev, bi namestili Apache OpenOffice za enega uporabnika na tem računalniku. Namen tega KakOOojčka pa je tiha ali nenadzorovana namestitev Apache OpenOffice v omrežje. Po razširitvi lahko izbrišete preneseno datoteko exe.

Tiha (Samodejna) Namestitev

Po razširitvi boste dobili v mapi datoteke, ena od njih z imenom openofficeorg23.msi, ki je glavna namestitvena datoteka. Datoteke MSI so namestitveni programi, ki uporabljajo tehnologijo Windows Installer. Za to se uporablja orodje msiexec, ki skrbi za namestitev in se ga upravlja s parametri.

Za prvo poskusno namestitev izberite računalnik, ki še nima nameščenega Apache OpenOffice:

Template:Documentation/Note

  1. Odprite ukazno okno (Start > Programi > Pripomočki > Ukazni poziv)
  2. Postavite se v mapo z namestitvenimi datotekami, na primer
    cd C:\OOo_Install
  3. Da začnete namestitev, ki ne zahteva sodelovanja uporabnika, vnesite sledeči ukaz:
    start /wait msiexec /qn /norestart /i openofficeorg23.msi

Template:Documentation/Note

Zgoraj uporabljeni parametri pomenijo:

start /wait
Ker se bo namestitev izvajala v ozadju (brez obvestil na zaslon), ne vemo kdaj se bo namestitev zaključila in gremo lahko naprej. Z uporabo start /wait pred msiexec, se bo ustavilo izvajanje vseh ostalih opravil, dokler ne bo namestitev dokončana. Takrat bo kazalka spet na voljo.
msiexec
To je orodje Windows Installer
/qn
Ta parameter določa, da med namestitvijo ne bo prikazano pogovorno okno: brez indikatorja napredka, pogovornih oken in brez obvestil o napakah! Ostale možnosti tega parametra so
/qb za prikaz enostavnega uporabniškega vmesnika, ki prikazuje samo indikator napredka v načinu Windows Installer
/qr za omejeni uporabniški vmesnik, ki prikazuje samo indikator napredka v načinu Apache OpenOffice
/norestart
Nekateri namestitveni programi poskušajo po zaključku namestitve ponovno zagnati sistem. Ta parameter to prepreči. Vendar je v splošnem dobro, da se po namestitvi novega programa v okolju Windows sistem ponovno zažene.
/i
Ta parameter začne namestitev

Po klicu ukaza vidite indikator napredka ali nič (glede na uporabljen parameter /q). Po zaključku namestitve, se bo v ukaznem oknu ponovno prikazala kazalka. To lahko traja nekaj minut (odvisno od računalnika). S tem ste zaključili svojo prvo tiho namestitev Apache OpenOffice.

Če zdaj odprete meni Start, boste med Programi videli vnos OpenOffice.org 2.0 in lahko začnete uporabljati OpenOffice.org. Namestitev je na voljo za vse uporabnike sistema in dodaten korak za uporabniško namestitev ni potreben.

Če želite odstraniti Apache OpenOffice, uporabite sledeči ukaz:

start /wait msiexec /qn /norestart /x openofficeorg20.msi

Z uporabo /x namesto /i se prične postopek odstranitve. Po odstranitvi morate ponovno zagnati sistem.

MSI Properties

The example installation above does not allow to change default settings like the installation path for Apache OpenOffice. To use other than the default settings you can use MSI properties that are specified when msiexec is called on the command line:

start /wait msiexec /qn /norestart /i openofficeorg20.msi PROPERTY1=Value1 PROPERTY2=Value2

The following overview lists the available properties.

Property Description and allowed values
SELECT_WORD Use Apache OpenOffice as default application for MS Word files?
  • 0: No
  • 1: Yes
SELECT_EXCEL Use Apache OpenOffice as default application for MS Excel files?
  • 0: No
  • 1: Yes
SELECT_POWERPOINT Use Apache OpenOffice as default application for MS Powerpoint files?
  • 0: No
  • 1: Yes
INSTALLLOCATION Installation path for Apache OpenOffice, enclosed in double quotes ("). If the path does not exist it will be created.
COMPANYNAME Name of the company that Apache OpenOffice should be registered to, enclosed in double quotes ("). Can stay empty.
USERNAME Name of the user that Apache OpenOffice should be registered to, enclosed in double quotes ("). Can stay empty.

ADDLOCAL and REMOVE

This pair of properties controls which software components are to be installed.

ALL: Installs all Apache OpenOffice components (ADDLOCAL=ALL)

If ALL is not used, the core components have to be specified manually, as

ADDLOCAL=gm_Root, gm_Prg, gm_r_Files_2, gm_r_Files_3, gm_r_Files_4, gm_r_Files_5, gm_r_Files_6, gm_r_Files_7, gm_r_Files_8, gm_r_Files_9, gm_r_Fonts_OOo_Hidden

in addition to non-core modules that are to be installed.

The following list shows the components that need to be installed to install a given module:

Writer
gm_p_Wrt, gm_p_Wrt_Bin, gm_p_Wrt_Help
Calc
gm_p_Calc, gm_p_Calc_Bin, gm_p_Calc_Help, gm_p_Calc_Addins
Draw
gm_p_Draw, gm_p_Draw_Bin, gm_p_Draw_Help
Impress
gm_p_Impress, gm_p_Impress_Bin, gm_p_Impress_Help
Base
gm_p_Base, gm_p_Base_Bin, gm_p_Base_Help
Math
gm_p_Math, gm_p_Math_Bin, gm_p_Math_Help
Additional graphics filter
gm_Optional, gm_o_Grfflt
Test tool
gm_Optional, gm_o_Testtool
English language module
gm_Optional, gm_o_Oo_English
XSLT example filters
gm_Optional, gm_o_Xsltfiltersamples
Python UNO bridge
gm_Optional, gm_o_Pyuno
Email form letter
gm_Optional, gm_o_Pyuno, gm_o_Pymailmerge
Filter for mobile devices
gm_Optional, gm_o_Javafilter, gmo_jf_Palm, gmo_jf_Palm_Aportisdoc, gmo_jf_Pocketpc, gmo_jf_Pocketpc_Pocket_Word, gmo_jf_Pocketpc_Pocket_Excel
Quick starter
gm_Optional, gm_o_Quickstart
ActiveX control element
gm_Optional, gm_o_Activexcontrol
Windows Explorer Shell Extension
gm_Optional, gm_o_Winexplorerext

Template:Documentation/Note

If multiple modules are installed that require a common component, the component only needs to be specified once, for example:

To install the Quick starter and ActiveX Control Element, the components would be:

gm_Optional,gm_o_Quickstart,gm_o_Activexcontrol

and not

gm_Optional,gm_o_Quickstart,gm_Optional,gm_o_Activexcontrol

Always use ADDLOCAL=ALL and then specify the unwanted components using REMOVE to avoid missing required components.

Template:Documentation/Note

Examples

Example 1

To install Apache OpenOffice with the following options

  • use {OOo}} as the default application for DOC, XLS and PPT files (recommended if you want to open MS Office files with Apache OpenOffice seamlessly)
  • use C:\Open Office as the target installation folder
  • install all components except for the Database module (Base)

you have to issue the following command:

start /wait msiexec /qn /norestart /i openofficeorg20.msi SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 INSTALLLOCATION="C:\Open Office" ADDLOCAL=ALL REMOVE=gm_p_Base,gm_p_Base_Bin,gm_p_Base_Help

Example 2

To install Apache OpenOffice with the following options

  • do not use {OOo}} as the default application for DOC, XLS and PPT files (for example, if you have MS Office already installed on your system)
  • use C:\OOo as the target installation folder
  • only install the Writer component

you have to issue the following command:

start /wait msiexec /qn /norestart /i openofficeorg20.msi SELECT_WORD=0 SELECT_EXCEL=0 SELECT_POWERPOINT=0 INSTALLLOCATION="C:\OOo" ADDLOCAL=gm_Root, gm_Prg, gm_r_Files_2, gm_r_Files_3, gm_r_Files_4, gm_r_Files_5, gm_r_Files_6, gm_r_Files_7, gm_r_Files_8, gm_r_Files_9, gm_r_Fonts_OOo_Hidden, gm_p_Wrt, gm_p_Wrt_Bin, gm_p_Wrt_Help

Template:Documentation/Note

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools