oracle.siebel/CLIENT_DATA/custom/predeploy.cmd
Dennis Trinks f78a738a93 init
2013-12-06 15:15:55 +01:00

82 lines
2.9 KiB
Batchfile

echo off
cls
echo ****************************************************************
echo ** **
echo ** Oracle Siebel Utility for HI Client ActiveX Deployment **
echo ** **
echo ** February 2012 **
echo ** **
echo ****************************************************************
if not exist SiebelAx_*.cab echo ** **
if not exist SiebelAx_*.cab echo ** **
if not exist SiebelAx_*.cab echo * Please go into the directory where .cab files were extracted.*
if not exist SiebelAx_*.cab echo ** **
if not exist SiebelAx_*.cab echo ** **
if not exist SiebelAx_*.cab echo ****************************************************************
if not exist SiebelAx_*.cab goto :eof
GOTO :start2
IF EXIST D:\nul GOTO :start1
IF NOT EXIST D:\nul GOTO :start2
:start1
set Verzeichnis=D:
ECHO Laufwerk = %Verzeichnis%
goto :step0
:start2
set Verzeichnis=C:
echo LW=C
ECHO Laufwerk = %Verzeichnis%
goto :step0
:step0
if exist %Verzeichnis%\progra~1\Siebel_8 goto :step1
md %Verzeichnis%\progra~1\Siebel_8
:step1
expand %1*.cab %Verzeichnis%\progra~1\Siebel_8
REM /p to ask for prompt
del "%Verzeichnis%\progra~1\Siebel_8\*.class"
@echo "to register dll's ocx's run regsvr32 <Full path of .ocx file>"
@echo "Where <Full path of .ocx file> is the location of your ActiveX control."
REM - /u to unregister, /s silent mode
for %%f in (%Verzeichnis%\progra~1\Siebel_8\s*.dll) do regsvr32 /s %%f
for %%g in (%Verzeichnis%\progra~1\Siebel_8\s*.ocx) do regsvr32 /s %%g
for %%i in (%Verzeichnis%\progra~1\Siebel_8\ieop*.dll) do regsvr32 /s %%i
@echo " to register the com server executables, run "
@echo " %Verzeichnis%\progra~1\Siebel_8\*.exe /RegServer, Where * denotes"
@echo " the names of your executables"
for %%h in (%Verzeichnis%\progra~1\Siebel_8\s*.exe) do %%h /RegServer
@echo "This utility requires a command line argument of a source UNC or directory path of a siebel"
@echo "applets directory for the correct build/patch of Siebel in a mobile web client or Siebel Web server.
@echo " example: predeploy.cmd \\hherbert\c\applets\"
@echo "Each client to be predeployed must have privileges to the shared applets directory
@echo "Please note that this script will re-register all *.exe, *.dll and *.ocx files in the downloaded "
@echo "Program files directory. If this is not desirable, explicitly name the Siebel files to be registered."
cd %Verzeichnis%\progra~1\Siebel_8\