forked from kettle-7/Kettle3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kettle3D Windows Installer.bat
29 lines (25 loc) · 1.17 KB
/
Kettle3D Windows Installer.bat
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
cd %USERPROFILE%\Downloads
powershell "Invoke-WebRequest https://www.panda3d.org/download/panda3d-1.10.6/Panda3D-SDK-1.10.6-x64.exe -o %USERPROFILE%\Downloads\panda_installer.exe"
panda_installer.exe
cd %USERPROFILE%\AppData\Roaming
md Kettle3D\assets\index
cd Kettle3D
md data
md lib
md versions
cd C:\Program Files
md Kettle3D
cd Kettle3D
powershell "Invoke-WebRequest https://raw.githubusercontent.com/Kettle3D/Kettle3D/master/Kettle3D-updater-win10.py -O kettle3D-updater.py"
powershell "Invoke-WebRequest https://raw.githubusercontent.com/Kettle3D/Kettle3D/master/windows.txt -O osname.txt"
powershell "Invoke-WebRequest https://raw.githubusercontent.com/Kettle3D/Kettle3D/master/Kettle3D.bat -O Kettle3D.bat"
@echo off
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Kettle3D.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "C:\Program Files\Kettle3D\Kettle3D.bat" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%
cscript /nologo %SCRIPT%
del %SCRIPT%
ppython kettle3D-updater.py