GenoPro Installation Command Line Parameters
The following describe the command line parameters to install GenoPro.
These command line parameters are available since GenoPro 2007.
Command Line Parameters
Specifies the path to install GenoPro. This command line parameter will
fill the path in the setup dialog.
InstallGenoPro.exe /Path "C:\My Genealogy\GenoPro"
Specifies the default suggested path to install GenoPro. If GenoPro was
previously installed, this value will be ignored since the installation
program will use the previous path to perform the upgrade. This is the
suggested parameter to do a friendly upgrade.
InstallGenoPro.exe /PathDefault "C:\My Genealogy\GenoPro"
Specifies the default folder to save the GenoPro (.gno) files.
When you save a new GenoPro document, GenoPro displays the Save As
dialog for you to type the path and filename of your family tree.
The /PathSaveAs will pre-select the folder you wish your .gno files to
be saved. If you do not specify /PathSaveAs, then GenoPro will
pre-select the folder "My Documents".
The parameter value /PathSaveAs is written into two registry keys:
HKEY_USERS\.DEFAULT\Software\GenoPro.com\PathSaveAs, giving precedence
to the registry key
You may use the registry editor to manually edit those values.
GenoPro is capable to expend an environment variable. For
instance, if you enter the registry value
GenoPro will expand to "C:\Users\Jim\GenoPro" (assuming the environment
%USERPROFILE% equals to C:\Users\Jim). Using environment
variables is very useful for network installations, especially on a
terminal server or Citrix environment. To
store the value
%USERPROFILE% in the registry from a command line, you
must escape the percent (%) with the hat (^), for example
^%USERPROFILE^%, otherwise the environment variable will be
expanded before executing InstallGenoPro.exe
InstallGenoPro.exe /PathSaveAs "C:\My GenoPro Files"
InstallGenoPro.exe /PathSaveAs \\ServerName\GenoProFiles
InstallGenoPro.exe /PathSaveAs ^%USERPROFILE^%\GenoPro
Runs the installation unattended. The installation will start without
user intervention. If an error occurs (such as disk full, access denied,
sharing violation), a message box will be displayed to the user,
otherwise the installation will terminate automatically.
InstallGenoPro.exe /PathDefault C:\GenoPro /U
Similar to /U, however the installation program will never display any
error message to the user. This parameter implicitly assumes the
installation will start and terminate without any user intervention.
This command option is for experienced system administrators since a
script is necessary to display the status (success or failure) of the
installation. Please consult the table
Installation Return Codes for details of each possible return code.
Creates the shortcuts only for the Current User rather than creating
the shortcuts for all users on the machine. By default, GenoPro
creates shortcuts in the Start menu and on the Desktop so every user
can access GenoPro.
No Desktop shortcut. Install
GenoPro without creating a shortcut on the desktop. This is good
for unattended installations.
InstallGenoPro.exe /ND /U
After the installation terminates, the status code is always returned
to the operating system indicating a success or a failure. If you are using
a batch command line, the status code is stored in the variable
ERRORLEVEL. Here are the possible returned status codes:
The installation terminated successfully without any error.
The operation was cancelled by the user. Typically the user never
clicked on the "Install" button, or the user aborted the installation.
This status code is never returned if the installation was unattended.
The filename, directory name, or syntax is incorrect.
Access denied. There is not enough permission to write the file.
The process cannot access the file because it is being used by another
process. In other words, GenoPro may be already running.
The system cannot write to the specified device. This is either a disk
full or some generic write error.
This is a sample generic batch file you can use for installation of
GenoPro. All error codes are handled in this sample file, so you can use it
with any parameter
InstallGenoPro.exe /USilent /CU
if %ERRORLEVEL% == 0 goto Success
if %ERRORLEVEL% == 1223 goto Cancelled
if %ERRORLEVEL% == 5 goto AccessDenied
if %ERRORLEVEL% == 32 goto SharingViolation
Echo Error installing GenoPro.
Echo Installation of GenoPro Successful.
Echo Installation of GenoPro cancelled by user.
Echo Access Denied. You do not have permission to write files in the
Echo Sharing Violation. GenoPro is already running and cannot be
The returned status code is a Win32 error code, so it can be used as a
parameter to the API FormatMessage(). For instance, if you are using C/C++,
you can use the following function to display the installation status to the
TCHAR szErrorMessage; // This should be dynamically
"GenoPro installation failed with error code %d:
MessageBox(NULL, szErrorMessage, "GenoPro Installation Error",