MeshCentral/installnodejs_7zip.cmd
techno-express e29ac0e29d added self making Sfx auto agent installers. scripts .sh and .cmd to to get everything installed quicker.
taking the initial 5 step or more process to take over remote computer to one. a temporary fix to get more in line with other remote support like software. added some scripts linux & windows to quickly setup the whole system on your server.
2018-01-12 00:13:18 -05:00

16 lines
1018 B
Batchfile

@echo off
cd /D %HOMEPATH%
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=x86 || set OS=x64
powershell (new-object System.Net.WebClient).DownloadFile('http://nodejs.org/dist/v9.3.0/node-v9.3.0-%OS%.msi','node-v9.3.0-%OS%.msi')
rem powershell (new-object System.Net.WebClient).DownloadFile('http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.1-signed.msi','mongodb-win32-x86_64-2008plus-ssl-3.6.1-signed.msi')
msiexec /i node-v9.3.0-%OS%.msi /passive /norestart /qn
rem msiexec /i mongodb-win32-x86_64-2008plus-ssl-3.6.1-signed.msi /passive /norestart /qn
del node-v9.3.0-%OS%.msi
rem del mongodb-win32-x86_64-2008plus-ssl-3.6.1-signed.msi
npm install -g win-7zip rem -g letsencrypt-cli
powershell (new-object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/lzma1604.7z','lzma1604.7z')
7z x lzma1604.7z -olzma1604
copy /B /Y /V lzma1604\bin\*.sfx AppData\Roaming\npm\node_modules\win-7zip\7zip-lite\
del lzma1604.7z
rmdir /S /Q lzma1604