Can I install FME from the command line

From Fmepedia


Table of contents

1 Available Directives

2 Examples
3 Notes

Q) Can I install FME from the command line?

A) Yes, and this can be very useful when you wish to install FME 'silently' or remotely.


NOTE: Please understand this is not recommended behaviour and that anything you try along these lines is very much at your own risk (not that there are known problems, just the potential to throw a huge spanner into the FME works if you get it wrong).


Overview

Switch

Explanation

/m

Manual-override. This switch requires an equal sign (=) and then the full path to a file that contains information concerning the directory for installation and optionally, the directory in which FMETools is to be installed.

/s

Silent. The GUI will not be displayed. An icon will be displayed in the system tray. A tool tip will display overall progress.


Available Directives

Installation Directory Directives

By default, the installer places files in several locations. These directives allow those locations to be overidden as neccesary. All directives need to be followed by an equal sign (=) and then the full path. See examples below.

Directive

Explanation

MAINDIR Indicates the full path location of the main installation directory. If the directory does not exist, it will be created. Spaces are OK on the path. Quotes must not be used.
The default is C:\Program Files\FME Suite
SAFE_COMMONIndicates the full path location of the FME shared components (components shared between FME installations & other OEM applications) directory. If the directory does not exist, it will be created. Spaces are OK on the path. Quotes must not be used.
The default is C:\Program Files\Common Files\Safe Software Shared


NOTE! Do not use this directive unless you know what you’re doing; it could really mess up how FME runs.

FME_OBJECTS_PATHIndicates the full path location to the directory where the FME Objects dll will be installed. If the directory does not exist, it will be created. Spaces are OK on the path. Quotes must not be used.
The default is C:\Program Files\Common Files\Safe Software Shared\FME Objects


NOTE! Do not use this directive unless you know what you’re doing; it could really mess up how FME runs.


Installer Behaviour Directives

The installer's runtime behaviour can be changed via these directives.

Directive

Explanation

ENABLE_SOUNDEVENTSSetup sound events.
Allowed values are yes and no. Default is yes.
CHECK_ADMIN_RIGHTSCheck to ensure that the user installing FME has admin priviledges.
Allowed values are yes and no. Default is yes.
CHECK_INTERNET_EXPLORERCheck if Internet Explorer > 5.5 is installed.
Allowed values are yes and no. Default is yes.
EDITORSUPPORTDIALOGShow the editor support wizard page.
Allowed values are yes and no. Default is yes.
USAGESTATISTICSDIALOGShow the usage statistics wizard page.
Allowed values are yes and no. Default is yes.
SERIALNUMBERDIALOGShow the serial number wizard page.
Allowed values are yes and no. Default is yes.
ENABLE_UNINSTALLLeave the proper bread crumbs that allow FME to be uninstalled.
Allowed values are yes and no. Default is yes.
ENABLE_SHORTCUTSCreate shortcuts in the Windows Start Menu.
Allowed values are yes and no. Default is yes.
ENABLE_FILETYPE_REGISTRATIONRegister FME applications as being able to view, open, etc FME files and GIS data files.
Allowed values are yes and no. Default is yes.
ENABLE_DLL_SELF_REGISTERSelf-register COM objects installed by the installer.
Allowed values are yes and no. Default is yes.
ENABLE_POST_INSTALL_TASKSRun the License Wizard & FME Administrator when the installer is finished.
Allowed values are yes and no. Default is yes.
ENABLE_SYSTEM_REBOOTAllows the installer to prompt the user to reboot the machine (if neccesary).
Allowed values are yes and no. Default is yes.
ENABLE_PATH_UPDATEAllows installer to update the 'PATH' environment variable.
Allowed values are yes and no. Default is yes.
ENABLE_STANDARD_EXE_INSTALLATIONInstall all the standard fme executables (viewer, workbench, etc).
Allowed values are yes and no. Default is yes.
ENABLE_LICENSE_COPYAllows installer to search for old license files, and copy them into the current install folder if present.
Allowed values are yes and no. Default is yes.
ENABLE_POST_INSTALL_TASKSControls whether the license wizard is run after the installer has completed. See also FMEREG_CMDLINE.
Allowed values are yes and no. Default is yes.
FMEREG_CMDLINEOverides how the installer calls the license wizard post-installation.
Allowed values are any command-line parameters supported by the license wizard.
Using the value /no_extend will prevent the FME Administrator from auto-extending 3rd party applications supported by FME.
ENABLE_ZERO_SIDE_EFFECTSets the following options to "no":

