REM Login script insert for automatic installation of the Enterprise
REM Windows Client on 32-bit platforms. Automatic Client rollout on 
REM Windows 3 platforms can be achieved with the DOSHOOK/WINHOOK
REM combination available from our Web site
REM
REM ** You will need to edit this file before it can be used **
REM ** Please refer to the lines below that are highlighted  **
REM
REM Last Update : DB 20-Jul-06 for v5.00
REM
REM Copyright (c) Vector Networks Technologies Limited. All Rights Reserved.

REM This file performs simple checks to exclude cases where it is not
REM necessary to run the ROLLOUT.EXE program, since that is usually
REM run across the network and it is helpful if we can avoid the network
REM traffic in situations where we can tell that we don't need to do
REM anything. E.g. we do not need to do anything if the correct version
REM of the Client is already installed, or on any Windows 3 PCs that
REM happen to pick up this login script

REM Check if the correct version of the Enterprise Client is already
REM installed on the client PC

if exist "C:\Program Files\Vector\Asset Management Client\VAMclient.500"

REM Now check if we are running Windows 3. This is actually done by
REM checking for Windows NT, or Windows 9x, as both cases can be
REM identified

if not "%OS%" == "" goto lurun
if not "%WINBOOTDIR%" == "" goto lurun

REM It looks like this PC is not running NT or 9x, so drop out

goto ludone

:LURUN

REM Map any drives that are required to access the Client kit,
REM if necessary
REM
REM ** You will need to edit these lines or REM them out, and **
REM ** also the drive letter/path for ROLLOUT.EXE, below      **

net use z: \\ExampleServer\PdClientKit
if errorlevel 1 goto luerror

REM Now run the ROLLOUT.EXE program to dispatch according to the
REM actual operating system and privilege level, and to check
REM for sufficient free disk space etc. ROLLOUT.EXE is controlled 
REM by ROLLOUT.INI, which must be in the same directory
REM
REM Insert any drive/path required to access the Client kit.
REM This example assumes that the Z: drive has been mapped above
REM
REM ** You may need to edit this line **

start/wait z:\rollout.exe

REM Disconnect any mapped drives

net use z: /d

:LUDONE
:LUERROR
