It is possible to silently install NS and its solutions?

book

Article ID: 179697

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

 

Resolution

Question
Yes, running unattended install of the Notification Server and its Solutions is possible. 

Please modify and test the following two silent install procedures to suit your environment.

Answer

@set INSTALLDIR=C:\Altiris

@set DBSERVER=localhost

@set DBNAME=Altiris

@set DBUSER=

@set DBPASSWORD=

@set SVCUSER=domain\user

@set SVCPASSWORD=password

@set SRCUNC=source file location

@set SRCDIR=S:

@set BINDIR=%INSTALLDIR%Notification Server\bin

@set TMPDIR=c:\NSSetup

@echo ------------------------------------

@echo NS Install folder: %INSTALLDIR%

@echo Database server: %DBSERVER%

@echo Database name: %DBNAME%

@echo Database user: %DBUSER%

@echo Database user password: %DBPASSWORD%

@echo Service user account: %SVCUSER%

@echo Service user password: %SVCPASSWORD%

@echo ------------------------------------

net use s: %SRCUNC% blah blahmd %TMPDIR%

@echo Copy NS 6.0 exe to local directory

@if exist "%SRCDIR%\Altiris_NS_6_0.exe"

@copy /y "%SRCDIR%\Altiris_NS_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto [email protected] Begin NS installation...

@call "%TMPDIR%\Altiris_NS_6_0.exe" -a /s /a "/qb INSTALLDIR=%INSTALLDIR%"

@rem Deleting temporary files.

@del /q "%TMPDIR%\Altiris_NS_6_0.exe"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

@echo Creating and configuring NS database...

@call "%BINDIR%\AeXConfig.exe" /db dbserver:%DBSERVER% dbname:%DBNAME% dbusername:%DBUSER% dbpassword:%DBPASSWORD% dbtimeout:600 /svcid user:%SVCUSER% password:%SVCPASSWORD%

@call "%BINDIR%\AeXConfig.exe" /addaltirisadminmember group:"<group>"

@echo NS has been successfully installed and configured.

@goto end:[email protected] Unrecoverable error. Exiting setup:endnet use s: /delete

______________

 

@set INSTALLDIR=C:\Altiris

@set DBSERVER=localhost

@set DBNAME=Altiris

@set DBUSER=

@set DBPASSWORD=

@set SVCUSER=domain\user

@set SVCPASSWORD=password

@set SRCUNC=source file location

@set SRCDIR=S:

@set BINDIR=%INSTALLDIR%Notification Server\bin

@set TMPDIR=c:\NSSetup

@echo ------------------------------------

@echo NS Install folder: %INSTALLDIR%

@echo Database server: %DBSERVER%

@echo Database name: %DBNAME%

@echo Database user: %DBUSER%

@echo Database user password: %DBPASSWORD%

@echo Service user account: %SVCUSER%

@echo Service user password: %SVCPASSWORD%

@echo ------------------------------------

net use s: %SRCUNC% blah blahnet use L: blah blah

@echo Copy Solution exe's to local directorymd %TMPDIR%

REM -------------- Application Metering -----------------------------

SET SOLUTION=ApplicationMetering

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Software Delivery -----------------------------

SET SOLUTION=SoftwareDelivery

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Helpdesk -----------------------------

SET SOLUTION=Helpdesk

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- PatchManagement -----------------------------

SET SOLUTION=PatchManagement

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep"

30REM -------------- Carbon Copy -----------------------------

SET SOLUTION=CarbonCopy

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Inventory -----------------------------

SET SOLUTION=Inventory

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Start Dell OMCA -----------------------------

SET SOLUTION=StartDellOMCA

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Start CMS -----------------------------

SET SOLUTION=StartCMS

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- DirectoryConnector -----------------------------

SET SOLUTION=DirectoryConnector

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Wise Connector -----------------------------

SET SOLUTION=ConnectWise

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Web Admin for Windows -----------------------------

SET SOLUTION=WAFW

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto [email protected] Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- Application Management -----------------------------

SET SOLUTION=ApplicationMgmt

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto error

@echo Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

REM -------------- RecoverySolution -----------------------------

SET SOLUTION=RecoverySolution

@if exist "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe"

@copy /y "%SRCDIR%\Altiris_%SOLUTION%_6_0.exe" %TMPDIR%

@if not %errorlevel% == 0

@goto [email protected] Begin %SOLUTION% installation..."%TMPDIR%\Altiris_%SOLUTION%_6_0.exe" -a /ALL:a "/qb"

@echo Sleeping for 30 seconds while install is completed...

@call "c:\sleep" 30

@echo NS Solutions has been successfully installed and configured.

@goto end:error

@echo There was an error with the Installation of one of the [email protected] Review and fix before attempting install again.

@echo Unrecoverable error. Exiting setup

Pause:endnet use s: /delete