Perforce 脚本安装程序

发布于 2024-09-10 06:17:22 字数 431 浏览 0 评论 0原文

我试图为 P4V 创建一个脚本安装程序。 端口设置、用户设置和工作区名称按照配置文件中的指定进行设置。 但是当我打开 perforce 时,连接对话框会抛出错误“客户端'manojpc'未知”。 以下是我的配置文件:

set P4PORT=server:2345
设置 INSTMODE=无提示
设置 INSTTYPE=ClientOnly
设置 P4ROOT=$(SystemDrive)\My Depot
设置 CLNTEXES=$(SystemDrive)\Perforce
设置 P4USER=用户名
设置 p4CLIENT=$(主机名)

如果我指定一个已经存在的工作区,perforce 将不允许我在创建它的 PC 之外的 PC 上使用它。 那么我该如何进行这项工作呢? 请让我知道上述设置是否会将“C:\My Depot”设置为工作区目录。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

若沐 2024-09-17 06:17:22

在工作区设置中,将主机:字段留空。这将允许您从任何计算机使用相同的工作区。

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

梦萦几度 2024-09-17 06:17:22

您是否可能需要使用 p4 client 命令预先设置工作区?
http://www.perforce.com/perforce/ doc.061/manuals/cmdref/client.html#1040665

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文