Manoj
Manoj

Reputation: 5087

Perforce Scripted Installer

I was trying to create a scripted installer for P4V. The port settings, user setting and the workspace name are set as specified in the config file. But when I open perforce the connection dialog box throws an error "client 'manojpc' unknown". The following was my configuration file:

set P4PORT=server:2345
set INSTMODE=NoPrompt
set INSTTYPE=ClientOnly
set P4ROOT=$(SystemDrive)\My Depot
set CLNTEXES=$(SystemDrive)\Perforce
set P4USER=username
set p4CLIENT=$(HOSTNAME)

If I specify an already existing workspace, perforce won't allow me to use it in a PC other than the one from which it was created. So how do I make this work? Please let me also know if the above settings will set the "C:\My Depot" as the workspace dir.

Upvotes: 0

Views: 412

Answers (2)

Chance
Chance

Reputation: 2700

In your Workspace settings, make the Host: field blank. This will allow you to use the same workspace from any computer.

Upvotes: 1

tenpn
tenpn

Reputation: 4716

Do you possibly need to use the p4 client command to set up a workspace before-hand? http://www.perforce.com/perforce/doc.061/manuals/cmdref/client.html#1040665

Upvotes: 1

Related Questions