ENABLE_SOUNDEVENTS, CHECK_ADMIN_RIGHTS,CHECK_INTERNET_EXPLORER,EDITORSUPPORTDIALOG, USAGESTATISTICSDIALOG,SERIALNUMBERDIALOG,ENABLE_UNINSTALL,INSTALL_SYSTEM_DLLS, ENABLE_SHORTCUTS,ENABLE_FILETYPE_REGISTRATION,ENABLE_DLL_SELF_REGISTER, ENABLE_POST_INSTALL_TASKS,ENABLE_SYSTEM_REBOOT,ENABLE_PATH_UPDATE,ENABLE_LICENSE_COPY
Allowed values are yes and no. Default is no.

File Installation Directives

Some of the files installed by the installer can be ommitted via these directives.

Directive

Explanation

INSTALL_SYSTEM_DLLSUpdate older system dlls as needed, and run the Microsoft Visual Studio C++ Runtime Installer
Allowed values are yes and no. Default is yes.

Note: If set to 'no', the user is responsible for manually running the C++ Runtime installer, and ensuring that atl.dll and atl71.dll are installed on the target system. This option is not recommended, and may lead to non-functional FME installs.

INSTALL_THIRDPARTYInstall Application Extenders.
Allowed values are yes and no. Default is yes.


Note: Enabling is controlled by the FME Administrator.

INSTALL_FMEOBJECTSInstall FME Objects dlls and other components.
Allowed values are yes and no. Default is yes.
INSTALL_GALLERYInstall the gallery directory.
Allowed values are yes and no. Default is yes.
INSTALL_HELPInstall the help directory.
Allowed values are yes and no. Default is yes.
INSTALL_HELP_DLLInstall the help dlls.
Allowed values are yes and no. Default is yes.
INSTALL_METAFILEInstall the metafile directory.
Allowed values are yes and no. Default is yes.
INSTALL_PLUGINBUILDERInstall the pluginbuilder directory.
Allowed values are yes and no. Default is yes.
INSTALL_REPROJECTInstall the Reproject directory.
Allowed values are yes and no. Default is yes.
INSTALL_TCLInstall the tcl directory.
Allowed values are yes and no. Default is yes.
INSTALL_WORKBENCH_EXEInstall the workbench application. Allowed values are yes and no. Default is yes.
INSTALL_FME_EXEInstall the fmeapplication.
Allowed values are yes and no. Default is yes.
INSTALL_FMEADMIN_EXEInstall the fme administrator application.
Allowed values are yes and no. Default is yes.
INSTALL_FMEVIEW_EXEInstall the fme viewer application.
Allowed values are yes and no. Default is yes.
INSTALL_FMEGUI_EXEInstall the fme universal translator gui application.
Allowed values are yes and no. Default is yes.
INSTALL_FMEREG_EXEInstall the fme license wizard application.
Allowed values are yes and no. Default is yes.
INSTALL_DFAD_DLLInstall the dfad dll.
Allowed values are yes and no. Default is yes.
INSTALL_WHATSNEWInstall the what's new/great text files.
Allowed values are yes and no. Default is yes.
INSTALL_FMECOMUTIL_DLLInstall the fmecomutil dll.
Allowed values are yes and no. Default is yes.
INSTALL_FME_SHELLEXT_DLLInstall the fme shell extension dll.
Allowed values are yes and no. Default is yes.
INSTALL_SPATIAL_ASSISTANT_EXEInstall spatialassistant.exe.
Allowed values are yes and no. Default is yes.
INSTALL_FMEGEOS_DLLInstall geos_fme.dll.
Allowed values are yes and no. Default is yes.
INSTALL_SDE_DLLInstall the sde dlls.
Allowed values are yes and no. Default is yes.

Examples

fmeinstaller.exe /M=values.dat

This will throw up the installation GUI, but the default installation directory will be replaced with whatever is specified after MAINDIR= in values.dat.

fmeinstaller.exe /S

This will install in the default directory for the installer but will not display the GUI while doing so.

fmeinstaller.exe /S /M=values.dat

This will silently install into the directory specified after MAINDIR= in values.dat. The following are examples of the contents of the values file. This file does not have to be called values.dat, but must be a text file.

MAINDIR=C:\Program Files\FME2004Test
MAINDIR=C:\Program Files\FME Suite Test Installation directory
SAFE_COMMON=C:\Program Files\New FME Common


Notes

When the installer runs silently from the command line, it appears to return immediately, with the installation process occurring in the background. The process has actually been relegated to running in the system tray. A tool tip will display overall progress. A file called INSTALL.LOG is placed in MAINDIR after installation has completed.

When the installer runs silently from a script, the script waits for the process to end. It is always a good idea to check INSTALL.LOG in MAINDIR for error messages before proceeding.

User Comments Add a new comment