Files
revit-batch/exobim-revitServerInstaller.bat
2018-12-03 16:51:35 +01:00

77 lines
2.1 KiB
Batchfile

@echo off
REM Version: 1.1
REM Revit server installer script for exobim
REM Usage: run this after download. it's possible that you have to run it as admin.
REM Created by Peter Gyetvai: gyetpet@gmail.com with the help of the internet
SET SERVERPATH=exobim.asuscomm.com
SET FOLDER2017=%programdata%\Autodesk\Revit Server 2017
SET FOLDER2018=%programdata%\Autodesk\Revit Server 2018
SET FOLDER2019=%programdata%\Autodesk\Revit Server 2019
SET INI2017=%FOLDER2017%\Config\RSN.ini
SET INI2018=%FOLDER2018%\Config\RSN.ini
SET INI2019=%FOLDER2019%\Config\RSN.ini
echo You have to restart Revit after running this script, or modifying your RSN.ini file
echo This script will add the following path to your RSN.ini:
echo %SERVERPATH%
echo ---
if exist "%FOLDER2017%" (
echo Revit 2017 installed
if exist "%INI2017%" (
echo RSN.ini exists, skipping
echo Modify your RSN.ini here:
echo "%INI2017%"
SET OK2017=no
) else (
echo Creating RSN.ini
echo %SERVERPATH% > "%INI2017%"
SET OK2017=ok
)
) else (
echo Revit 2017 not installed, skipping
)
echo ---
if exist "%FOLDER2018%" (
echo Revit 2018 installed
if exist "%INI2018%" (
echo RSN.ini exists, skipping
echo Modify your RSN.ini here:
echo "%INI2018%"
SET OK2018=no
) else (
echo Creating RSN.ini
echo %SERVERPATH% > "%INI2018%"
SET OK2018=ok
)
) else (
echo Revit 2018 not installed, skipping
)
echo ---
if exist "%FOLDER2019%" (
echo Revit 2019 installed
if exist "%INI2019%" (
echo RSN.ini exists, skipping
echo Modify your RSN.ini here:
echo "%INI2019%"
SET OK2019=no
) else (
echo Creating RSN.ini
echo %SERVERPATH% > "%INI2019%"
SET OK2019=pl
)
) else (
echo Revit 2019 not installed, skipping
)
echo ---
if %OK2017% EQU ok echo Successfully set up Revit 2017
if %OK2018% EQU ok echo Successfully set up Revit 2018
if %OK2019% EQU ok echo Successfully set up Revit 2019
echo ---
pause