0

我想使用 .bat 文件安装 ucm 10g,到目前为止,我已经制作了一个 bat 文件 UCM.BAT,它将生成一个 input.txt 作为 UCM 10g 的 Installer.exe 的输入,看看我的 .BAT 文件。

@echo off
>input.txt echo 4
>>input.txt echo 2
>>input.txt echo D:/stellent/ucm/server
>>input.txt echo 1
>>input.txt echo 1
>>input.txt echo d:/stellent/ucm/server/vault/
>>input.txt echo 1
>>input.txt echo d:/stellent/ucm/server/weblayout/
>>input.txt echo 1
>>input.txt echo 1
>>input.txt echo 1
>>input.txt echo c:/program files/internet explorer/iexplore.exe
>>input.txt echo 4
>>input.txt echo 1
>>input.txt echo 4444
>>input.txt echo 4440
>>input.txt echo 127.0.0.1
>>input.txt echo /idc/
>>input.txt echo mail
>>input.txt echo sysadmin@mail
>>input.txt echo INEDEC-MLAP-645.emrsn.org
>>input.txt echo idc
>>input.txt echo idc
>>input.txt echo Content Server idc
>>input.txt echo 2
>>input.txt echo 1
>>input.txt echo 2
>>input.txt echo localhost
>>input.txt echo 1521
>>input.txt echo stellent_admin
>>input.txt echo stellent_admin
>>input.txt echo xe
>>input.txt echo 2
>>input.txt echo 1
>>input.txt echo 1,2,3,4,5
>>input.txt echo F
>>input.txt echo 1
>>input.txt echo 2
>>input.txt echo 2
>>input.txt echo 1
>>input.txt echo 2
>>input.txt echo 2
>>input.txt echo 1


C:\Users\gurlove.chopra\Desktop\ContentServer_Windows_10gR3_20080807  \UCM\ContentServer\win32\Installer.exe input.txt

现在以下是我得到的错误

C:\Users\gurlove.chopra\Desktop\ContentServer_Windows_10gR3_20080807\UCM\Content
Server\win32>UCM.BAT
Unable to install. IntradocDir is not defined.
Severe error: wait.dat not removed. Remove manually.

任何形式的帮助表示赞赏

4

2 回答 2

0

好的,我发现默认情况下,Installer.exe 从 Intradoc.cfg 获取输入,Intradoc.cfg 从用户那里获取输入,将它们转换为键值对,然后提供给 Installer.exe。

所以现在我们可以直接输入 Intradoc.cfg 或者创建一个带有必要键值对的 input.txt。我通过生成 input.txt 来做到这一点

这是解决方案

@echo off
(
echo IdcProductName=idccs
echo IntradocDir=D:/stellent/ucm/server4/
echo ConfigureProxiedServer=no
echo ConfigureAdminServer=yes
echo WebBrowserPath=c:/program files/internet explorer/iexplore.exe
echo InstallType=new
echo InstallConfiguration=Install
echo HttpServerAddress=INEDEC-MLAP-645.emrsn.org
echo SysAdminAddress=sysadmin@mail
echo IntradocServerPort=5555
echo IdcAdminServerPort=5550
echo MailServer=mail
echo IDC_Name=idc4
echo InstanceMenuLabel=idc4
echo InstanceDescription=Content Server idc4
echo WebServer=apache
echo DisableDatabaseOverrides=1
echo DatabaseType=oracle
echo DBServerHost=localhost
echo DBServerPort=1521
echo JdbcUser=stellent_gc4
echo JdbcPassword=stellent_gc4
echo DBServerDatabase=xe
echo ConfigureJdbcDriverPackageSourceFile=false
echo CreateDatabase=true
echo InstallAdminServerService=auto
echo InstallAdminServerServiceConfigureRunAs=false
echo InstallAdminServerServiceUser=
echo InstallAdminServerServicePassword=
echo InstallAdminServerServiceConfigureDependency=false
echo InstallAdminServerServiceDependency=
echo InstallServerService=auto
echo InstallServerServiceConfigureRunAs=false
echo InstallServerServiceUser=
echo InstallServerServicePassword=
echo InstallServerServiceConfigureDependency=false
echo InstallServerServiceDependency=
echo MEDIA_DIR=$BIN_DIR/../../..
echo SHARED_CONFIG_DIR=$BIN_DIR/..
echo OS_DIR=$SHARED_CONFIG_DIR
echo InstallDefinitionFile_cs=cs_install_info.htm
)>input.txt
C:\Users\gurlove.chopra\Desktop\ContentServer_Windows_10gR3_20080807\UCM\ContentServer\win32\Installer.exe input.txt
于 2017-04-10T12:22:15.357 回答
0

您正在创建的 input.txt 文件看起来不像它应该的那样。它应该是 name=value 条目的列表。

您在本文档的附录 E 中有详细信息:http: //docs.oracle.com/cd/E10316_01/cs/cs_doc_10/documentation/integrator/install_cserver_win_10en.pdf

于 2017-04-05T21:11:49.160 回答