From 2d48f2ee900d76d75104f92b1cc145e3bd9233cb Mon Sep 17 00:00:00 2001 From: Martin Karkowski Date: Thu, 20 May 2021 17:28:53 +0200 Subject: [PATCH] Updating installer --- 07-WAMO-Update.bat | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/07-WAMO-Update.bat b/07-WAMO-Update.bat index afb369f..b6686e9 100644 --- a/07-WAMO-Update.bat +++ b/07-WAMO-Update.bat @@ -1,6 +1,11 @@ set DIR=%~dp0 cd "%DIR%" + +if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) + @echo off +git stash +git checkout dev git pull %@Try% @@ -20,6 +25,15 @@ for /f "delims=" %%a in ('dir /s /o /b *03-uninstall.bat') do ( @REM Delete old Files. rmdir dist /s /q rmdir services /s /q +rmdir node_modules /s /q + +%@Try% + @REM Install New Node Packages + npm install +%@EndTry% +:@Catch + echo uninstall IO-Server +:@EndCatch @REM compile %@Try% @@ -37,7 +51,7 @@ node .\dist\lib\cli\ioServerService.js -m install @REM now reinstall the services -@REM Uninstall all Services +@REM Install all Services for /f "delims=" %%a in ('dir /s /o /b *01-install.bat') do ( echo %%a call %%a