96 lines
3.2 KiB
Batchfile
Executable File
96 lines
3.2 KiB
Batchfile
Executable File
@echo off
|
|
|
|
|
|
rem ###################################################################
|
|
rem Begin UniVerse ODBC Server install
|
|
rem ###################################################################
|
|
|
|
rem This file is run by the UniVerse installer; it is not normally
|
|
rem run by users.
|
|
|
|
rem This batch file is run with one argument: the UV account directory.
|
|
set uvhome=%1%
|
|
|
|
|
|
rem Set up the HS.ADMIN, HS.SALES and HS.SERVICE demo accounts. By
|
|
rem the time this code is executed, the installer will already have overwritten
|
|
rem most files with files from release media. But we get VOCs from this
|
|
rem installation's NEWACC, so that they get the right references to uvhome.
|
|
|
|
|
|
set command=copy NEWACC\NEWACC HS.ADMIN\VOC
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=%uvhome%\bin\loadfile.exe HS.ADMIN\VOC.u HS.ADMIN\VOC
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=%uvhome%\bin\UVwrite.exe HS.ADMIN\VOC HS.UV.ACCOUNT F %uvhome%\UV.ACCOUNT %uvhome%\D_UV.ACCOUNT
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=copy NEWACC\NEWACC HS.SALES\VOC
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=%uvhome%\bin\loadfile.exe HS.SALES\VOC.u HS.SALES\VOC
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=copy NEWACC\NEWACC HS.SERVICE\VOC
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=%uvhome%\bin\loadfile.exe HS.SERVICE\VOC.u HS.SERVICE\VOC
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
rem Add or update UV.ACCOUNT's records for HS accounts
|
|
|
|
set command=%uvhome%\bin\UVwrite UV.ACCOUNT HS.SALES "" "" "" "" "" "" "" "" "" "" %uvhome%\HS.SALES "" "" YES
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=%uvhome%\bin\UVwrite UV.ACCOUNT HS.SERVICE "" "" "" "" "" "" "" "" "" "" %uvhome%\HS.SERVICE "" "" YES
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
set command=%uvhome%\bin\UVwrite UV.ACCOUNT HS.ADMIN "" "" "" "" "" "" "" "" "" "" %uvhome%\HS.ADMIN "" "" ""
|
|
echo %command%
|
|
%command%
|
|
if %errorlevel% == 0 echo Succeeded.
|
|
if not %errorlevel% == 0 echo Failed with return code %errorlevel%.
|
|
echo.
|
|
|
|
rem ###################################################################
|
|
rem End UniVerse ODBC Server install
|
|
rem ###################################################################
|