Perforce Public Knowledge Base - Automated Deployment Properties
Reset Search
 

 

Article

Automated Deployment Properties

« Go Back

Information

 
Problem

The following arguments and property values can be used to perform a scripted installation of P4V, P4Web or P4Win, using the techniques described in KB Article #68: Automated Deployment Properties.

Solution
Common to all products
 
INSTDIR (not INSTALLDIR!)
Path to installation directory.
 
P4PORT
Host name or IP address and/or port number of Perforce server that client applications connect to. Using only a port number attempts to connect to a local server.
 
P4EDITOR
Path to editor invoked by those Perforce commands that use forms.
 
P4USER
Perforce user to connect as.
 
P4CLIENT
Perforce client to connect as.
 
P4MERGE
Path to application used for merging files.
 
P4DIFF
Path to application to use for comparing files.
 
NETUSER
Name of local system user to run services as if using a network location. Must have administrative privileges and rights to log on as a service. Required if INSTDIR, SERVROOT, PRXYCACHE, P4LOG, or P4JOUNAL are set to network location.
 
NETPASS
Password for NETUSER. Required if INSTDIR, SERVROOT, PRXYCACHE, P4LOG, or P4JOUNAL are set to network location.
 
P4Web only
 
P4WEBPORT
P4Web client port number. Not the same as PRXYPORT or SERVPORT.
 
P4WEBMODE
Select either standard or viewer mode. Standard (-s), Viewer (-v).
 
P4WEBVIEWER
Select either guest or authenticated viewer mode. Guest (-b), authenticated (-B).
 
P4WEBP4PORT
Computer name or IP address and/or port number of Perforce server that P4Web viewer service connects to. Using only a port number attempts to connect to a local server.
 
P4WEBLOCALONLY
Controls whether standard mode accepts remote connections, 0 or 1.
 
P4WEBLOG
Controls whether a log is written, 0 or 1.
 
 
P4Win performance
 
The following variables are used to configure "Settings -> Options" values for the P4Win client program. The default values are appropriate for most sites, but administrators of large sites might want to change the defaults in order to make P4Win clients poll the server less frequently, or to request less data from the server during normal use.
 

The P4Win performance properties are not configurable directly by the installer. They are configured as registry entries under the following registry key:

HKEY_CURRENT_USER\Software\perforce\P4win\Options

The recommended method for configuring the properties is through the use of a registration entries (.reg) file. For example, a p4win.reg file containing the following text:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\perforce\P4win\Options]
"AUTOPOLLSERVER"="0"
"ENABLEREVHISTSHOWINTEGS"="0"
"ENABLESUBCHGINTEGFILTER"="0"

"EXPANDCHGLISTS"="0"
"FETCHALLHIST"="0"
can then be sourced by the install batch file that performs the P4Win install as follows:
regedit.exe /S ./p4win.reg

AUTOPOLLICONIC       0 or 1
Default value: 0
For better performance: 0
Settings->Options->Perforce Objects->Server, Poll when inactive

AUTOPOLLJOBS         0 or 1
Default value: 0
For better performance: 0
Settings->Options->Perforce Objects->Server, Poll for job updates

AUTOPOLLSERVER       0 or 1
Default value: 1
For better performance: 0
Settings -> Options, enable AUTOPOLLTIME

AUTOPOLLTIME         if AUTOPOLLSERVER=1, poll every N minutes
Default value: 10
For better performance: 30 or more if AUTOPOLLSERVER=1
Settings -> Options, Poll server for updates AUTOPOLLTIME minutes

ENABLEREVHISTSHOWINTEGS  0 or 1
Default value: 1
For better performance: 0
Settings -> Options, Enable displaying branching history in Revision
History dialog

ENABLESUBCHGINTEGFILTER   0 or 1
Default value: 1
For better performance: 0
Settings -> Options, Enable including integrations when filtering
submitted changes

EXPANDCHGLISTS       0 or 1
Default value: 1
For better performance: 0
Settings -> Options, Expand pending changelists whenever a file or
job is added

EXPANDFLAG           0 or 1
Default value: 0
For better performance: 0
Settings -> Options, Expand Depot to Previous location

FETCHALLCHANGES      0 or 1
Default value: 0
For better performance: 0
Settings -> Options, Automatically fetch all submitted changelists

FETCHCHANGECOUNT     if FETCHALLCHANGES=0, fetch NNN changelists
Default value: 100
For better performance: 100 or less (but not 0) FETCHALLCHANGES=0
Settings -> Options, Automatically fetch last NNN changelists

FETCHALLJOBS         0 or 1
Default value: 0
For better performance: 0 Settings -> Options, Display all filtered or unfiltered jobs

FETCHJOBCOUNT        if FETCHALLJOBS=0, fetch NNN jobs
Default value: 100
For better performance: 100 or less (but not 0) Settings -> Options, Display maximum NNN jobs, selected in jobname order

FETCHALLHIST         0 or 1
Default value: 1
For better performance: 0
Settings -> Options, Automatically fetch all revision history records
FETCHHISTCOUNT       if FETCHALLHIST=0, fetch NNN history records
Default value: 100
For better performance: 100 or less (but not 0)
Settings -> Options, Automatically fetch last NNN history records

RELOADONUNCOVER      0 or 1
Default value: 0
For better performance: 0
Settings -> Options, Automatically reload pane when it is uncovered

RELOADUNCOVERTIME    if RELOADONUNCOVER=1, reload after N minutes
Default value: 1
For better performance: 30 or more if RELOADONUNCOVER=1
Settings -> Options, ... reload pane when it is uncovered after
N minutes

SHOWDELETED          0 or 1
Default value: 0
For better performance: 0
Settings -> Options, Show deleted depot files
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255