-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMenu_Install.bat
More file actions
58 lines (52 loc) · 2.43 KB
/
Menu_Install.bat
File metadata and controls
58 lines (52 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@ECHO off
REM - Executar como Administrador
if "%~s0"=="%~s1" ( cd %~sp1 & shift ) else (
echo CreateObject^("Shell.Application"^).ShellExecute "%~s0","%~0 %*","","runas",1 >"%tmp%%~n0.vbs" & "%tmp%%~n0.vbs" & del /q "%tmp%%~n0.vbs" & goto :eof
)
REM Cliente
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo # NOME DA EMPRESA/CLIENTE? #
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo.
set /p empresa="Empresa/Cliente: "
echo %empresa%
set /p setor="Setor: "
echo %setor%
REM Instalar Fusion
cls
echo.
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo # Instalando GLPI Inventory #
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo.
if exist "%PROGRAMFILES%\FusionInventory-Agent" (
"%programfiles%\FusionInventory-Agent\Uninstall.exe" /S
)
GLPI-Agent-1.9-x64.msi /quiet RUNNOW=1 SERVER='https://suporte.innerbit.com.br/marketplace/glpiinventory, https://suporte.innerbit.com.br/front/inventory.php' RUNNOW=1 ADDLOCAL=ALL ADD_FIREWALL_EXCEPTION=1 AGENTMONITOR=1 DEBUG=level HTML=1 TASKS="" LOCAL=C:\Tools\
reg add hklm\software\GLPI-Agent /v server /t REG_SZ /d "https://suporte.innerbit.com.br/marketplace/glpiinventory, https://suporte.innerbit.com.br/front/inventory.php" /f
reg add hklm\software\GLPI-Agent /v httpd-trust /t REG_SZ /d 127.0.0.1/32 /f
reg add hklm\software\GLPI-Agent /v tag /t REG_SZ /d %empresa%-%setor% /f
reg add hklm\software\GLPI-Agent /v delaytime /t REG_SZ /d 300 /f
reg add hklm\software\GLPI-Agent /v force /t REG_SZ /d 1 /f
net stop glpi-agent
net start glpi-agent
REM Instalar Fusion
cls
echo.
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo # GLPI Inventory Instalado #
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo.
cls
echo.
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo # Abrir GLPI Status #
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo.
start "Chrome" chrome --new-window http://localhost:62354
echo.
exit
echo .
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #
echo # Instalação finalizada #
echo # - - - - - - - - - - - - - - - - - - - - - - - - - #